| gaussmut3 | R Documentation |
GM is an operator made by adding randomly selected values from a normal distribution with mean and standard deviation of MU and SIGMA, respectively, to a randomly selected gene in the chromosome.
This operator is used for value encoded (integer or real number) chromosomes.
gaussmut3(y, mutmy, mutsdy, ...)
y |
A vector. Chromosome of the offspring |
mutmy |
A vector. Vector of means of genes |
mutsdy |
A vector. Vector of standard deviations of genes |
... |
Further arguments passed to or from other methods. |
mutant |
A vector. Chromosome of the offspring |
mutgen |
The number of the mutated gene. |
Zeynel Cebeci & Erkut Tekeli
mutate,
bitmut,
randmut,
randmut2,
randmut3,
randmut4,
unimut,
boundmut,
nunimut,
nunimut2,
powmut,
powmut2,
gaussmut,
gaussmut2,
bsearchmut1,
bsearchmut2,
swapmut,
invmut,
shufmut,
insmut,
dismut,
invswapmut,
insswapmut,
invdismut
mutmy = c(5, 5, 2, 4, 3, 4) mutsdy = c(1, 1.5, 1.01, 0.4, 1.5, 1.2) offspring = c(8, 6, 4, 1, 3, 7) set.seed(12) gaussmut(offspring, mutmy=mutmy, mutsdy=mutsdy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.