EvolvingObjects
eoStochasticUniversalSelect< EOT > Class Template Reference

eoStochasticUniversalSelect: select an individual proportional to her stored fitness value, but in contrast with eoStochasticUniversalSelect, get rid of most finite sampling effects by doing all selections in one go, using a single random number. More...

#include <eoStochasticUniversalSelect.h>

Inheritance diagram for eoStochasticUniversalSelect< EOT >:
eoSelectOne< EOT > eoUF< const eoPop< EOT > &, const EOT & > eoFunctorBase unary_function

List of all members.

Public Member Functions

 eoStochasticUniversalSelect (const eoPop< EOT > &pop=eoPop< EOT >())
 Sanity check.
void setup (const eoPop< EOT > &_pop)
 virtual function to setup some population stats (for instance eoProportional can benefit greatly from this)
const EOT & operator() (const eoPop< EOT > &_pop)
 do the selection,

Private Types

typedef std::vector< unsigned > IndexVec

Private Attributes

IndexVec indices

Detailed Description

template<class EOT>
class eoStochasticUniversalSelect< EOT >

eoStochasticUniversalSelect: select an individual proportional to her stored fitness value, but in contrast with eoStochasticUniversalSelect, get rid of most finite sampling effects by doing all selections in one go, using a single random number.

Definition at line 43 of file eoStochasticUniversalSelect.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends