Package weka.classifiers.trees.ht
Class Split
- java.lang.Object
-
- weka.classifiers.trees.ht.Split
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
UnivariateNominalMultiwaySplit,UnivariateNumericBinarySplit
public abstract class Split extends java.lang.Object implements java.io.SerializableBase class for different split types- Version:
- $Revision: 10531 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Split()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringbranchForInstance(Instance inst)Returns the name of the branch that the supplied instance would go downabstract java.lang.StringconditionForBranch(java.lang.String branch)Returns the condition for the supplied branch namejava.util.List<java.lang.String>splitAttributes()
-
-
-
Method Detail
-
branchForInstance
public abstract java.lang.String branchForInstance(Instance inst)
Returns the name of the branch that the supplied instance would go down- Parameters:
inst- the instance to find the branch for- Returns:
- the name of the branch that the instance would go down
-
conditionForBranch
public abstract java.lang.String conditionForBranch(java.lang.String branch)
Returns the condition for the supplied branch name- Parameters:
branch- the name of the branch to get the condition for- Returns:
- the condition (test) that corresponds to the named branch
-
splitAttributes
public java.util.List<java.lang.String> splitAttributes()
-
-