org.encog.ml.ea.sort
public abstract class AbstractGenomeComparator extends Object implements GenomeComparator, Serializable
| Constructor and Description |
|---|
AbstractGenomeComparator() |
| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisBetterThan, shouldMinimizecompare, equalspublic double applyBonus(double value,
double bonus)
applyBonus in interface GenomeComparatorvalue - The current value.bonus - The bonus.public double applyPenalty(double value,
double bonus)
applyPenalty in interface GenomeComparatorvalue - The current value.bonus - The penalty.public boolean isBetterThan(double d1,
double d2)
isBetterThan in interface GenomeComparatord1 - The first score to compare.d2 - The second score to compare.Copyright © 2014. All Rights Reserved.