xegaGaMutateGene {xegaGaGene} | R Documentation |
xegaGaMutateGene
mutates a binary gene.
The per-bit mutation rate is given by MutationRate().
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)