xegaGaMutateGene {xegaGaGene} | R Documentation |
Mutate a gene.
Description
xegaGaMutateGene
mutates a binary gene.
The per-bit mutation rate is given by MutationRate().
Usage
xegaGaMutateGene(gene, lF)
Arguments
gene |
A binary gene. |
lF |
The local configuration of the genetic algorithm |
Value
A binary gene.
See Also
Other Mutation:
xegaGaIVAdaptiveMutateGene()
Examples
parm<-function(x) {function() {return(x)}}
lFxegaGaGene$BitMutationRate1<-parm(1.0)
gene1<-xegaGaInitGene(lFxegaGaGene)
xegaGaDecodeGene(gene1, lFxegaGaGene)
lFxegaGaGene$BitMutationRate1()
gene<-xegaGaMutateGene(gene1, lFxegaGaGene)
xegaGaDecodeGene(gene, lFxegaGaGene)
[Package xegaGaGene version 1.0.0.1 Index]