org.encog.ml.ea.sort
Class SortGenomesForSpecies
- java.lang.Object
-
- org.encog.ml.ea.sort.SortGenomesForSpecies
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator<Genome>
public class SortGenomesForSpecies extends java.lang.Object implements java.util.Comparator<Genome>, java.io.Serializable
Sort the gnomes for species. Sort first by score, second by birth generation. This favors younger genomes if scores are equal.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SortGenomesForSpecies(EvolutionaryAlgorithm theTrain)Construct the comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompare(Genome g1, Genome g2)
-
-
-
Constructor Detail
-
SortGenomesForSpecies
public SortGenomesForSpecies(EvolutionaryAlgorithm theTrain)
Construct the comparator.- Parameters:
theTrain- The trainer.
-
-
DMelt 3.0 © DataMelt by jWork.ORG