pal.treesearch
Class ConstrainedInternalNode
java.lang.Object
pal.treesearch.AbstractParentableConstrainedNode
pal.treesearch.ConstrainedInternalNode
- All Implemented Interfaces:
- ConstrainedNode, GeneralOptimisable, GeneralTreeComponent, ParentableConstrainedNode
public class ConstrainedInternalNode
- extends AbstractParentableConstrainedNode
- implements ConstrainedNode, GeneralOptimisable
Method Summary |
double |
calculateLogLikelihood(GeneralConstructionTool tool)
|
ConditionalProbabilityStore |
getAscendentExtended(double baseHeight,
ConstrainedNode childCaller,
GeneralConstructionTool tool,
boolean allowCaching)
|
ConditionalProbabilityStore |
getAscendentFlat(ConstrainedNode childCaller,
GeneralConstructionTool tool,
boolean allowCaching)
|
PatternInfo |
getAscendentPatternInfo(ConstrainedNode childCaller,
GeneralConstructionTool tool)
|
PatternInfo |
getCenterPattern(GeneralConstructionTool tool)
For center pattern, left is ascendent component, right is descendent component |
void |
getNonSubTreeComponents(java.util.ArrayList store,
java.lang.Class componentType)
|
int |
getNumberOfOptimisationTypes()
|
double |
optimise(int optimisationType,
UnivariateMinimum minimiser,
GeneralConstructionTool tool,
int fracDigits)
|
void |
recursivelySetParentPivot(PivotNode parentPivot)
|
void |
testLikelihood(GeneralConstructionTool tool)
|
Methods inherited from class pal.treesearch.AbstractParentableConstrainedNode |
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, toStringLengths |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pal.treesearch.ConstrainedNode |
buildDescendentPALNodeBase, buildDescendentPALNodeES, getDescendentExtendedConditionals, getDescendentExtendedConditionalsWithAdjustedInternalHeights, getDescendentFlatConditionals, getDescendentPatternInfo, getLeftChild, getMaxOriginalDescendentLeafHeight, getMinimumChildSeperation, getMinimumDirectChildDistance, getMinimumLeafChildSeperation, getMinOriginalDescendentLeafHeight, getNodeHeight, getRightChild, getSubTreeComponents, obtainLeafInformation, recursivelyAdjustNodeHeight, setupInternalNodeHeights, toStringHeights, toStringLengths |
ConstrainedInternalNode
public ConstrainedInternalNode(Node peer,
ParentableConstrainedNode parentNode,
GeneralConstructionTool tool,
GeneralConstraintGroupManager.Store store,
GeneralConstraintGroupManager groupManager)
recursivelySetParentPivot
public void recursivelySetParentPivot(PivotNode parentPivot)
- Specified by:
recursivelySetParentPivot
in interface ConstrainedNode
getNonSubTreeComponents
public void getNonSubTreeComponents(java.util.ArrayList store,
java.lang.Class componentType)
- Specified by:
getNonSubTreeComponents
in interface ConstrainedNode
- Specified by:
getNonSubTreeComponents
in class AbstractParentableConstrainedNode
calculateLogLikelihood
public double calculateLogLikelihood(GeneralConstructionTool tool)
getCenterPattern
public PatternInfo getCenterPattern(GeneralConstructionTool tool)
- For center pattern, left is ascendent component, right is descendent component
- Parameters:
tool
- The consturction tool
- Returns:
- Pattern info
getAscendentExtended
public ConditionalProbabilityStore getAscendentExtended(double baseHeight,
ConstrainedNode childCaller,
GeneralConstructionTool tool,
boolean allowCaching)
- Specified by:
getAscendentExtended
in interface ParentableConstrainedNode
getAscendentFlat
public ConditionalProbabilityStore getAscendentFlat(ConstrainedNode childCaller,
GeneralConstructionTool tool,
boolean allowCaching)
- Specified by:
getAscendentFlat
in interface ParentableConstrainedNode
testLikelihood
public void testLikelihood(GeneralConstructionTool tool)
- Specified by:
testLikelihood
in interface ConstrainedNode
getAscendentPatternInfo
public PatternInfo getAscendentPatternInfo(ConstrainedNode childCaller,
GeneralConstructionTool tool)
- Specified by:
getAscendentPatternInfo
in interface ParentableConstrainedNode
getNumberOfOptimisationTypes
public int getNumberOfOptimisationTypes()
- Specified by:
getNumberOfOptimisationTypes
in interface GeneralOptimisable
optimise
public double optimise(int optimisationType,
UnivariateMinimum minimiser,
GeneralConstructionTool tool,
int fracDigits)
- Specified by:
optimise
in interface GeneralOptimisable
- Parameters:
minimiser
- The single dimensional minimisation tooltool
- The construction toolfracDigits
- the number of fractional digits to converge to
- Returns:
- The optimised log likelihood