mut Shuffle Indexes
suspend fun <T, F> PanmicticEvolveScope<Array<T>, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<BooleanArray, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<ByteArray, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<CharArray, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<DoubleArray, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<FloatArray, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<IntArray, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<LongArray, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <T, F> PanmicticEvolveScope<MutableList<T>, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
suspend fun <F> PanmicticEvolveScope<ShortArray, F>.mutShuffleIndexes(chance: Double, shuffleIndexesChance: Double, parallelismLimit: Int = parallelismConfig.workersCount)
Executes a shuffle the attributes of the input chromosome. Usually this mutation is applied on vector of indices.
Example:
Before mutation: 0, 1, 2, 3, 4
After mutation: 1, 4, 0, 3, 2 // genes change only position
Content copied to clipboard
Parameters
chance
chance of mutation between a pair of chromosomes
shuffle Indexes Chance
the probability of each attribute to be moved.
parallelism Limit
limit of parallel workers