|
Evolvica Core API Version 0.6.3 Last Modified: July 20 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.ConvergentIntegerScoreComparator
Comparator for scores of type int (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 int |
best
Best value. |
| Constructor Summary | |
ConvergentIntegerScoreComparator()
|
|
| Method Summary | |
int |
compare(IScore score0,
IScore score1)
Compares two scores. |
int |
getBest()
|
void |
setBest(int 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 int best
| Constructor Detail |
public ConvergentIntegerScoreComparator()
| Method Detail |
public int compare(IScore score0,
IScore score1)
IScoreComparator
compare in interface IScoreComparatorcompare in class AbstractScoreComparatorIScoreComparator.compare(org.evolvica.core.IScore, org.evolvica.core.IScore)public int getBest()
public void setBest(int best)
best - the best value to set
|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||