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