|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Operator>
net.sf.myra.datamining.data.Operator
public enum Operator
This enum represents an operator in a rule's antecedent term.
Enum Constant Summary | |
---|---|
EQUAL_TO
|
|
GREATER_THAN
|
|
GREATER_THAN_EQUAL_TO
|
|
IN_RANGE
|
|
LESS_THAN
|
|
LESS_THAN_EQUAL_TO
|
|
NOT_EQUAL_TO
|
Method Summary | |
---|---|
abstract boolean |
evaluate(double attribute,
double... values)
Verifies if the condition represented by this operatos is satisfied by the specified values. |
protected double |
precision(double value)
Returns the double value with up to two decimal digits. |
abstract java.lang.String |
toString(java.lang.String attribute,
double[] values,
java.lang.String[] description)
Returns the string representation of this operator condition. |
static Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Operator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Operator EQUAL_TO
public static final Operator NOT_EQUAL_TO
public static final Operator LESS_THAN
public static final Operator LESS_THAN_EQUAL_TO
public static final Operator GREATER_THAN
public static final Operator GREATER_THAN_EQUAL_TO
public static final Operator IN_RANGE
Method Detail |
---|
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic abstract boolean evaluate(double attribute, double... values)
attribute
- the attribute value.values
- the condition values.
true
is the attribute value satisfies the operator
condition; false
otherwise.public abstract java.lang.String toString(java.lang.String attribute, double[] values, java.lang.String[] description)
attribute
- the attribute name.values
- the condition values.
protected final double precision(double value)
value
- the value to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |