Class DecisionTreeInternal

java.lang.Object
  extended by DecisionTree
      extended by DecisionTreeInternal

public class DecisionTreeInternal
extends DecisionTree

Represents an internal node in a decision tree.

Author:
jmac

Field Summary
 
Fields inherited from class DecisionTree
ROOT_LABEL
 
Method Summary
 java.lang.String decide(AttributeSet attributes, Instance instance)
          Return the decision tree's decision for the given instance: that is, the classification that should be assigned to the instance.
 void print()
          Print out the DecisionTree in a human-readable form
 
Methods inherited from class DecisionTree
computeErrorRate, constructDecisionTree, main, printDecisions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decide

public java.lang.String decide(AttributeSet attributes,
                               Instance instance)
Description copied from class: DecisionTree
Return the decision tree's decision for the given instance: that is, the classification that should be assigned to the instance.

Specified by:
decide in class DecisionTree
Parameters:
attributes - The set of attributes employed by the instance.
instance - The instance to be classified.
Returns:
The classification of the given instance.

print

public void print()
Description copied from class: DecisionTree
Print out the DecisionTree in a human-readable form

Overrides:
print in class DecisionTree