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 doublecalculateLogLikelihood(GeneralConstructionTool tool)ConditionalProbabilityStoregetAscendentExtended(double baseHeight, ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching)ConditionalProbabilityStoregetAscendentFlat(ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching)PatternInfogetAscendentPatternInfo(ConstrainedNode childCaller, GeneralConstructionTool tool)PatternInfogetCenterPattern(GeneralConstructionTool tool)For center pattern, left is ascendent component, right is descendent componentvoidgetNonSubTreeComponents(java.util.ArrayList store, java.lang.Class componentType)intgetNumberOfOptimisationTypes()doubleoptimise(int optimisationType, UnivariateMinimum minimiser, GeneralConstructionTool tool, int fracDigits)voidrecursivelySetParentPivot(PivotNode parentPivot)voidtestLikelihood(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:
recursivelySetParentPivotin interfaceConstrainedNode
-
getNonSubTreeComponents
public void getNonSubTreeComponents(java.util.ArrayList store, java.lang.Class componentType)- Specified by:
getNonSubTreeComponentsin interfaceConstrainedNode- Specified by:
getNonSubTreeComponentsin 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:
getAscendentExtendedin interfaceParentableConstrainedNode
-
getAscendentFlat
public ConditionalProbabilityStore getAscendentFlat(ConstrainedNode childCaller, GeneralConstructionTool tool, boolean allowCaching)
- Specified by:
getAscendentFlatin interfaceParentableConstrainedNode
-
testLikelihood
public void testLikelihood(GeneralConstructionTool tool)
- 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
-
-