Function revonet::ga::mutate [] [src]

pub fn mutate<T: Individual, R: Rng>(
    children: &mut Vec<T>,
    mut_type: MutationOperator,
    mut_prob: f32,
    mut_sigma: f32,
    rng: &mut R
)

Function for mutation of the given population.

Arguments:

  • children - population to undergo mutation.
  • mut_prob - probability of mutation of single gene.
  • mut_sigma - mutation parameter.
  • rng - reference to pre-initialized RNG.