public abstract class Splitter extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, RevisionHandler
| Modifier and Type | Field and Description | 
|---|---|
| int | orderAddedThe number this node was in the order of nodes added to the tree | 
| Constructor and Description | 
|---|
| Splitter() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract java.lang.String | attributeString(Instances dataset)Gets the string describing the attributes the split depends on. | 
| abstract int | branchInstanceGoesDown(Instance i)Gets the index of the branch that an instance applies to. | 
| abstract java.lang.Object | clone()Clones this node. | 
| abstract java.lang.String | comparisonString(int branchNum,
                Instances dataset)Gets the string describing the comparision the split depends on for a particular
 branch. | 
| abstract boolean | equalTo(Splitter compare)Tests whether two splitters are equivalent. | 
| abstract PredictionNode | getChildForBranch(int branchNum)Gets the child for a branch of the split. | 
| abstract int | getNumOfBranches()Gets the number of branches of the split. | 
| abstract ReferenceInstances | instancesDownBranch(int branch,
                   Instances sourceInstances)Gets the subset of instances that apply to a particluar branch of the split. | 
| abstract void | setChildForBranch(int branchNum,
                 PredictionNode childPredictor)Sets the child for a branch of the split. | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRevisionpublic int orderAdded
public abstract int getNumOfBranches()
public abstract int branchInstanceGoesDown(Instance i)
i - the instancepublic abstract ReferenceInstances instancesDownBranch(int branch, Instances sourceInstances)
branch - the index of the branchsourceInstances - the instances from which to find the subsetpublic abstract java.lang.String attributeString(Instances dataset)
dataset - the dataset that the split is based onpublic abstract java.lang.String comparisonString(int branchNum,
                                                  Instances dataset)
branchNum - the branch of the splitdataset - the dataset that the split is based onpublic abstract boolean equalTo(Splitter compare)
compare - the splitter to compare withpublic abstract void setChildForBranch(int branchNum,
                                       PredictionNode childPredictor)
branchNum - the branch to set the child forchildPredictor - the new childpublic abstract PredictionNode getChildForBranch(int branchNum)
branchNum - the branch to get the child forpublic abstract java.lang.Object clone()
clone in class java.lang.Object