Package pal.treesearch
Class GlobalClockModel
- java.lang.Object
-
- pal.treesearch.GlobalClockModel
-
- All Implemented Interfaces:
MolecularClockLikelihoodModel.HeightConverter,NeoParameterized,ConstraintModel,ConstraintModel.GroupManager
public class GlobalClockModel extends java.lang.Object implements ConstraintModel, ConstraintModel.GroupManager, MolecularClockLikelihoodModel.HeightConverter, NeoParameterized
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface pal.treesearch.ConstraintModel
ConstraintModel.GroupManager
-
-
Constructor Summary
Constructors Constructor Description GlobalClockModel(MolecularClockLikelihoodModel.Instance likelihoodModel)
-
Method Summary
-
-
-
Constructor Detail
-
GlobalClockModel
public GlobalClockModel(MolecularClockLikelihoodModel.Instance likelihoodModel)
-
-
Method Detail
-
getRateModelSummary
public java.lang.String getRateModelSummary()
- Specified by:
getRateModelSummaryin interfaceConstraintModel
-
getGlobalClockConstraintGrouping
public ConstraintModel.GroupManager getGlobalClockConstraintGrouping(java.lang.String[] leafLabelSet)
Description copied from interface:ConstraintModelEnquire about the clock constraint grouping of the leaf- Specified by:
getGlobalClockConstraintGroupingin interfaceConstraintModel- Returns:
- the grouping of the leaf, or null if outside the leaf is unconstrained (free)
-
getCladeConstraints
public java.lang.String[][] getCladeConstraints(java.lang.String[] allLabelSet)
Description copied from interface:ConstraintModelObtain the permanent clade sets. That is, when randomly building the tree, and when tree searching, what labels must always form a clade.- Specified by:
getCladeConstraintsin 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:
createNewFreeLeafin interfaceConstraintModel
-
createNewFreeExternal
public UnconstrainedLikelihoodModel.External createNewFreeExternal()
- Specified by:
createNewFreeExternalin interfaceConstraintModel
-
createNewFreeInternal
public UnconstrainedLikelihoodModel.Internal createNewFreeInternal()
- Specified by:
createNewFreeInternalin interfaceConstraintModel
-
createAppropriateConditionalProbabilityStore
public ConditionalProbabilityStore createAppropriateConditionalProbabilityStore(boolean isForLeaf)
- Specified by:
createAppropriateConditionalProbabilityStorein interfaceConstraintModel
-
getGlobalParameterAccess
public NeoParameterized getGlobalParameterAccess()
- Specified by:
getGlobalParameterAccessin interfaceConstraintModel
-
getLeafBaseHeight
public double getLeafBaseHeight(java.lang.String leafLabel)
- Specified by:
getLeafBaseHeightin interfaceConstraintModel.GroupManager
-
getBaseHeight
public double getBaseHeight(double originalExpectSubstitutionHeight)
- Specified by:
getBaseHeightin interfaceConstraintModel.GroupManager
-
getBaseHeightUnits
public int getBaseHeightUnits()
- Specified by:
getBaseHeightUnitsin interfaceConstraintModel.GroupManager
-
initialiseParameters
public void initialiseParameters(java.lang.String[] leafNames, double[] leafHeights)- Specified by:
initialiseParametersin interfaceConstraintModel.GroupManager
-
getAllGroupRelatedParameterAccess
public NeoParameterized getAllGroupRelatedParameterAccess()
- Specified by:
getAllGroupRelatedParameterAccessin interfaceConstraintModel.GroupManager
-
getPrimaryGroupRelatedParameterAccess
public NeoParameterized getPrimaryGroupRelatedParameterAccess()
- Specified by:
getPrimaryGroupRelatedParameterAccessin interfaceConstraintModel.GroupManager
-
getSecondaryGroupRelatedParameterAccess
public NeoParameterized getSecondaryGroupRelatedParameterAccess()
- Specified by:
getSecondaryGroupRelatedParameterAccessin interfaceConstraintModel.GroupManager
-
createNewClockLeaf
public MolecularClockLikelihoodModel.Leaf createNewClockLeaf(PatternInfo pattern, int[] patternStateMatchup)
- Specified by:
createNewClockLeafin interfaceConstraintModel.GroupManager
-
createNewClockExternal
public MolecularClockLikelihoodModel.External createNewClockExternal()
- Specified by:
createNewClockExternalin interfaceConstraintModel.GroupManager
-
createNewClockInternal
public MolecularClockLikelihoodModel.Internal createNewClockInternal()
- Specified by:
createNewClockInternalin interfaceConstraintModel.GroupManager
-
getExpectedSubstitutionHeight
public double getExpectedSubstitutionHeight(double baseHeight)
- Specified by:
getExpectedSubstitutionHeightin interfaceConstraintModel.GroupManager- Specified by:
getExpectedSubstitutionHeightin interfaceMolecularClockLikelihoodModel.HeightConverter
-
getExpectedSubstitutionDistance
public double getExpectedSubstitutionDistance(double lowerBaseHeight, double upperBaseHeight)- Specified by:
getExpectedSubstitutionDistancein interfaceMolecularClockLikelihoodModel.HeightConverter
-
getNumberOfParameters
public int getNumberOfParameters()
Description copied from interface:NeoParameterizedget number of parameters- Specified by:
getNumberOfParametersin interfaceNeoParameterized- Returns:
- number of parameters
-
setParameters
public void setParameters(double[] parameters, int startIndex)Description copied from interface:NeoParameterizedset model parameter- Specified by:
setParametersin interfaceNeoParameterized- Parameters:
parameters- the array holding the parametersstartIndex- the index into the array that the related parameters start at
-
getParameters
public void getParameters(double[] store, int startIndex)Description copied from interface:NeoParameterizedget model parameter- Specified by:
getParametersin interfaceNeoParameterizedstartIndex- the index into the array that the related parameters start at
-
getLowerLimit
public double getLowerLimit(int n)
Description copied from interface:NeoParameterizedget lower parameter limit- Specified by:
getLowerLimitin interfaceNeoParameterized- Parameters:
n- parameter number- Returns:
- lower bound
-
getUpperLimit
public double getUpperLimit(int n)
Description copied from interface:NeoParameterizedget upper parameter limit- Specified by:
getUpperLimitin interfaceNeoParameterized- Parameters:
n- parameter number- Returns:
- upper bound
-
getDefaultValues
public void getDefaultValues(double[] store, int startIndex)Description copied from interface:NeoParameterizedget default value parameter values- Specified by:
getDefaultValuesin interfaceNeoParameterized
-
-