Learn R Programming

ecr (version 1.0)

setupBitFlipMutator: Generator of the Bitplip mutation operator.

Description

This operator works only on binary representation and flips each bit with a given probability $p \in (0, 1)$. Usually it is recommended to set $p = \frac{1}{n}$ where $n$ is the number of bits in the representation.

Usage

setupBitFlipMutator(p = 0.1)

Arguments

p
[numeric(1)] Probability to flip a single bit. Default is 0.1.

Value

[ecr_mutator]

See Also

Other mutators: setupGaussMutator, setupInsertionMutator, setupPolynomialMutator, setupScrambleMutator, setupSwapMutator, setupUniformMutator