Package io.jenetics

Class GaussianMutator<G extends NumericGene<?,​G>,​C extends Comparable<? super C>>

  • All Implemented Interfaces:
    Alterer<G,​C>

    public class GaussianMutator<G extends NumericGene<?,​G>,​C extends Comparable<? super C>>
    extends Mutator<G,​C>
    The GaussianMutator class performs the mutation of a NumericGene. This mutator picks a new value based on a Gaussian distribution around the current value of the gene. The variance of the new value (before clipping to the allowed gene range) will be

    \hat{\sigma }^2 = \left ( \frac{ g_{max} - g_{min} }{4}\right )^2

    The new value will be cropped to the gene's boundaries.
    Since:
    1.0
    Version:
    6.1