xegaGaMutateGene | R Documentation |
xegaGaMutateGene()
mutates a binary gene.
The per-bit mutation rate is given by
lF$BitMutationRate1()
.
xegaGaMutateGene(gene, lF)
gene |
A binary gene. |
lF |
The local configuration of the genetic algorithm. |
A binary gene.
Other Mutation:
xegaGaIVAdaptiveMutateGene()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.