[][src]Trait oxigen::selection_rate::SelectionRate

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

This trait defines the selection rate function used to modify the selection rate.

Required methods

pub fn rate(
    &self,
    generation: u64,
    progress: f64,
    n_solutions: usize,
    population_fitness: &[f64]
) -> usize
[src]

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.

Loading content...

Implementors

impl SelectionRate for SelectionRates[src]

Loading content...