Struct evco::gp::Crossover
[−]
[src]
pub struct Crossover { /* fields omitted */ }
Configures crossover (mating) between GP individuals.
Methods
impl Crossover
[src]
fn one_point() -> Crossover
Get an operator to perform one-point crossover between two individuals.
The subtree at a random position in one individual will be swapped with a random position in a second individual.
fn mate<T, R>(&self,
indv1: &mut Individual<T>,
indv2: &mut Individual<T>,
rng: R) where T: Tree, R: Rng
indv1: &mut Individual<T>,
indv2: &mut Individual<T>,
rng: R) where T: Tree, R: Rng
Crossover (mate) two individuals according to the configured crossover mode.
Trait Implementations
impl PartialEq for Crossover
[src]
fn eq(&self, __arg_0: &Crossover) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Crossover) -> bool
This method tests for !=
.
impl Clone for Crossover
[src]
fn clone(&self) -> Crossover
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more