Package weka.classifiers.trees.ht
Class UnivariateNumericBinarySplit
java.lang.Object
weka.classifiers.trees.ht.Split
weka.classifiers.trees.ht.UnivariateNumericBinarySplit
- All Implemented Interfaces:
Serializable
A binary split based on a single numeric attribute
- Version:
- $Revision: 9705 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbranchForInstance
(Instance inst) Returns the name of the branch that the supplied instance would go downconditionForBranch
(String branch) Returns the condition for the supplied branch nameMethods inherited from class weka.classifiers.trees.ht.Split
splitAttributes
-
Constructor Details
-
UnivariateNumericBinarySplit
Constructor- Parameters:
attName
- the name of the attribute to split onsplitPoint
- the split point
-
-
Method Details
-
branchForInstance
Description copied from class:Split
Returns the name of the branch that the supplied instance would go down- Specified by:
branchForInstance
in classSplit
- Parameters:
inst
- the instance to find the branch for- Returns:
- the name of the branch that the instance would go down
-
conditionForBranch
Description copied from class:Split
Returns the condition for the supplied branch name- Specified by:
conditionForBranch
in classSplit
- Parameters:
branch
- the name of the branch to get the condition for- Returns:
- the condition (test) that corresponds to the named branch
-