36 #ifndef SHARK_ALGORITHMS_DIRECTSEARCH_OPERATORS_SELECTION_ROULETTE_WHEEL_SELECTION_H 37 #define SHARK_ALGORITHMS_DIRECTSEARCH_OPERATORS_SELECTION_ROULETTE_WHEEL_SELECTION_H 56 template<
typename Rng,
typename Iterator>
57 Iterator
operator()(Rng& rng, Iterator it, Iterator itE, RealVector
const& probabilities)
const 59 std::size_t n = probabilities.size();
62 for(std::size_t pos = 0; pos != n; ++pos,++it){
63 sum += probabilities(pos);