org.wdssii.decisiontree
Interface DecisionTree

All Superinterfaces:
Serializable
All Known Implementing Classes:
AxialDecisionTree

public interface DecisionTree
extends Serializable

Capable of classifying new data points into categories.

Author:
lakshman
See Also:
AxialDecisionTree, Usage:
   float[] data = new float[numAttr];
   // populate array
   ....
   int category = tree.classify(data);
 

Method Summary
 int classify(float[] data)
          classify input data
 String toJava()
           
 

Method Detail

classify

int classify(float[] data)
classify input data

Parameters:
attributes - of sample to classify
Returns:
category (0,1,2...,N-1) Will return -1 if decision tree is unable to classify data

toJava

String toJava()
Returns:
a Java code version of the decision tree.