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, mutPolynomial, mutScramble, mutUniform


[Package ecr version 2.1.0 Index]