Learn R Programming

ecr (version 2.1.1)

mutSwap: Swap mutator.

Description

Chooses two positions at random and swaps the genes.

Usage

mutSwap(ind)

Value

[integer]

Arguments

ind

[integer]
Permutation of integers, i.e., vector of integer values.

See Also

Other mutators: mutBitflip(), mutGauss(), mutInsertion(), mutInversion(), mutJump(), mutPolynomial(), mutScramble(), mutUniform()