public class TwoWayNominalSplit extends Splitter
orderAdded| Constructor and Description | 
|---|
| TwoWayNominalSplit(int _attIndex,
                  int _trueSplitValue)Creates a new two-way nominal splitter. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | attributeString(Instances dataset)Gets the string describing the attributes the split depends on. | 
| int | branchInstanceGoesDown(Instance inst)Gets the index of the branch that an instance applies to. | 
| java.lang.Object | clone()Clones this node. | 
| java.lang.String | comparisonString(int branchNum,
                Instances dataset)Gets the string describing the comparision the split depends on for a particular
 branch. | 
| boolean | equalTo(Splitter compare)Tests whether two splitters are equivalent. | 
| PredictionNode | getChildForBranch(int branchNum)Gets the child for a branch of the split. | 
| int | getNumOfBranches()Gets the number of branches of the split. | 
| java.lang.String | getRevision()Returns the revision string. | 
| ReferenceInstances | instancesDownBranch(int branch,
                   Instances instances)Gets the subset of instances that apply to a particluar branch of the split. | 
| void | setChildForBranch(int branchNum,
                 PredictionNode childPredictor)Sets the child for a branch of the split. | 
public TwoWayNominalSplit(int _attIndex,
                          int _trueSplitValue)
_attIndex - the index of the attribute this split depeneds on_trueSplitValue - the attribute value that the splitter splits onpublic int getNumOfBranches()
getNumOfBranches in class Splitterpublic int branchInstanceGoesDown(Instance inst)
branchInstanceGoesDown in class Splitterinst - the instancepublic ReferenceInstances instancesDownBranch(int branch, Instances instances)
instancesDownBranch in class Splitterbranch - the index of the branchinstances - the instances from which to find the subsetpublic java.lang.String attributeString(Instances dataset)
attributeString in class Splitterdataset - the dataset that the split is based onpublic java.lang.String comparisonString(int branchNum,
                                         Instances dataset)
comparisonString in class SplitterbranchNum - the branch of the splitdataset - the dataset that the split is based onpublic boolean equalTo(Splitter compare)
public void setChildForBranch(int branchNum,
                              PredictionNode childPredictor)
setChildForBranch in class SplitterbranchNum - the branch to set the child forchildPredictor - the new childpublic PredictionNode getChildForBranch(int branchNum)
getChildForBranch in class SplitterbranchNum - the branch to get the child forpublic java.lang.Object clone()
public java.lang.String getRevision()