View source: R/gaintegerMutation.R
gaintegerMutation | R Documentation |
Applies mutation to a selected parent vector by replacing each gene with a random value (within bounds) with a given mutation probability. Used in integer-encoded GAs.
gaintegerMutation(object, parent, ...)
object |
A GA object containing at least the slots |
parent |
An integer index indicating which individual in the population to mutate. |
... |
Further arguments (unused, included for compatibility). |
A numeric vector representing the mutated individual.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.