File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
src/main/java/scratch/ned/nshm23 Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ package scratch .ned .nshm23 ;
2
+
3
+ /**
4
+ * This class stores a value for N and T, and optionally T2 and/or a weight (which default
5
+ * to NaN and 1.0, respectively). If T2 is provided, T is assumed to be uncertain with a
6
+ * uniform probability between T and T2. The weight parameter can be used to store a logic-
7
+ * tree branch weight. See discussion above on how N can be interpreted (either as number of
8
+ * events or number of intervals).
9
+ * @author field
10
+ *
11
+ */
12
+ class NinT_Data {
13
+ final int n ;
14
+ final double t ;
15
+ final double t2 ;
16
+ final double weight ;
17
+
18
+ public NinT_Data (int n , double t ) {
19
+ this (1.0 ,n ,t ,Double .NaN );
20
+ }
21
+
22
+ public NinT_Data (int n , double t , double t2 ) {
23
+ this (1.0 ,n ,t ,t2 );
24
+ }
25
+
26
+ public NinT_Data (double weight , int n , double t ) {
27
+ this (weight ,n ,t ,Double .NaN );
28
+ }
29
+
30
+ public NinT_Data (double weight , int n , double t , double t2 ) {
31
+ this .weight =weight ;
32
+ this .n =n ;
33
+ this .t =t ;
34
+ this .t2 =t2 ;
35
+ }
36
+ }
You can’t perform that action at this time.
0 commit comments