See ecr::mutGauss. Allows a vector of standard deviations. Scales standard deviations to the range of [lower, upper].

mutGaussScaled(ind, p = 1, sdev = 0.05, lower, upper)

Arguments

ind

[numeric]
Numeric vector / individual to mutate.

p

[numeric(1)]
Probability of mutation for the gauss mutation operator.

sdev

[numeric] standard deviation(s) of the Gauss mutation.

lower

[numeric]
Vector of minimal values for each parameter of the decision space.

upper

[numeric]
Vector of maximal values for each parameter of the decision space.

Value

[numeric] mutated individual.

See also