public class UnivariateNumericBinarySplit extends Split implements java.io.Serializable
Constructor and Description |
---|
UnivariateNumericBinarySplit(java.lang.String attName,
double splitPoint)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
branchForInstance(Instance inst)
Returns the name of the branch that the supplied instance would go down
|
java.lang.String |
conditionForBranch(java.lang.String branch)
Returns the condition for the supplied branch name
|
splitAttributes
public UnivariateNumericBinarySplit(java.lang.String attName, double splitPoint)
attName
- the name of the attribute to split onsplitPoint
- the split pointpublic java.lang.String branchForInstance(Instance inst)
Split
branchForInstance
in class Split
inst
- the instance to find the branch forpublic java.lang.String conditionForBranch(java.lang.String branch)
Split
conditionForBranch
in class Split
branch
- the name of the branch to get the condition for