public final class MergeableDag
extends java.lang.Object
Class MergeableDag
contains a static, thread-safe factory
method that constructs a Directed Acyclic Graph (DAG) from sequence data.
Modifier and Type | Method and Description |
---|---|
Dag |
dag()
Returns the constructed DAG.
|
static Dag |
dag(HapPairs hapPairs,
float[] weights,
float scale,
int nInitLevels)
Constructs and returns a new
Dag instance from the
specified data. |
java.lang.String |
toString()
Returns a string description of
this . |
public static Dag dag(HapPairs hapPairs, float[] weights, float scale, int nInitLevels)
Dag
instance from the
specified data.hapPairs
- the sequence dataweights
- an array whose j
-th element is the
weight for the j
-th haplotypescale
- a parameter that multiplicatively scales the node
similarity thresholdnInitLevels
- the number of initial levels to readDag
instancejava.lang.IllegalArgumentException
- if hapPairs.nMarkers() == 0
java.lang.IllegalArgumentException
- if
(weights[j] <= 0 || Float.isFinite(weights[j]) == false)
for any j
satisfying (0 <= j && j < weights.length)
java.lang.IllegalArgumentException
- if
Double.isFinite(scale) == false || scale <= 0
java.lang.IllegalArgumentException
- if nInitLevels < 1
java.lang.NullPointerException
- if
hapPairs == null || weights == null
public Dag dag()
public java.lang.String toString()
this
. The
exact details of the representation are unspecified and subject
to change.toString
in class java.lang.Object
this