| Modifier and Type | Interface and Description |
|---|---|
static class |
LogicTree.Builder<T>
A logic tree builder.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> LogicTree.Builder<T> |
builder()
Return a new logic tree builder.
|
Branch<T> |
sample(double probability)
Return a logic tree branch corresponding to the supplied probability.
|
List<Branch<T>> |
sample(double[] probabilities)
Return an immutable list of logic tree branches corresponding to the
supplied probabilities.
|
static <T> gov.usgs.earthquake.nshmp.tree.SingleBranchTree<T> |
singleBranch(String id,
T value)
Return a new
SingleBranchTree. |
forEach, iterator, spliteratorBranch<T> sample(double probability)
Note: this method does not check that 0.0 ≤ p < 1.0.
probability - in the range [0..1)List<Branch<T>> sample(double[] probabilities)
Note: this method does not check that each
0.0 ≤ p < 1.0.
probabilities - in the range [0..1)static <T> gov.usgs.earthquake.nshmp.tree.SingleBranchTree<T> singleBranch(String id, T value)
SingleBranchTree.id - the branch identifiervalue - the branch valuestatic <T> LogicTree.Builder<T> builder()