org.metasyntactic.ai.learning
Class DecisionTree

java.lang.Object
  |
  +--org.metasyntactic.ai.learning.DecisionTree

public class DecisionTree
extends java.lang.Object


Nested Class Summary
static class DecisionTree.Node
           
 
Constructor Summary
DecisionTree(DecisionTree.Node root)
          Creates new DecisionTree
 
Method Summary
 boolean generateHypothesis(Example example)
           
 DecisionTree.Node getRoot()
           
static DecisionTree.Node newNode(boolean decision)
           
static DecisionTree.Node newNode(java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecisionTree

public DecisionTree(DecisionTree.Node root)
Creates new DecisionTree

Method Detail

getRoot

public DecisionTree.Node getRoot()

newNode

public static DecisionTree.Node newNode(java.lang.Object value)

newNode

public static DecisionTree.Node newNode(boolean decision)

toString

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

generateHypothesis

public boolean generateHypothesis(Example example)