Package 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface pal.treesearch.ConstrainedNode
ConstrainedNode.HeightAdjustment
-
-
Constructor Summary
Constructors Constructor Description ConstrainedInternalNode(Node peer, ParentableConstrainedNode parentNode, GeneralConstructionTool tool, GeneralConstraintGroupManager.Store store, GeneralConstraintGroupManager groupManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 componentvoid
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
-
Methods inherited from interface pal.treesearch.GeneralTreeComponent
getAllComponents
-
-
-
-
Constructor Detail
-
ConstrainedInternalNode
public ConstrainedInternalNode(Node peer, ParentableConstrainedNode parentNode, GeneralConstructionTool tool, GeneralConstraintGroupManager.Store store, GeneralConstraintGroupManager groupManager)
-
-
Method Detail
-
recursivelySetParentPivot
public void recursivelySetParentPivot(PivotNode parentPivot)
- Specified by:
recursivelySetParentPivot
in interfaceConstrainedNode
-
getNonSubTreeComponents
public void getNonSubTreeComponents(java.util.ArrayList store, java.lang.Class componentType)
- Specified by:
getNonSubTreeComponents
in interfaceConstrainedNode
- Specified by:
getNonSubTreeComponents
in classAbstractParentableConstrainedNode
-
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 interfaceParentableConstrainedNode
-
getAscendentFlat
public ConditionalProbabilityStore getAscendentFlat(ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching)
- Specified by:
getAscendentFlat
in interfaceParentableConstrainedNode
-
testLikelihood
public void testLikelihood(GeneralConstructionTool tool)
- Specified by:
testLikelihood
in interfaceConstrainedNode
-
getAscendentPatternInfo
public PatternInfo getAscendentPatternInfo(ConstrainedNode childCaller, GeneralConstructionTool tool)
- Specified by:
getAscendentPatternInfo
in interfaceParentableConstrainedNode
-
getNumberOfOptimisationTypes
public int getNumberOfOptimisationTypes()
- Specified by:
getNumberOfOptimisationTypes
in interfaceGeneralOptimisable
-
optimise
public double optimise(int optimisationType, UnivariateMinimum minimiser, GeneralConstructionTool tool, int fracDigits)
- Specified by:
optimise
in interfaceGeneralOptimisable
- Parameters:
minimiser
- The single dimensional minimisation tooltool
- The construction toolfracDigits
- the number of fractional digits to converge to- Returns:
- The optimised log likelihood
-
-