mutRandomChoice: Random Choice Mutator

mutRandomChoiceR Documentation

Random Choice Mutator

Description

"Random Choice" mutation operator for discrete parameters: with probability p chooses one of the available categories at random (this may be the original value!)

Usage

mutRandomChoice(ind, values, p = 0.1)

Arguments

ind

⁠[character]⁠ individual to mutate.

values

⁠[list of character]⁠ set of possible values for ind entries to take. May be a list of length 1, in which case it is recycled.

p

⁠[numeric(1)]⁠ per-entry probability to perform mutation.

Value

⁠[character]⁠


ideas-lab-nus/epluspar documentation built on March 23, 2024, 11:51 p.m.