GenomeType
- Type of genome used to represent a single element in the
genetic population, such as a Vector, for example@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 java.lang.Object implements Selector<GenomeType>
AbstractSelector
class provides some common functionality
for implementations of Selectors
.Constructor and Description |
---|
AbstractSelector()
Creates a new instance of AbstractSelector.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<GenomeType> |
reproduce(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Applies the selection algorithm to the given collection of genomes and
their associated score from the cost function.
|
public AbstractSelector()
public java.util.Collection<GenomeType> reproduce(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
reproduce
in interface Reproducer<GenomeType>
genomes
- The current population of genomes along with their
associated costs.