org.encog.ml.ea.sort
public interface GenomeComparator extends Comparator<Genome>
| Modifier and Type | Method and Description |
|---|---|
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() |
compare, equalsdouble 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()
Copyright © 2014. All Rights Reserved.