|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.eval.AbstractFitnessComparator | +--mss.ea.eval.DefaultFitnessComparator
Default implementation of a fitness comparator. This comparator compares two fitness objects. In an array with individuals sorted in natural order, the best individuals would come first for this comparator. The compare-method simply calls the compare-method of the first fitness object and returns the result of the comparison versus the other fitness object.
Constructor Summary | |
DefaultFitnessComparator()
|
Method Summary | |
int |
compare(Fitness fa,
Fitness fb)
Compares two fitness values. |
Methods inherited from class mss.ea.eval.AbstractFitnessComparator |
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 |
equals |
Constructor Detail |
public DefaultFitnessComparator()
Method Detail |
public int compare(Fitness fa, Fitness fb)
compare
in class AbstractFitnessComparator
fa
- first fitness valuefb
- second fitness value
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |