aima.learning.inductive
Class ConstantDecisonTree

java.lang.Object
  extended by aima.learning.inductive.DecisionTree
      extended by aima.learning.inductive.ConstantDecisonTree

public class ConstantDecisonTree
extends DecisionTree


Constructor Summary
ConstantDecisonTree(java.lang.String value)
           
 
Method Summary
 void addLeaf(java.lang.String attributeValue, java.lang.String decision)
           
 void addNode(java.lang.String attributeValue, DecisionTree tree)
           
 java.lang.Object predict(Example e)
           
 java.lang.String toString()
           
 java.lang.String toString(int depth, java.lang.StringBuffer buf)
           
 
Methods inherited from class aima.learning.inductive.DecisionTree
getAttributeName, getStumpFor, getStumpsFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantDecisonTree

public ConstantDecisonTree(java.lang.String value)
Method Detail

addLeaf

public void addLeaf(java.lang.String attributeValue,
                    java.lang.String decision)
Overrides:
addLeaf in class DecisionTree

addNode

public void addNode(java.lang.String attributeValue,
                    DecisionTree tree)
Overrides:
addNode in class DecisionTree

predict

public java.lang.Object predict(Example e)
Overrides:
predict in class DecisionTree

toString

public java.lang.String toString()
Overrides:
toString in class DecisionTree

toString

public java.lang.String toString(int depth,
                                 java.lang.StringBuffer buf)
Overrides:
toString in class DecisionTree