public class StandardRoot extends java.lang.Object implements Root
Constructor and Description |
---|
StandardRoot(double[] freq,
java.util.Map<java.lang.String,java.lang.Integer> map)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Real |
calculate(SiteLikelihood.NodeLikelihood root)
Calculate the total likelihood from the root node likelihood
|
double |
getFreq(java.lang.String state)
Get the frequency of the given state at the root
|
public StandardRoot(double[] freq, java.util.Map<java.lang.String,java.lang.Integer> map)
freq
- The frequency of the various statesmap
- Map from state to position in the frequency arraypublic Real calculate(SiteLikelihood.NodeLikelihood root)
Root