mutSwap: Swap mutator.

mutSwapR Documentation

Swap mutator.

Description

Chooses two positions at random and swaps the genes.

Usage

mutSwap(ind)

Arguments

ind

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

Value

[integer]

See Also

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


ecr documentation built on March 31, 2023, 10:07 p.m.