pub struct ExtensionMassDegeneration {
pub cardinality_threshold: usize,
pub number_of_mutations: usize,
}Expand description
Simulates a cambrian explosion. The controlling metric is fitness score cardinality in the population. When this cardinality drops to the threshold, the full population is mutated the provided number of times, where the Genotype determines whether this is random, relative or scaled. Duplicate mutations of the same gene are allowed. There is no change in population size.
Fields§
§cardinality_threshold: usize§number_of_mutations: usizeImplementations§
Trait Implementations§
source§impl Clone for MassDegeneration
impl Clone for MassDegeneration
source§fn clone(&self) -> MassDegeneration
fn clone(&self) -> MassDegeneration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MassDegeneration
impl Debug for MassDegeneration
source§impl Extension for MassDegeneration
impl Extension for MassDegeneration
fn call<G: Genotype, R: Rng, SR: EvolveReporter<Genotype = G>>( &mut self, genotype: &G, state: &mut EvolveState<G>, config: &EvolveConfig, reporter: &mut SR, rng: &mut R, )
source§impl From<MassDegeneration> for Wrapper
impl From<MassDegeneration> for Wrapper
source§fn from(extension: ExtensionMassDegeneration) -> Self
fn from(extension: ExtensionMassDegeneration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MassDegeneration
impl RefUnwindSafe for MassDegeneration
impl Send for MassDegeneration
impl Sync for MassDegeneration
impl Unpin for MassDegeneration
impl UnwindSafe for MassDegeneration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more