|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.example.WrongPredictionCondition
public class WrongPredictionCondition
This subclass of Condition serves to accept all examples which are
wrongly predicted.
| Constructor Summary | |
|---|---|
WrongPredictionCondition()
Creates a new condition. |
|
WrongPredictionCondition(ExampleSet exampleSet,
java.lang.String parameterString)
Throws an exception since this condition does not support parameter string. |
|
| Method Summary | |
|---|---|
boolean |
conditionOk(Example example)
Returns true if the example wrongly classified. |
Condition |
duplicate()
Since the condition cannot be altered after creation we can just return the condition object itself. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrongPredictionCondition()
public WrongPredictionCondition(ExampleSet exampleSet,
java.lang.String parameterString)
| Method Detail |
|---|
public Condition duplicate()
duplicate in interface Conditionpublic boolean conditionOk(Example example)
conditionOk in interface Condition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||