|
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.eval.AbstractIndividualComparator
org.evolvica.core.eval.AbstractScoreComparator
org.evolvica.core.eval.ConvergentFloatScoreComparator
Comparator for scores of type float (convergence mode). This comparator assumes that the score should "converge" to a certain best value. This means the closer the score to this best value the better is the score.
Field Summary | |
protected float |
best
Best value. |
Constructor Summary | |
ConvergentFloatScoreComparator()
|
Method Summary | |
int |
compare(IScore score0,
IScore score1)
Compares two scores. |
float |
getBest()
|
void |
setBest(float best)
Sets the best value. |
Methods inherited from class org.evolvica.core.eval.AbstractScoreComparator |
compare |
Methods inherited from class org.evolvica.core.eval.AbstractIndividualComparator |
compare |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
compare, equals |
Field Detail |
protected float best
Constructor Detail |
public ConvergentFloatScoreComparator()
Method Detail |
public int compare(IScore score0, IScore score1)
IScoreComparator
compare
in interface IScoreComparator
compare
in class AbstractScoreComparator
IScoreComparator.compare(org.evolvica.core.IScore, org.evolvica.core.IScore)
public float getBest()
public void setBest(float best)
best
- The best value to set
|
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 |