Trait rsgenetic::sim::Selector [] [src]

pub trait Selector<T: Phenotype> {
    fn selection_maximize(&self, count: u32) -> Parents<T>;
    fn selection_tournament(&self, num: u32, count: u32) -> Parents<T>;
    fn selection_stochastic(&self, count: u32) -> Parents<T>;
    fn kill_off(&mut self, count: usize);
}

A Selector can select Parents for a new iteration of a Simulation.

Required Methods

fn selection_maximize(&self, count: u32) -> Parents<T>

fn selection_tournament(&self, num: u32, count: u32) -> Parents<T>

fn selection_stochastic(&self, count: u32) -> Parents<T>

fn kill_off(&mut self, count: usize)

Implementors