mutUniformReset: Uniform Reset for Binary Parameters

mutUniformResetR Documentation

Uniform Reset for Binary Parameters

Description

For each bit individually, decide with probability p to "reset" it to an equilibrium distribution which is specified by reset.dist: a bit being reset is set to 1 with probability reset.dist and set to 0 with probability (1 - reset.dist).

Usage

mutUniformReset(ind, p = 0.1, reset.dist)

Arguments

ind

[integer] binary individual with values 0 or 1.

p

[numeric(1)] entry-wise reset probability.

reset.dist

[numeric] probability to draw 1-bit per entry, if reset is performed. reset.dist can be length 1 or same length as ind (which uses a different distribution for each bit).

Value

[integer] the mutated individual.


mosmafs documentation built on Nov. 3, 2022, 1:05 a.m.