Trait oxigen::mutation_rate::MutationRate[][src]

pub trait MutationRate: Send + Sync {
    fn rate(
        &self,
        generation: u64,
        progress: f64,
        n_solutions: usize,
        population_fitness: &[f64]
    ) -> f64; }

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]

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.

Loading content...

Implementors

impl MutationRate for MutationRates[src]

Loading content...