public class NumericAttributeBinaryTest extends InstanceConditionalBinaryTest
Modifier and Type | Field and Description |
---|---|
protected int |
attIndex |
protected double |
attValue |
protected boolean |
equalsPassesTest |
Constructor and Description |
---|
NumericAttributeBinaryTest(int attIndex,
double attValue,
boolean equalsPassesTest) |
Modifier and Type | Method and Description |
---|---|
int |
branchForInstance(weka.core.Instance inst)
Returns the number of the branch for an instance, -1 if unknown.
|
String |
describeConditionForBranch(int branch,
InstancesHeader context)
Gets the text that describes the condition of a branch.
|
int[] |
getAttsTestDependsOn()
Returns an array with the attributes that the test depends on.
|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
getSplitValue() |
maxBranches
resultKnownForInstance
copy, copy, measureByteSize, measureByteSize, toString
protected int attIndex
protected double attValue
protected boolean equalsPassesTest
public NumericAttributeBinaryTest(int attIndex, double attValue, boolean equalsPassesTest)
public int branchForInstance(weka.core.Instance inst)
InstanceConditionalTest
branchForInstance
in class InstanceConditionalTest
inst
- the instance to be usedpublic String describeConditionForBranch(int branch, InstancesHeader context)
InstanceConditionalTest
describeConditionForBranch
in class InstanceConditionalTest
branch
- the number of the branch to describecontext
- the context or header of the data streampublic void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic int[] getAttsTestDependsOn()
InstanceConditionalTest
getAttsTestDependsOn
in class InstanceConditionalTest
public double getSplitValue()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.