shark::UniformRankingSelection Struct Reference

Selects individuals from the range of individual and offspring individuals. More...

#include <shark/Algorithms/DirectSearch/Operators/Selection/UniformRanking.h>

Public Member Functions

template<typename RngType , typename InIterator , typename OutIterator >
void operator() (RngType &rng, InIterator individuals, InIterator individualsE, OutIterator out, OutIterator outE)
 Selects individuals from the range of individual and offspring individuals. More...
 

Detailed Description

Selects individuals from the range of individual and offspring individuals.

Definition at line 39 of file UniformRanking.h.

Member Function Documentation

◆ operator()()

template<typename RngType , typename InIterator , typename OutIterator >
void shark::UniformRankingSelection::operator() ( RngType &  rng,
InIterator  individuals,
InIterator  individualsE,
OutIterator  out,
OutIterator  outE 
)
inline

Selects individuals from the range of individual and offspring individuals.

The operator carries out the following steps:

  • Assign uniform selection probabilities to all individuals.
  • Carry out roulette wheel selection on the range of individual and offspring individuals until the output range is filled.
Parameters
[in]individualsIterator pointing to the first valid individual.
[in]individualsEIterator pointing to the first invalid individual.
[in]outIterator pointing to the first valid element of the output range.
[in]outEIterator pointing to the first invalid element of the output range.

Definition at line 53 of file UniformRanking.h.


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