#include <Selection.h>
Public Member Functions | |
Selection (Scaling *scalingOperator) | |
Constructor. | |
vector< Chromosome< T > * > | operator() (vector< Chromosome< T > * > &individuals, unsigned int nSelect) |
Wrapper operator for the select function. | |
virtual vector< Chromosome< T > * > | select (vector< Chromosome< T > * > &individuals, unsigned int nSelect) |
Implementation of the selection strategy. |
Constructor.
scalingOperator | The scaling operator used to scale the population's fitness values into a certain range. |
virtual vector< Chromosome<T>* > Selection< T >::select | ( | vector< Chromosome< T > * > & | individuals, | |
unsigned int | nSelect | |||
) | [inline, virtual] |
Implementation of the selection strategy.
individuals | Set of individuals to be selected from | |
nSelect | Number of individuals to be selected |
Reimplemented in Selection_RouletteWheel< T >.