Module selector

Source

Structs§

ProbabilityWheelIterator
An iterator that generates random indices based on probabilities. This iterator is used in the RouletteWheel selection algorithm, and Boltzmann selection algorithm. This is essentially the ‘roulette wheel’ that is spun to select individuals from the population. The probability of selecting an individual is based on the fitness (probability) of the individual. The higher the fitness, the higher the probability of the individual being selected.

Traits§

Select
A trait for selection algorithms. Selection algorithms are used to select individuals from a population to be used in the next generation. The selection process is (most of the time) based on the fitness of the individuals in the population. The selection process can be based on the fitness of the individuals in the population, or it can be based on the individuals themselves.