public class DemographicClockTree extends ClockTree implements DemographicTree
ParameterizedTree.Factory, ParameterizedTree.ParameterizedTreeBaseParameterized.Null, Parameterized.ParameterizedBase, Parameterized.ParameterizedUser, Parameterized.UtilsTree.TreeBaseDAYS, EXPECTED_SUBSTITUTIONS, GENERATIONS, MONTHS, SAMPLE, SHORT_UNIT_NAMES, UNIT_NAMES, UNKNOWN, YEARS| Constructor and Description |
|---|
DemographicClockTree(Tree t,
DemographicModel model)
take any tree and afford it with an interface
suitable for a clock-like genealogy, under a certain demographic
assumption.
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeDemoLogLikelihood()
Returns the likelihood of the current demographic model, given
the current branch lengths.
|
DemographicModel |
getDemographicModel()
Return the demographic model being used to optimize the
likelihood of this tree.
|
int |
getNumParameters()
get number of parameters
|
protected void |
heights2parameters() |
protected void |
parameters2Heights() |
getCopy, getDefaultValue, getLowerLimit, getParameter, getParameterizationInfo, getParameterizedTreeFactory, getUpperLimit, setParameter, setParameterSE, updatecreateNodeList, getAttribute, getBaseTree, getExternalNode, getExternalNodeCount, getIdCount, getIdentifier, getInternalNode, getInternalNodeCount, getNodeCount, getOrthogonalHints, getRoot, getUnits, setAttribute, setBaseTree, setIdentifier, setRoot, toString, whichIdNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOrthogonalHintscreateNodeList, getAttribute, getExternalNode, getExternalNodeCount, getInternalNode, getInternalNodeCount, getRoot, getUnits, setAttribute, setRootgetIdCount, getIdentifier, setIdentifier, whichIdNumberpublic DemographicClockTree(Tree t, DemographicModel model)
This parameterisation of branches, ensuring that all parameters are independent of each other is due to Andrew Rambaut (personal communication).
public double computeDemoLogLikelihood()
computeDemoLogLikelihood in interface DemographicTreepublic int getNumParameters()
ParameterizedgetNumParameters in interface ParameterizedgetNumParameters in class ClockTreeprotected void parameters2Heights()
parameters2Heights in class ClockTreeprotected void heights2parameters()
heights2parameters in class ClockTreepublic DemographicModel getDemographicModel()
getDemographicModel in interface DemographicTree