Learn R Programming

CEGO (version 2.4.3)

mutationStringRandomChange: Mutation for Strings

Description

Given a population of strings, this function mutates all individuals by randomly changing an element of the string.

Usage

mutationStringRandomChange(population, parameters = list())

Value

mutated population

Arguments

population

List of permutations

parameters

list of parameters, with parameters$mutationRate and parameters$lts. parameters$mutationRate should be between 0 and 1 (but can be larger than 1). The mutation rate determines the number of interchanges performed, relative to the permutation length (N). 0 means none. 1 means N interchanges. The default is 1/N. parameters$lts are the possible letters in the string.