Class NominalAttributeBinaryRulePredicate
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.core.conditionaltests.InstanceConditionalTest
-
- moa.classifiers.core.conditionaltests.InstanceConditionalBinaryTest
-
- moa.classifiers.core.conditionaltests.NominalAttributeBinaryTest
-
- moa.classifiers.rules.core.conditionaltests.NominalAttributeBinaryRulePredicate
-
- All Implemented Interfaces:
Serializable
,Predicate
,MOAObject
public class NominalAttributeBinaryRulePredicate extends NominalAttributeBinaryTest implements Predicate
Nominal binary conditional test for instances to use to split nodes in rules.- Version:
- $Revision: 7 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
state
-
Fields inherited from class moa.classifiers.core.conditionaltests.NominalAttributeBinaryTest
attIndex, attValue
-
-
Constructor Summary
Constructors Constructor Description NominalAttributeBinaryRulePredicate(int attIndex, int attValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class moa.classifiers.core.conditionaltests.NominalAttributeBinaryTest
branchForInstance, describeConditionForBranch, getAttsTestDependsOn
-
Methods inherited from class moa.classifiers.core.conditionaltests.InstanceConditionalBinaryTest
maxBranches
-
Methods inherited from class moa.classifiers.core.conditionaltests.InstanceConditionalTest
resultKnownForInstance
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize
-
-
-
-
Method Detail
-
negateCondition
public void negateCondition()
- Specified by:
negateCondition
in interfacePredicate
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Specified by:
getDescription
in interfaceMOAObject
- Overrides:
getDescription
in classNominalAttributeBinaryTest
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
toString
public String toString()
Description copied from class:AbstractMOAObject
Returns a description of the object.- Overrides:
toString
in classAbstractMOAObject
- Returns:
- a description of the object
-
getAttributeIndex
public int getAttributeIndex()
- Specified by:
getAttributeIndex
in interfacePredicate
-
isEqualOrLess
public boolean isEqualOrLess()
- Specified by:
isEqualOrLess
in interfacePredicate
-
getDescription
public void getDescription(StringBuilder sb, int indent, InstanceInformation instInformation)
- Specified by:
getDescription
in interfacePredicate
-
-