Selection< T > Class Template Reference

The super class for the selection operators. More...

#include <Selection.h>

Inheritance diagram for Selection< T >:

Selection_RouletteWheel< T >

List of all members.

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.


Detailed Description

template<typename T>
class Selection< T >

The super class for the selection operators.

See also:
Selection_RouletteWheel | Selection_UniversalStochastic

Constructor & Destructor Documentation

template<typename T>
Selection< T >::Selection ( Scaling scalingOperator  )  [inline]

Constructor.

Parameters:
scalingOperator The scaling operator used to scale the population's fitness values into a certain range.
See also:
Scaling


Member Function Documentation

template<typename T>
virtual vector< Chromosome<T>* > Selection< T >::select ( vector< Chromosome< T > * > &  individuals,
unsigned int  nSelect 
) [inline, virtual]

Implementation of the selection strategy.

Parameters:
individuals Set of individuals to be selected from
nSelect Number of individuals to be selected
See also:
Chromosome

Reimplemented in Selection_RouletteWheel< T >.


The documentation for this class was generated from the following file:

Generated on Thu Aug 28 18:34:53 2008 for Dolphin by  doxygen 1.5.6