org.encog.ml.ea.opp.selection
Interface SelectionOperator
-
- All Known Implementing Classes:
- TournamentSelection, TruncationSelection
public interface SelectionOperatorProvides the interface to a selection operator. This allows genomes to be selected for offspring production or elimination.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description EvolutionaryAlgorithmgetTrainer()intperformAntiSelection(java.util.Random rnd, Species species)Selects an unfit genome.intperformSelection(java.util.Random rnd, Species species)Selects an fit genome.
-
-
-
Method Detail
-
performSelection
int performSelection(java.util.Random rnd, Species species)Selects an fit genome.- Parameters:
rnd- A random number generator.species- The species to select the genome from.- Returns:
- The selected genome.
-
performAntiSelection
int performAntiSelection(java.util.Random rnd, Species species)Selects an unfit genome.- Parameters:
rnd- A random number generator.species- The species to select the genome from.- Returns:
- The selected genome.
-
getTrainer
EvolutionaryAlgorithm getTrainer()
- Returns:
- The trainer being used.
-
-
DMelt 3.0 © DataMelt by jWork.ORG