gov.sandia.cognition.learning.algorithm.genetic.selector
Class AbstractSelector<GenomeType>

java.lang.Object
  extended by gov.sandia.cognition.learning.algorithm.genetic.selector.AbstractSelector<GenomeType>
Type Parameters:
GenomeType - Type of genome used to represent a single element in the genetic population, such as a Vector, for example
All Implemented Interfaces:
Reproducer<GenomeType>, Selector<GenomeType>, Serializable
Direct Known Subclasses:
TournamentSelector

@CodeReviews(reviews={@CodeReview(reviewer="Kevin R. Dixon",date="2008-07-23",changesNeeded=false,comments={"Moved previous code review as CodeReview annotation","Looks fine."}),@CodeReview(reviewer="Justin Basilico",date="2006-10-05",changesNeeded=false,comments="Class looks fine.")})
public abstract class AbstractSelector<GenomeType>
extends Object
implements Selector<GenomeType>

The AbstractSelector class provides some common functionality for implementations of Selectors.

Since:
1.0
Author:
Jonathan McClain
See Also:
Serialized Form

Constructor Summary
AbstractSelector()
          Creates a new instance of AbstractSelector.
 
Method Summary
 Collection<GenomeType> reproduce(Collection<EvaluatedGenome<GenomeType>> genomes)
          Applies the selection algorithm to the given collection of genomes and their associated score from the cost function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.learning.algorithm.genetic.selector.Selector
select
 

Constructor Detail

AbstractSelector

public AbstractSelector()
Creates a new instance of AbstractSelector.

Method Detail

reproduce

public Collection<GenomeType> reproduce(Collection<EvaluatedGenome<GenomeType>> genomes)
Applies the selection algorithm to the given collection of genomes and their associated score from the cost function. It returns a new population of genomes.

Specified by:
reproduce in interface Reproducer<GenomeType>
Parameters:
genomes - The current population of genomes along with their associated costs.
Returns:
A new population of genomes.