| Constructor and Description |
|---|
FitzJohnRoot(java.util.Set<java.lang.String> states)
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 FitzJohnRoot(java.util.Set<java.lang.String> states)
states - The possible states of the modelpublic Real calculate(SiteLikelihood.NodeLikelihood root)
Rootpublic double getFreq(java.lang.String state)
throws RateCategory.RateException
RootgetFreq in interface Rootstate - The state to get the frequency ofRateCategory.RateException - If the frequency is not independent
of the root likelihoods (as in the case of FitzJohn et al 2009).