[−][src]Trait oxigen::selection_rate::SelectionRate
This trait defines the selection rate function used to modify the selection rate.
Required methods
fn rate(
&self,
generation: u64,
progress: f64,
n_solutions: usize,
population_fitness: &[f64]
) -> usize
&self,
generation: u64,
progress: f64,
n_solutions: usize,
population_fitness: &[f64]
) -> usize
Returns the selection rate according to the generation, the progress in the last generations, the fitnesses of the population and the number of solutions found.