public class NumericRulePredicate extends AbstractMOAObject implements Predicate
Constructor | Description |
---|---|
NumericRulePredicate(int inputAttributeIndex,
double attributeValue,
boolean isEqualOrLower) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
evaluate(Instance instance) |
|
boolean |
evaluate(MultiLabelInstance instance) |
|
int |
getAttributeIndex() |
|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
void |
getDescription(java.lang.StringBuilder sb,
int indent,
InstanceInformation instInformation) |
|
boolean |
isEqualOrLess() |
|
void |
negateCondition() |
|
java.lang.String |
toString() |
Returns a description of the object.
|
copy, copy, measureByteSize, measureByteSize
public NumericRulePredicate(int inputAttributeIndex, double attributeValue, boolean isEqualOrLower)
public boolean evaluate(MultiLabelInstance instance)
public void negateCondition()
negateCondition
in interface Predicate
public void getDescription(java.lang.StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic void getDescription(java.lang.StringBuilder sb, int indent, InstanceInformation instInformation)
getDescription
in interface Predicate
public java.lang.String toString()
AbstractMOAObject
toString
in class AbstractMOAObject
public int getAttributeIndex()
getAttributeIndex
in interface Predicate
public boolean isEqualOrLess()
isEqualOrLess
in interface Predicate
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.