|
EvolvingObjects
|
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>
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 |
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.