Class HoeffdingTree.Node

    • Field Detail

      • observedClassDistribution

        protected DoubleVector observedClassDistribution
    • Constructor Detail

      • Node

        public Node​(double[] classObservations)
    • Method Detail

      • calcByteSize

        public int calcByteSize()
      • calcByteSizeIncludingSubtree

        public int calcByteSizeIncludingSubtree()
      • isLeaf

        public boolean isLeaf()
      • getObservedClassDistribution

        public double[] getObservedClassDistribution()
      • getObservedClassDistributionAtLeavesReachableThroughThisNode

        public double[] getObservedClassDistributionAtLeavesReachableThroughThisNode()
      • observedClassDistributionIsPure

        public boolean observedClassDistributionIsPure()
      • subtreeDepth

        public int subtreeDepth()
      • calculatePromise

        public double calculatePromise()
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        Description copied from interface: MOAObject
        Returns a string representation of this object. Used in AbstractMOAObject.toString to give a string representation of the object.
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent