mutSwap {ecr}R 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()


[Package ecr version 2.1.1 Index]