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 TypeMethodDescriptiondoublegetAscendentExtended(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 componentvoidgetNonSubTreeComponents(ArrayList store, Class componentType) intdoubleoptimise(int optimisationType, UnivariateMinimum minimiser, GeneralConstructionTool tool, int fracDigits) voidrecursivelySetParentPivot(PivotNode parentPivot) voidMethods 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, toStringLengthsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, toStringLengthsMethods 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:
recursivelySetParentPivotin interfaceConstrainedNode
-
getNonSubTreeComponents
- Specified by:
getNonSubTreeComponentsin interfaceConstrainedNode- Specified by:
getNonSubTreeComponentsin 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:
getAscendentExtendedin interfaceParentableConstrainedNode
-
getAscendentFlat
public ConditionalProbabilityStore getAscendentFlat(ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching) - Specified by:
getAscendentFlatin interfaceParentableConstrainedNode
-
testLikelihood
- Specified by:
testLikelihoodin interfaceConstrainedNode
-
getAscendentPatternInfo
public PatternInfo getAscendentPatternInfo(ConstrainedNode childCaller, GeneralConstructionTool tool) - Specified by:
getAscendentPatternInfoin interfaceParentableConstrainedNode
-
getNumberOfOptimisationTypes
public int getNumberOfOptimisationTypes()- Specified by:
getNumberOfOptimisationTypesin interfaceGeneralOptimisable
-
optimise
public double optimise(int optimisationType, UnivariateMinimum minimiser, GeneralConstructionTool tool, int fracDigits) - Specified by:
optimisein interfaceGeneralOptimisable- Parameters:
minimiser- The single dimensional minimisation tooltool- The construction toolfracDigits- the number of fractional digits to converge to- Returns:
- The optimised log likelihood
-