mutationUniform

fun mutationUniform(value: DoubleArray, low: Double, up: Double, chance: Double, random: Random)
fun mutationUniform(value: IntArray, low: Int, up: Int, chance: Double, random: Random)
fun mutationUniform(value: LongArray, low: Long, up: Long, chance: Double, random: Random)

Executes a uniform mutation for the attributes of the input chromosome.

Parameters

value

chromosome to be mutated

low

A value that is the lower bound of the uniform distribution (inclusive).

up

A value that is the upper bound of the uniform distribution (inclusive).

chance

the probability of each attribute to be mutated.