[][src]Trait optlib::genetic::Cross

pub trait Cross<T: Clone> {
    fn cross(&mut self, parents: &[&T]) -> Vec<T>;

The trait with cross algorithm.

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

Required methods

fn cross(&mut self, parents: &[&T]) -> Vec<T>

The method accepts slice of references to parent chromosomes (parents), must return vector of chromosomes of children. The children will be added to population after mutation.

Loading content...


impl Cross<f32> for CrossBitwise[src]

impl Cross<f64> for CrossBitwise[src]

impl<G: Clone> Cross<Vec<G>> for VecCrossAllGenes<G>[src]

impl<G: Float> Cross<G> for FloatCrossGeometricMean[src]

impl<G: NumCast + Num + Clone> Cross<G> for CrossMean[src]

impl<T: Float> Cross<T> for FloatCrossExp[src]

Loading content...