Package moa.classifiers.rules
Class Predicates
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.rules.Predicates
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class Predicates extends AbstractMOAObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Predicates(double attribVal, double symb, double val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Instance inst)
double
getAttributeValue()
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.double
getSymbol()
double
getValue()
void
setAttributeValue(double attributeValue)
void
setSymbol(double symbol)
void
setValue(double value)
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Method Detail
-
getAttributeValue
public double getAttributeValue()
-
getSymbol
public double getSymbol()
-
getValue
public double getValue()
-
setAttributeValue
public void setAttributeValue(double attributeValue)
-
setSymbol
public void setSymbol(double symbol)
-
setValue
public void setValue(double value)
-
evaluate
public boolean evaluate(Instance inst)
-
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.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-