mutFlipBit

@JvmName(name = "mutFlipBitBooleanArray")
fun <F> CellEvolveScope<BooleanArray, F>.mutFlipBit(chance: Double, flipBitChance: Double)
@JvmName(name = "mutFlipBitIntArray")
fun <F> CellEvolveScope<IntArray, F>.mutFlipBit(chance: Double, flipBitChance: Double)

Flip the value of the attributes of the input chromosome. The chromosome is expected to be a BooleanArray. This mutation is usually applied on boolean individuals.

Example:

Before mutation: 1010011
After mutation: 1001101

Parameters

chance

chance of mutation between a pair of chromosomes

flipBitChance

the probability of each attribute to be flipped.