|
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.PhiCondition
Termination dependent on Phi. The condition is fulfilled, if phi falls below a particular threshold. Phi is defined as Abs( 1 - Abs( best score / average score ) ). .
Field Summary | |
protected double |
threshold
Threshold. |
Fields inherited from class org.evolvica.core.terminate.ScoreComparingCondition |
comparator |
Constructor Summary | |
PhiCondition()
Constructor. |
|
PhiCondition(double threshold,
IScoreComparator comparator)
Constructor. |
Method Summary | |
double |
getThreshold()
Returns the threshold. |
boolean |
isTrue(IIndividualSet iset)
Checks if this condition is true for the given individual set. |
void |
setThreshold(double d)
Sets the threshold. |
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 threshold
Constructor Detail |
public PhiCondition()
public PhiCondition(double threshold, IScoreComparator comparator)
threshold
- thresholdcomparator
- 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 getThreshold()
public void setThreshold(double d)
d
- threshold
|
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 |