Package pal.treesearch
Class FixedSRDTGlobalClockModel
java.lang.Object
pal.treesearch.FixedSRDTGlobalClockModel
- All Implemented Interfaces:
MolecularClockLikelihoodModel.HeightConverter
,ConstraintModel
,ConstraintModel.GroupManager
public class FixedSRDTGlobalClockModel
extends Object
implements ConstraintModel, ConstraintModel.GroupManager, MolecularClockLikelihoodModel.HeightConverter
-
Nested Class Summary
Nested classes/interfaces inherited from interface pal.treesearch.ConstraintModel
ConstraintModel.GroupManager
-
Constructor Summary
ConstructorsConstructorDescriptionFixedSRDTGlobalClockModel
(SampleInformation sampleInformation, MolecularClockLikelihoodModel.Instance likelihoodModel, double rate) -
Method Summary
Modifier and TypeMethodDescriptioncreateAppropriateConditionalProbabilityStore
(boolean isForLeaf) createNewClockLeaf
(PatternInfo pattern, int[] patternStateMatchup) createNewFreeLeaf
(int[] patternStateMatchup, int numberOfPatterns) double
getBaseHeight
(double originalExpectSubstitutionHeight) int
String[][]
getCladeConstraints
(String[] allLabelSet) Obtain the permanent clade sets.double
getExpectedSubstitutionDistance
(double lowerBaseHeight, double upperBaseHeight) double
getExpectedSubstitutionHeight
(double baseHeight) getGlobalClockConstraintGrouping
(String[] leafLabelSet) Enquire about the clock constraint grouping of the leafdouble
getLeafBaseHeight
(String leafLabel) double
void
initialiseParameters
(String[] leafNames, double[] leafHeights)
-
Constructor Details
-
FixedSRDTGlobalClockModel
public FixedSRDTGlobalClockModel(SampleInformation sampleInformation, MolecularClockLikelihoodModel.Instance likelihoodModel, double rate)
-
-
Method Details
-
getRateModelSummary
- Specified by:
getRateModelSummary
in interfaceConstraintModel
-
getGlobalClockConstraintGrouping
Description copied from interface:ConstraintModel
Enquire about the clock constraint grouping of the leaf- Specified by:
getGlobalClockConstraintGrouping
in interfaceConstraintModel
- Returns:
- the grouping of the leaf, or null if outside the leaf is unconstrained (free)
-
getCladeConstraints
Description copied from interface:ConstraintModel
Obtain the permanent clade sets. That is, when randomly building the tree, and when tree searching, what labels must always form a clade.- Specified by:
getCladeConstraints
in interfaceConstraintModel
- Parameters:
allLabelSet
- The set of all leaf labels in the tree- Returns:
- An array of string arrays dividing up the label set
-
createNewFreeLeaf
public UnconstrainedLikelihoodModel.Leaf createNewFreeLeaf(int[] patternStateMatchup, int numberOfPatterns) - Specified by:
createNewFreeLeaf
in interfaceConstraintModel
-
createNewFreeExternal
- Specified by:
createNewFreeExternal
in interfaceConstraintModel
-
createNewFreeInternal
- Specified by:
createNewFreeInternal
in interfaceConstraintModel
-
createAppropriateConditionalProbabilityStore
- Specified by:
createAppropriateConditionalProbabilityStore
in interfaceConstraintModel
-
getSubstitutionRate
public double getSubstitutionRate() -
getGlobalParameterAccess
- Specified by:
getGlobalParameterAccess
in interfaceConstraintModel
-
getLeafBaseHeight
- Specified by:
getLeafBaseHeight
in interfaceConstraintModel.GroupManager
-
getBaseHeight
public double getBaseHeight(double originalExpectSubstitutionHeight) - Specified by:
getBaseHeight
in interfaceConstraintModel.GroupManager
-
getBaseHeightUnits
public int getBaseHeightUnits()- Specified by:
getBaseHeightUnits
in interfaceConstraintModel.GroupManager
-
initialiseParameters
- Specified by:
initialiseParameters
in interfaceConstraintModel.GroupManager
-
getAllGroupRelatedParameterAccess
- Specified by:
getAllGroupRelatedParameterAccess
in interfaceConstraintModel.GroupManager
-
getPrimaryGroupRelatedParameterAccess
- Specified by:
getPrimaryGroupRelatedParameterAccess
in interfaceConstraintModel.GroupManager
-
getSecondaryGroupRelatedParameterAccess
- Specified by:
getSecondaryGroupRelatedParameterAccess
in interfaceConstraintModel.GroupManager
-
createNewClockLeaf
public MolecularClockLikelihoodModel.Leaf createNewClockLeaf(PatternInfo pattern, int[] patternStateMatchup) - Specified by:
createNewClockLeaf
in interfaceConstraintModel.GroupManager
-
createNewClockExternal
- Specified by:
createNewClockExternal
in interfaceConstraintModel.GroupManager
-
createNewClockInternal
- Specified by:
createNewClockInternal
in interfaceConstraintModel.GroupManager
-
getExpectedSubstitutionHeight
public double getExpectedSubstitutionHeight(double baseHeight) - Specified by:
getExpectedSubstitutionHeight
in interfaceConstraintModel.GroupManager
- Specified by:
getExpectedSubstitutionHeight
in interfaceMolecularClockLikelihoodModel.HeightConverter
-
getExpectedSubstitutionDistance
public double getExpectedSubstitutionDistance(double lowerBaseHeight, double upperBaseHeight) - Specified by:
getExpectedSubstitutionDistance
in interfaceMolecularClockLikelihoodModel.HeightConverter
-