Struct genevo::recombination::discrete::UniformCrossBreeder
source · [−]pub struct UniformCrossBreeder {}
Expand description
The UniformCrossBreeder
operator combines binary encoded or value encoded
genetic::Genotype
s by walking through the bits/values of the parents one
by one and randomly selecting the bit/value of one partner that is copied to
the resulting child.
This crossover operator always creates as many child individuals as there
are individuals in the given genetic::Parents
parameter.
Implementations
Trait Implementations
sourceimpl Clone for UniformCrossBreeder
impl Clone for UniformCrossBreeder
sourcefn clone(&self) -> UniformCrossBreeder
fn clone(&self) -> UniformCrossBreeder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl CrossoverOp<FixedBitSet> for UniformCrossBreeder
impl CrossoverOp<FixedBitSet> for UniformCrossBreeder
sourcefn crossover<R>(
&self,
parents: Parents<FixedBitSet>,
rng: &mut R
) -> Children<FixedBitSet> where
R: Rng + Sized,
fn crossover<R>(
&self,
parents: Parents<FixedBitSet>,
rng: &mut R
) -> Children<FixedBitSet> where
R: Rng + Sized,
Performs the crossover of the genetic::Parents
and returns the result
as a new vector of genetic::Genotype
- the genetic::Children
. Read more
sourceimpl<A, V> CrossoverOp<SmallVec<A>> for UniformCrossBreeder where
A: Array<Item = V> + Sync,
V: Clone + Debug + PartialEq + Send + Sync,
impl<A, V> CrossoverOp<SmallVec<A>> for UniformCrossBreeder where
A: Array<Item = V> + Sync,
V: Clone + Debug + PartialEq + Send + Sync,
sourceimpl<V> CrossoverOp<Vec<V, Global>> for UniformCrossBreeder where
V: Clone + Debug + PartialEq + Send + Sync,
impl<V> CrossoverOp<Vec<V, Global>> for UniformCrossBreeder where
V: Clone + Debug + PartialEq + Send + Sync,
sourceimpl Debug for UniformCrossBreeder
impl Debug for UniformCrossBreeder
sourceimpl Default for UniformCrossBreeder
impl Default for UniformCrossBreeder
sourcefn default() -> UniformCrossBreeder
fn default() -> UniformCrossBreeder
Returns the “default value” for a type. Read more
sourceimpl GeneticOperator for UniformCrossBreeder
impl GeneticOperator for UniformCrossBreeder
impl StructuralPartialEq for UniformCrossBreeder
Auto Trait Implementations
impl RefUnwindSafe for UniformCrossBreeder
impl Send for UniformCrossBreeder
impl Sync for UniformCrossBreeder
impl Unpin for UniformCrossBreeder
impl UnwindSafe for UniformCrossBreeder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more