|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GenomeComparator
Defines methods for comparing genomes. Also provides methods to apply bonuses and penalties.
| Method Summary | |
|---|---|
double |
applyBonus(double value,
double bonus)
Apply a bonus, this is a simple percent that is applied in the direction specified by the "should minimize" property of the score function. |
double |
applyPenalty(double value,
double bonus)
Apply a penalty, this is a simple percent that is applied in the direction specified by the "should minimize" property of the score function. |
boolean |
isBetterThan(double d1,
double d2)
Determine if one score is better than the other. |
boolean |
isBetterThan(Genome genome1,
Genome genome2)
Determine if one genome is better than the other genome. |
boolean |
shouldMinimize()
|
| Methods inherited from interface java.util.Comparator |
|---|
compare, equals |
| Method Detail |
|---|
double applyBonus(double value,
double bonus)
value - The current value.bonus - The bonus.
double applyPenalty(double value,
double bonus)
value - The current value.bonus - The penalty.
boolean isBetterThan(double d1,
double d2)
d1 - The first score to compare.d2 - The second score to compare.
boolean isBetterThan(Genome genome1,
Genome genome2)
genome1 - The first genome.genome2 - The second genome.
boolean shouldMinimize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||