mutRandomChoice: Random Choice Mutator

mutRandomChoiceR Documentation

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)

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.

Value

[character]

See Also

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


mosmafs documentation built on Nov. 3, 2022, 1:05 a.m.