View source: R/permutationOperators.R
mutationPermutationReversal | R Documentation |
Given a population of permutations, this function mutates all individuals by randomly selecting two indices, and reversing the respective sub-permutation.
mutationPermutationReversal(population, parameters = list())
population |
List of permutations |
parameters |
list of parameters, currently only uses parameters$mutationRate, which should be between 0 and 1 (but can be larger than 1). The mutation rate determines the number of reversals performed, relative to the permutation length (N). 0 means none. 1 means N reversals. The default is 1/N. |
mutated population
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.