mosmafs (version 0.1.2-1)

mutUniformParametric: Parametric Uniform Mutation

Description

Adds a variable delta to each component ind[i] with probability p, where delta is uniformly distributed between pmax(lower - ind[x], -lx/2) and pmin(upper - ind[i], lx/2).

Usage

mutUniformParametric(ind, p, lx, lower, upper)

mutUniformParametricScaled(ind, p, sdev, lower, upper)

mutUniformParametricInt(ind, ..., lower, upper)

mutUniformParametricIntScaled(ind, ..., lower, upper)

Value

[numeric | integer] mutated individual.

Arguments

ind

[numeric | integer] individual to mutate.

p

[numeric] per-entry probability to perform mutation.

lx

[numeric] uniform distribution bandwidth.

lower

[integer] lower bounds of ind values. May have same length as ind or may be a single number, if the lower bounds are the same for all values.

upper

[integer] upper bounds of ind values. May have same length as ind or may be a single number, if the upper bounds are the same for all values.

sdev

[numeric] standard deviation, will be scaled to upper - lower.

...

further arguments passed on to the method.