public class NominalAttributeBinaryRulePredicate extends NominalAttributeBinaryTest implements Predicate
Modifier and Type | Field and Description |
---|---|
protected boolean |
state |
attIndex, attValue
Constructor and Description |
---|
NominalAttributeBinaryRulePredicate(int attIndex,
int attValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Instance inst) |
int |
getAttributeIndex() |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
void |
getDescription(StringBuilder sb,
int indent,
InstanceInformation instInformation) |
boolean |
isEqualOrLess() |
void |
negateCondition() |
String |
toString()
Returns a description of the object.
|
branchForInstance, describeConditionForBranch, getAttsTestDependsOn
maxBranches
resultKnownForInstance
copy, copy, measureByteSize, measureByteSize
public NominalAttributeBinaryRulePredicate(int attIndex, int attValue)
public void negateCondition()
negateCondition
in interface Predicate
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
getDescription
in class NominalAttributeBinaryTest
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic String toString()
AbstractMOAObject
toString
in class AbstractMOAObject
public int getAttributeIndex()
getAttributeIndex
in interface Predicate
public boolean isEqualOrLess()
isEqualOrLess
in interface Predicate
public void getDescription(StringBuilder sb, int indent, InstanceInformation instInformation)
getDescription
in interface Predicate
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.