[−][src]Struct spdkit::GeneticBreeder
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]
C: VariationOperator<G>,
S: SelectionOperator,
G: Genome + Mutate,
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]
G: Genome + Mutate,
C: VariationOperator<G>,
S: SelectionOperator,
fn breed<R: Rng + Sized>(
&mut self,
m: usize,
population: &Population<G>,
rng: &mut R
) -> Vec<G>
[src]
&mut self,
m: usize,
population: &Population<G>,
rng: &mut R
) -> Vec<G>
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]
C: VariationOperator<G>,
S: SelectionOperator,
G: Genome + Mutate,
fn clone(&self) -> GeneticBreeder<C, S, G>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<C, S, G> RefUnwindSafe for GeneticBreeder<C, S, G> where
C: RefUnwindSafe,
G: RefUnwindSafe,
S: RefUnwindSafe,
C: RefUnwindSafe,
G: RefUnwindSafe,
S: RefUnwindSafe,
impl<C, S, G> Send for GeneticBreeder<C, S, G> where
C: Send,
S: Send,
C: Send,
S: Send,
impl<C, S, G> Sync for GeneticBreeder<C, S, G> where
C: Sync,
G: Sync,
S: Sync,
C: Sync,
G: Sync,
S: Sync,
impl<C, S, G> Unpin for GeneticBreeder<C, S, G> where
C: Unpin,
G: Unpin,
S: Unpin,
C: Unpin,
G: Unpin,
S: Unpin,
impl<C, S, G> UnwindSafe for GeneticBreeder<C, S, G> where
C: UnwindSafe,
G: UnwindSafe,
S: UnwindSafe,
C: UnwindSafe,
G: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,