mutation
inline fun <V, F> CellEvolveScope<V, F>.mutation(chance: Double, mutation: (chromosome: Chromosome<V, F>) -> Unit)
Performs a mutation step for population in CellularGA that modify in-place the input chromosomes. Mutates CellEvolveScope.cell.
Welcome to use for your own implementations! It is a base function for executing mutation step in CellularGA.
Parameters
chance
chance of mutation for each chromosome
mutation
specific mutation action (How chromosomes will be mutated)