|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PMMLOperator>
org.knime.base.node.mine.decisiontree2.PMMLOperator
public enum PMMLOperator
Contains the operators that are specified in PMML for SimplePredicates.
| Enum Constant Summary | |
|---|---|
EQUAL
= operator. |
|
GREATER_OR_EQUAL
>= operator. |
|
GREATER_THAN
> operator. |
|
IS_MISSING
is missing operator. |
|
IS_NOT_MISSING
is not missing operator. |
|
LESS_OR_EQUAL
<= operator. |
|
LESS_THAN
< operator. |
|
NOT_EQUAL
!= operator. |
|
| Method Summary | |
|---|---|
boolean |
evaluate(Double a,
Double b)
Evaluates the operator on the passed double values. |
boolean |
evaluate(String a,
String b)
Evaluates the operator on the passed strings. |
static PMMLOperator |
get(String represent)
Returns the corresponding operator for the passed representation. |
String |
getSymbol()
Returns the symbol for the operator. |
String |
toString()
|
static PMMLOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PMMLOperator[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PMMLOperator EQUAL
public static final PMMLOperator NOT_EQUAL
public static final PMMLOperator LESS_THAN
public static final PMMLOperator LESS_OR_EQUAL
public static final PMMLOperator GREATER_THAN
public static final PMMLOperator GREATER_OR_EQUAL
public static final PMMLOperator IS_MISSING
public static final PMMLOperator IS_NOT_MISSING
| Method Detail |
|---|
public static PMMLOperator[] values()
for (PMMLOperator c : PMMLOperator.values()) System.out.println(c);
public static PMMLOperator valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<PMMLOperator>
public static PMMLOperator get(String represent)
throws InstantiationException
represent - the representation to find the operator for
InstantiationException - - if no such PMML operator existspublic String getSymbol()
public boolean evaluate(String a,
String b)
a - the first stringb - the second string (only applicable for binary operations,
otherwise ignored)
public boolean evaluate(Double a,
Double b)
a - the first double valueb - the second double value (only applicable for binary operations,
otherwise ignored)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||