|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.neat.WeightMagnitudeComparator
sorts ConnectionGenes in ascending order of weight magnitude
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
static WeightMagnitudeComparator |
getInstance()
|
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 |
Method Detail |
public static WeightMagnitudeComparator getInstance()
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
o1
- o2
-
ConnectionAllele
objects; return
1 if o1
>o2
, 0 if o1
==o2
; -1
otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |