public class PivotNode extends AbstractParentableConstrainedNode implements GeneralOptimisable, ParentableConstrainedNode, FreeNode, RootAccess, GroupLeader
| Constructor and Description |
|---|
PivotNode(Node tree,
FreeBranch parentConnection,
GeneralConstructionTool tool,
GeneralConstraintGroupManager constraintGroupManager,
GeneralConstraintGroupManager.Store store)
The subtree constructor with a connection to the rest of the tree
|
PivotNode(Node subTree,
GeneralConstructionTool tool,
GeneralConstraintGroupManager groupManager,
GeneralConstraintGroupManager.Store store)
The root constructor, only used when the whole tree is constrained
|
adjustNodeHeight, buildDescendentPALNodeBase, buildDescendentPALNodeES, buildLeftDecendentPALNodeBase, buildRightDecendentPALNodeBase, getAllComponents, getConstrainedInternal, getDescendentExtendedConditionals, getDescendentExtendedConditionalsWithAdjustedInternalHeights, getDescendentFlatConditionals, getDescendentLogLikelihood, getDescendentPatternInfo, getLeftChild, getLeftChildPatternInfo, getLeftDescendentExtendedConditionals, getLeftDescendentExtendedConditionals, getMaxChildHeight, getMaxOriginalDescendentLeafHeight, getMinimumChildSeperation, getMinimumChildSeperation, getMinimumDirectChildDistance, getMinimumLeafChildSeperation, getMinimumLeafChildSeperation, getMinOriginalDescendentLeafHeight, getNodeHeight, getNonSubTreeOfChildComponents, getRightChild, getRightChildPatternInfo, getRightDescendentExtendedConditionals, getRightDescendentExtendedConditionals, getSubTreeComponents, isLeftChild, obtainConstrainedExternalCalculator, obtainLeafInformation, rebuildDescendentPattern, recursivelyAdjustNodeHeight, recursivelySetChildrenParentPivot, setNodeHeight, setupInternalNodeHeights, toStringHeights, toStringLengths, toStringLengthsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeHeight, getNonSubTreeOfChildComponentsgetAllComponentsgetAllComponentsobtainLeafInformationpublic PivotNode(Node tree, FreeBranch parentConnection, GeneralConstructionTool tool, GeneralConstraintGroupManager constraintGroupManager, GeneralConstraintGroupManager.Store store)
tree - the PAL node tree to base this tree onparentConnection - The connection with the rest of tree (must be free, otherwise this shouldn't be the pivot)tool - A general construction tool object for objtaining/building various componentsgroupConstraints - The constraints object that manages the leaf constraintspublic PivotNode(Node subTree, GeneralConstructionTool tool, GeneralConstraintGroupManager groupManager, GeneralConstraintGroupManager.Store store)
tool - A general construction tool object for objtaining/building various componentssubTree - The subtreegroupConstraints - The constraints object that manages the leaf constraintspublic void postSetupNotify(ConstraintModel.GroupManager groupConstraints)
GroupLeaderpostSetupNotify in interface GroupLeaderpublic Node buildPALNodeBase()
buildPALNodeBase in interface RootAccesspublic Node buildPALNodeES()
buildPALNodeES in interface RootAccesspublic java.lang.String toString()
toString in class java.lang.Objectpublic ConditionalProbabilityStore getAscendentExtended(double baseHeight, ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching)
getAscendentExtended in interface ParentableConstrainedNodepublic ConditionalProbabilityStore getAscendentFlat(ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching)
getAscendentFlat in interface ParentableConstrainedNodepublic PatternInfo getAscendentPatternInfo(ConstrainedNode childCaller, GeneralConstructionTool tool)
getAscendentPatternInfo in interface ParentableConstrainedNodepublic double calculateLogLikelihood(GeneralConstructionTool tool)
calculateLogLikelihood in interface RootAccesspublic PatternInfo getPatternInfo(GeneralConstructionTool tool, FreeBranch caller)
getPatternInfo in interface FreeNodepublic boolean hasConnection(FreeBranch c, FreeBranch caller)
hasConnection in interface FreeNodepublic FreeBranch getLeftBranch(FreeBranch caller)
getLeftBranch in interface FreeNodepublic FreeBranch getRightBranch(FreeBranch caller)
getRightBranch in interface FreeNodepublic void getAllComponents(java.util.ArrayList store,
java.lang.Class componentType,
FreeBranch caller)
FreeNodegetAllComponents in interface FreeNodepublic void testLikelihood(FreeBranch caller, GeneralConstructionTool tool)
testLikelihood in interface FreeNodepublic void testLikelihood(GeneralConstructionTool tool)
testLikelihood in interface RootAccesspublic PatternInfo getLeftPatternInfo(GeneralConstructionTool tool, FreeBranch caller)
getLeftPatternInfo in interface FreeNodepublic PatternInfo getRightPatternInfo(GeneralConstructionTool tool, FreeBranch caller)
getRightPatternInfo in interface FreeNodepublic ConditionalProbabilityStore getExtendedConditionalProbabilities(double distance, FreeBranch caller, GeneralConstructionTool tool)
getExtendedConditionalProbabilities in interface FreeNodepublic ConditionalProbabilityStore getExtendedConditionalProbabilities(double distance, FreeBranch caller, UnconstrainedLikelihoodModel.External external, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool)
getExtendedConditionalProbabilities in interface FreeNodepublic FreeBranch extract(FreeBranch caller)
public Node buildPALNodeES(double branchLength_, FreeBranch caller)
buildPALNodeES in interface FreeNodepublic Node buildPALNodeBase(double branchLength_, FreeBranch caller)
buildPALNodeBase in interface FreeNodepublic ConditionalProbabilityStore getFlatConditionalProbabilities(FreeBranch caller, GeneralConstructionTool tool)
getFlatConditionalProbabilities in interface FreeNodepublic java.lang.String toString(FreeBranch caller)
public void setConnectingBranches(FreeBranch[] store, int number)
setConnectingBranches in interface FreeNodepublic boolean hasDirectConnection(FreeBranch query)
hasDirectConnection in interface FreeNodepublic void swapConnection(FreeBranch original, FreeBranch newConnection)
swapConnection in interface FreeNodepublic void swapConnection(FreeBranch original, FreeNode nodeToReplace, FreeBranch newConnection)
swapConnection in interface FreeNodepublic void getNonSubTreeComponents(java.util.ArrayList store,
java.lang.Class componentType)
getNonSubTreeComponents in class AbstractParentableConstrainedNodepublic int getNumberOfOptimisationTypes()
getNumberOfOptimisationTypes in interface GeneralOptimisablepublic double optimise(int optimisationType,
UnivariateMinimum minimiser,
GeneralConstructionTool tool,
int fracDigits)
optimise in interface GeneralOptimisableminimiser - The single dimensional minimisation tooltool - The construction toolfracDigits - the number of fractional digits to converge to