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
ConstructorsConstructorDescriptionConstrainedInternalNode
(Node peer, ParentableConstrainedNode parentNode, GeneralConstructionTool tool, GeneralConstraintGroupManager.Store store, GeneralConstraintGroupManager groupManager) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getAscendentExtended
(double baseHeight, ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching) getAscendentFlat
(ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching) getAscendentPatternInfo
(ConstrainedNode childCaller, GeneralConstructionTool tool) For center pattern, left is ascendent component, right is descendent componentvoid
getNonSubTreeComponents
(ArrayList store, Class componentType) int
double
optimise
(int optimisationType, UnivariateMinimum minimiser, GeneralConstructionTool tool, int fracDigits) void
recursivelySetParentPivot
(PivotNode parentPivot) void
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 Details
-
ConstrainedInternalNode
public ConstrainedInternalNode(Node peer, ParentableConstrainedNode parentNode, GeneralConstructionTool tool, GeneralConstraintGroupManager.Store store, GeneralConstraintGroupManager groupManager)
-
-
Method Details
-
recursivelySetParentPivot
- Specified by:
recursivelySetParentPivot
in interfaceConstrainedNode
-
getNonSubTreeComponents
- Specified by:
getNonSubTreeComponents
in interfaceConstrainedNode
- Specified by:
getNonSubTreeComponents
in classAbstractParentableConstrainedNode
-
calculateLogLikelihood
-
getCenterPattern
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
- 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
-