org.encog.ml.ea.sort
Class SpeciesComparator
- java.lang.Object
-
- org.encog.ml.ea.sort.SpeciesComparator
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator<Species>
public class SpeciesComparator extends java.lang.Object implements java.util.Comparator<Species>, java.io.Serializable
This comparator is used to compare two species. This is done by comparing the scores of the two leaders.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SpeciesComparator(EvolutionaryAlgorithm theTraining)Create a species comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompare(Species sp1, Species sp2)
-
-
-
Constructor Detail
-
SpeciesComparator
public SpeciesComparator(EvolutionaryAlgorithm theTraining)
Create a species comparator.- Parameters:
theTraining- The trainer.
-
-
DMelt 3.0 © DataMelt by jWork.ORG