Class C45.Node

  • All Implemented Interfaces:
    Enclosing class:

    public static class C45.Node
    extends java.lang.Object
    See Also:
    Serialized Form
    • Method Detail

      • depth

        public int depth()
        The root has depth zero.
      • getSize

        public int getSize()
      • isLeaf

        public boolean isLeaf()
      • isRoot

        public boolean isRoot()
      • getParent

        public C45.Node getParent()
      • getLeftChild

        public C45.Node getLeftChild()
      • getRightChild

        public C45.Node getRightChild()
      • getGainRatio

        public GainRatio getGainRatio()
      • getSplitFeature

        public java.lang.Object getSplitFeature()
      • getNumDescendants

        public int getNumDescendants()
        Count the number of non-leaf descendant nodes
      • split

        public void split()
      • computeCostAndPrune

        public double computeCostAndPrune()
      • getMDL

        public double getMDL()
        Calculates the minimum description length of this node, i.e., the length of the binary encoding that describes the feature and the split value used at this node
      • stopGrowth

        public void stopGrowth()
        Saves memory by allowing ilist to be garbage collected (deletes this node's associated instance list)
      • getName

        public java.lang.String getName()
      • getStringBufferName

        public java.lang.StringBuffer getStringBufferName()
      • print

        public void print()
        Prints the tree rooted at this node
      • print

        public void print​(java.lang.String prefix)