org.encog.ml.ea.opp.selection
Interface SelectionOperator

All Known Implementing Classes:
TournamentSelection, TruncationSelection

public interface SelectionOperator

Provides the interface to a selection operator. This allows genomes to be selected for offspring production or elimination.


Method Summary
 EvolutionaryAlgorithm getTrainer()
           
 int performAntiSelection(Random rnd, Species species)
          Selects an unfit genome.
 int performSelection(Random rnd, Species species)
          Selects an fit genome.
 

Method Detail

performSelection

int performSelection(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(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.


Copyright © 2014. All Rights Reserved.