[][src]Trait optlib::genetic::Creator

pub trait Creator<T: Clone> {
    fn create(&mut self) -> Vec<T>;
}

The trait to create initial individuals for population.

T - type of a point in the search space for goal function (chromosomes).

Required methods

fn create(&mut self) -> Vec<T>

Must return vector of the new individuals for population

Loading content...

Implementors

impl<G: Clone + NumCast + PartialOrd> Creator<Vec<G>> for RandomCreator<G>[src]

Loading content...