mosmafs (version 0.1.2)

mutRandomChoice: Random Choice Mutator

Description

"Random Choice" mutation operator for discrete parameters: with probability p chooses one of the available categories at random (this may be the original value!)

Usage

mutRandomChoice(ind, values, p = 0.1)

Value

[character]

Arguments

ind

[character] individual to mutate.

values

[list of character] set of possible values for ind entries to take. May be a list of length 1, in which case it is recycled.

p

[numeric(1)] per-entry probability to perform mutation.

See Also

Other operators: mutDoubleGeom(), mutGaussIntScaled(), mutGaussInt(), mutGaussScaled(), mutPolynomialInt(), mutUniformInt(), recGaussian(), recIntIntermediate(), recIntSBX()