Fitness-proportional selection operator. More...
#include <shark/Algorithms/DirectSearch/Operators/Selection/RouletteWheelSelection.h>
| Public Member Functions | |
| template<typename Rng , typename Iterator > | |
| Iterator | operator() (Rng &rng, Iterator it, Iterator itE, RealVector const &probabilities) const | 
| Selects an individual from the range of individuals with prob. proportional to its fitness. | |
Fitness-proportional selection operator.
See http://en.wikipedia.org/wiki/Fitness_proportionate_selection.
Definition at line 48 of file RouletteWheelSelection.h.
| 
 | inline | 
Selects an individual from the range of individuals with prob. proportional to its fitness.
| [in] | rng | Random number generator. | 
| [in] | it | Iterator pointing to the first valid element. | 
| [in] | itE | Iterator pointing to the first invalid element. | 
| [in] | probabilities | selection probabilities of the individuals | 
Definition at line 58 of file RouletteWheelSelection.h.
References shark::random::uni().