weka.classifiers.trees.ht
Class UnivariateNumericBinarySplit
- java.lang.Object
-
- weka.classifiers.trees.ht.Split
-
- weka.classifiers.trees.ht.UnivariateNumericBinarySplit
-
- All Implemented Interfaces:
- java.io.Serializable
public class UnivariateNumericBinarySplit extends Split implements java.io.Serializable
A binary split based on a single numeric attribute- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description UnivariateNumericBinarySplit(java.lang.String attName, double splitPoint)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringbranchForInstance(Instance inst)Returns the name of the branch that the supplied instance would go downjava.lang.StringconditionForBranch(java.lang.String branch)Returns the condition for the supplied branch name-
Methods inherited from class weka.classifiers.trees.ht.Split
splitAttributes
-
-
-
-
Constructor Detail
-
UnivariateNumericBinarySplit
public UnivariateNumericBinarySplit(java.lang.String attName, double splitPoint)Constructor- Parameters:
attName- the name of the attribute to split onsplitPoint- the split point
-
-
Method Detail
-
branchForInstance
public java.lang.String branchForInstance(Instance inst)
Description copied from class:SplitReturns the name of the branch that the supplied instance would go down- Specified by:
branchForInstancein classSplit- Parameters:
inst- the instance to find the branch for- Returns:
- the name of the branch that the instance would go down
-
conditionForBranch
public java.lang.String conditionForBranch(java.lang.String branch)
Description copied from class:SplitReturns the condition for the supplied branch name- Specified by:
conditionForBranchin classSplit- Parameters:
branch- the name of the branch to get the condition for- Returns:
- the condition (test) that corresponds to the named branch
-
-
DataMelt 3.0 © DataMelt by jWork.ORG