org.metasyntactic.ai.learning
Class DecisionTree.Node
java.lang.Object
|
+--org.metasyntactic.ai.learning.DecisionTree.Node
- Enclosing class:
- DecisionTree
- public static class DecisionTree.Node
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
choiceToNode
protected java.util.Map choiceToNode
DecisionTree.Node
public DecisionTree.Node(boolean decision)
DecisionTree.Node
public DecisionTree.Node(java.lang.Object attribute)
getAttribute
public java.lang.Object getAttribute()
addChild
public void addChild(java.lang.Object choice,
DecisionTree.Node n)
addChild
public void addChild(java.lang.Object choice,
DecisionTree tree)
getChild
public DecisionTree.Node getChild(java.lang.Object choice)
isDecision
public boolean isDecision()
getDecision
public boolean getDecision()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object