Trait neat::RandomlyMutable

source ·
pub trait RandomlyMutable {
    // Required method
    fn mutate(&mut self, rate: f32, rng: &mut impl Rng);
}
Expand description

Used in all of the builtin next_gens to randomly mutate entities a given amount

Required Methods§

source

fn mutate(&mut self, rate: f32, rng: &mut impl Rng)

Mutate the entity with a given mutation rate (0..1)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<const I: usize, const O: usize> RandomlyMutable for NeuralNetworkTopology<I, O>