Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.ml.ea.sort
Class SortGenomesForSpecies

    java.lang.Object
      org.encog.ml.ea.sort.SortGenomesForSpecies

All Implemented Interfaces:
  Comparator<Genome>

    public class SortGenomesForSpecies

extends Object
implements Comparator<Genome>

Sort the gnomes for species. Sort first by score, second by birth generation. This favors younger genomes if scores are equal.

Constructor Summary
`SortGenomesForSpecies(EvolutionaryAlgorithm theTrain)` Construct the comparator.

Method Summary
`int` | `compare(Genome g1, Genome g2)`

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

### SortGenomesForSpecies

    public SortGenomesForSpecies(EvolutionaryAlgorithm theTrain)

  Construct the comparator.

  Parameters:
    `theTrain` - The trainer.

Method Detail

### compare

    public int compare(Genome g1,
                       Genome g2)

  Specified by:
    `compare` in interface `Comparator<Genome>`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All Rights Reserved.