Skip to content

Commit cf129ab

Browse files
author
field
committed
One more missing in last commit
1 parent 75e0fd4 commit cf129ab

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
}

0 commit comments

Comments
 (0)