|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.classifier.df.data.conditions.Condition
public abstract class Condition
Condition on Instance
| Constructor Summary | |
|---|---|
Condition()
|
|
| Method Summary | |
|---|---|
static Condition |
equals(int attr,
double value)
Condition that checks if the given attribute has a value "equal" to the given value |
static Condition |
greaterOrEquals(int attr,
double value)
Condition that checks if the given attribute has a value "greater or equal" than the given value |
abstract boolean |
isTrueFor(Instance instance)
Returns true is the checked instance matches the condition |
static Condition |
lesser(int attr,
double value)
Condition that checks if the given attribute has a value "lesser" than the given value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Condition()
| Method Detail |
|---|
public abstract boolean isTrueFor(Instance instance)
instance - checked instance
public static Condition equals(int attr,
double value)
public static Condition lesser(int attr,
double value)
public static Condition greaterOrEquals(int attr,
double value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||