mutGaussian

suspend fun <F> PanmicticEvolveScope<DoubleArray, F>.mutGaussian(mean: Double, stddev: Double, chance: Double, gaussianChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)

Applies a gaussian mutation of mean mean and standard deviation stddev on the input chromosome. This mutation expects Chromosome.value of floating point numbers.

Parameters

mean

average. Is the mathematical expectation (mean value) of the normal distribution from which the random value will be returned. It defines the center of the distribution.

stddev

standard deviation. It is a measure of the spread or variability of values around the mean. The larger the value of the standard deviation, the wider the distribution, and therefore the values will be more spread out around the mean.

chance

chance of mutation between a pair of chromosomes

gaussianChance

the probability of each attribute to be mutated