mut Flip Bit
suspend fun <F> PanmicticEvolveScope<BooleanArray, F>.mutFlipBit(chance: Double, flipBitChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<IntArray, F>.mutFlipBit(chance: Double, flipBitChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
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
Content copied to clipboard
Parameters
chance
chance of mutation between a pair of chromosomes
flip Bit Chance
the probability of each attribute to be flipped.
parallelism Limit
limit of parallel workers