[][src]Trait oxigen::selection::Selection

pub trait Selection: Send + Sync {
    fn select(&self, fitnesses: &[f64], selection_rate: usize) -> Vec<usize>;
}

This trait defines the select function used to select individuals for crossover.

Required methods

fn select(&self, fitnesses: &[f64], selection_rate: usize) -> Vec<usize>

Returns a vector with the indices of the selected individuals according to the fitness of the population and the selection rate.

Loading content...

Implementors

impl Selection for SelectionFunctions[src]

Loading content...