Class EFDT.Node

    • Field Detail

      • observedClassDistribution

        protected DoubleVector observedClassDistribution
      • classDistributionAtTimeOfCreation

        protected DoubleVector classDistributionAtTimeOfCreation
      • nodeTime

        protected int nodeTime
      • usedNominalAttributes

        protected List<Integer> usedNominalAttributes
    • Constructor Detail

      • Node

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

      • getNumSplitAttempts

        public int getNumSplitAttempts()
      • addToSplitAttempts

        public void addToSplitAttempts​(int i)
      • calcByteSize

        public int calcByteSize()
      • calcByteSizeIncludingSubtree

        public int calcByteSizeIncludingSubtree()
      • isLeaf

        public boolean isLeaf()
      • getObservedClassDistribution

        public double[] getObservedClassDistribution()
      • getClassVotes

        public double[] getClassVotes​(Instance inst,
                                      EFDT ht)
      • getClassDistributionAtTimeOfCreation

        public double[] getClassDistributionAtTimeOfCreation()
      • observedClassDistributionIsPure

        public boolean observedClassDistributionIsPure()
      • describeSubtree

        public void describeSubtree​(EFDT ht,
                                    StringBuilder out,
                                    int indent)
      • 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