Back to Top page.

EGTRouletteSel< TP > Class Template Reference

Derived class template of EGTSelection for a roulette wheel selection algorithm. More...

#include <EGTRouletteSel.h>

Inheritance diagram for EGTRouletteSel< TP >:

Inheritance graph
[legend]
Collaboration diagram for EGTRouletteSel< TP >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef TP Pop
typedef Pop::Graph Graph
typedef EGTVector< const Graph * > Graphs

Public Methods

 EGTRouletteSel ()
 Constructor.

virtual ~EGTRouletteSel ()
 Destructor.

virtual void Selection (const Pop &src, Graphs &dest, UInt uCount)
 Performs roulette wheel selection operations to the Population.

virtual void Selection (const Pop &src, Pop &dest, UInt uCount)
 Performs roulette wheel selection operations to the Population.


Detailed Description

template<class TP>
class EGTRouletteSel< TP >

Derived class template of EGTSelection for a roulette wheel selection algorithm.

It is assumed that <TP> is a subclass of EGTPopulation.


Member Typedef Documentation

template<class TP>
typedef Pop::Graph EGTRouletteSel< TP >::Graph
 

Reimplemented from EGTSelection< TP >.

template<class TP>
typedef EGTVector<const Graph*> EGTRouletteSel< TP >::Graphs
 

Reimplemented from EGTSelection< TP >.

template<class TP>
typedef TP EGTRouletteSel< TP >::Pop
 

Reimplemented from EGTSelection< TP >.


Constructor & Destructor Documentation

template<class TP>
EGTRouletteSel< TP >::EGTRouletteSel   [inline]
 

Constructor.

template<class TP>
virtual EGTRouletteSel< TP >::~EGTRouletteSel   [inline, virtual]
 

Destructor.


Member Function Documentation

template<class TP>
void EGTRouletteSel< TP >::Selection const Pop   src,
Pop   dest,
UInt    uCount
[virtual]
 

Performs roulette wheel selection operations to the Population.

Parameters:
src  [in] Population to be performed by the selection operations
dest  [out] Population where the selected Graphs are stored
uCount  [in] Number of Graphs to be selected by the selection operations

Implements EGTSelection< TP >.

template<class TP>
void EGTRouletteSel< TP >::Selection const Pop   src,
Graphs   dest,
UInt    uCount
[virtual]
 

Performs roulette wheel selection operations to the Population.

Parameters:
src  [in] Population to be performed by the selection operations
dest  [out] Array of Graphs to be selected by the selection operations
uCount  [in] Number of Graphs to be selected by the selection operations

Implements EGTSelection< TP >.


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