[][src]Struct spdkit::GeneticBreeder

pub struct GeneticBreeder<C, S, G> where
    C: VariationOperator<G>,
    S: SelectionOperator,
    G: Genome + Mutate
{ /* fields omitted */ }

A breeder for genetic algorithm featuring a combined use of crossover and mutation operators.

Methods

impl<C, S, G> GeneticBreeder<C, S, G> where
    C: VariationOperator<G>,
    S: SelectionOperator,
    G: Genome + Mutate
[src]

pub fn new() -> Self[src]

pub fn with_crossover(self, c: C) -> Self[src]

pub fn with_selector(self, s: S) -> Self[src]

pub fn crossover_probability(self, p: f64) -> Self[src]

pub fn mutation_probability(self, p: f64) -> Self[src]

Trait Implementations

impl<G, C, S> Breed<G> for GeneticBreeder<C, S, G> where
    G: Genome + Mutate,
    C: VariationOperator<G>,
    S: SelectionOperator
[src]

Important traits for Vec<u8>
fn breed<R: Rng + Sized>(
    &mut self,
    m: usize,
    population: &Population<G>,
    rng: &mut R
) -> Vec<G>
[src]

Breed m new genomes from parent population.

impl<C: Clone, S: Clone, G: Clone> Clone for GeneticBreeder<C, S, G> where
    C: VariationOperator<G>,
    S: SelectionOperator,
    G: Genome + Mutate
[src]

Auto Trait Implementations

impl<C, S, G> RefUnwindSafe for GeneticBreeder<C, S, G> where
    C: RefUnwindSafe,
    G: RefUnwindSafe,
    S: RefUnwindSafe

impl<C, S, G> Send for GeneticBreeder<C, S, G> where
    C: Send,
    S: Send

impl<C, S, G> Sync for GeneticBreeder<C, S, G> where
    C: Sync,
    G: Sync,
    S: Sync

impl<C, S, G> Unpin for GeneticBreeder<C, S, G> where
    C: Unpin,
    G: Unpin,
    S: Unpin

impl<C, S, G> UnwindSafe for GeneticBreeder<C, S, G> where
    C: UnwindSafe,
    G: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,