|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.core.terminate.ScoreComparingCondition
org.evolvica.core.terminate.RelativeErrorCondition
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 |
target
Target value. |
protected double |
targetError
Target error. |
Fields inherited from class org.evolvica.core.terminate.ScoreComparingCondition |
comparator |
Constructor Summary | |
RelativeErrorCondition()
Constructor. |
|
RelativeErrorCondition(double target,
double targetError,
IScoreComparator comparator)
Constructor. |
Method Summary | |
double |
getTarget()
Returns the target value. |
double |
getTargetError()
Returns the target error. |
boolean |
isTrue(IIndividualSet iset)
Checks if this condition is true for the given individual set. |
void |
setTarget(double d)
Sets the target value. |
void |
setTargetError(double d)
Stes the target error. |
Methods inherited from class org.evolvica.core.terminate.ScoreComparingCondition |
getComparator, setComparator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double target
protected double targetError
Constructor Detail |
public RelativeErrorCondition()
public RelativeErrorCondition(double target, double targetError, IScoreComparator comparator)
target
- target valuetargetError
- target errorcomparator
- score comparatorMethod Detail |
public boolean isTrue(IIndividualSet iset)
ICondition
iset
- individual set to check for the truth of the condition
ICondition.isTrue(org.evolvica.core.IIndividualSet)
public double getTarget()
public double getTargetError()
public void setTarget(double d)
d
- target valuepublic void setTargetError(double d)
d
- target error
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |