|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.trm.AbstractStreamCondition | +--mss.ea.trm.ScoreStreamCondition | +--mss.ea.trm.RelativeErrorStreamCondition
Termination at an relative error to the target value. The break condition is fulfilled in case that current relative error < given relative error. The relative error is calculated as : Abs( targetValue - bestScore) / targetValue ). Note that the calculation fails, if the target value is 0.0.
Field Summary | |
protected double |
doubleTarget
Target (double). |
protected float |
floatTarget
Target (float). |
protected int |
intTarget
Target (int). |
protected long |
longTarget
Target (long). |
protected float |
targetError
Relative error. |
Fields inherited from class mss.ea.trm.ScoreStreamCondition |
DOUBLE, FLOAT, INT, LONG, mode, NONE |
Fields inherited from class mss.ea.trm.AbstractStreamCondition |
comp |
Constructor Summary | |
RelativeErrorStreamCondition(double target,
float targetError)
Constructor (mode double). |
|
RelativeErrorStreamCondition(float target,
float targetError)
Constructor (mode float). |
|
RelativeErrorStreamCondition(int target,
float targetError)
Constructor (mode int). |
|
RelativeErrorStreamCondition(long target,
float targetError)
Constructor (mode long). |
Method Summary | |
boolean |
isTrue(IndividualStream is)
Test of break condition. |
Methods inherited from class mss.ea.trm.AbstractStreamCondition |
getComparator, setComparator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double doubleTarget
protected float floatTarget
protected int intTarget
protected long longTarget
protected float targetError
Constructor Detail |
public RelativeErrorStreamCondition(double target, float targetError)
target
- target value (double)targetError
- relative error to target value (double)public RelativeErrorStreamCondition(float target, float targetError)
target
- target value (float)targetError
- relative error to target value (float)public RelativeErrorStreamCondition(int target, float targetError)
target
- target value (int)targetError
- relative error to target value (int)public RelativeErrorStreamCondition(long target, float targetError)
target
- target value (long)targetError
- relative error to target value (long)Method Detail |
public boolean isTrue(IndividualStream is)
isTrue
in class AbstractStreamCondition
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |