|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgap.ChromosomeFitnessComparator
Enables sorting of chromosomes by their fitness.
Constructor Summary | |
ChromosomeFitnessComparator()
|
|
ChromosomeFitnessComparator(boolean ascending,
boolean speciated)
Enables sorting of chromosomes in order of fitness. |
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
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 ChromosomeFitnessComparator()
ChromosomeFitnessComparator(boolean, boolean)
public ChromosomeFitnessComparator(boolean ascending, boolean speciated)
ascending
is true, descending otherwise. Uses fitness adjusted for species
fitness sharing if speciated
is true, raw fitness otherwise.
ascending
- speciated
- Method Detail |
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
Comparator.compare(java.lang.Object, java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |