xegaGaMutationFactory | R Documentation |
xegaGaMutationFactory()
implements the selection
of one of the mutation functions in this
package by specifying a text string.
The selection fails ungracefully (produces
a runtime error) if the label does not match.
The functions are specified locally.
Current support:
"MutateGene" returns xegaGaMutateGene()
.
"IVM" returns xegaGaIVAdaptiveMutateGene()
.
xegaGaMutationFactory(method = "MutateGene")
method |
A string specifying the mutation function. |
A mutation function for genes.
Other Configuration:
lFxegaGaGene
,
xegaGaCrossoverFactory()
,
xegaGaGeneMapFactory()
,
xegaGaReplicationFactory()
parm<-function(x) {function() {return(x)}}
lFxegaGaGene$BitMutationRate1<-parm(1.0)
Mutate<-xegaGaMutationFactory("MutateGene")
gene1<-xegaGaInitGene(lFxegaGaGene)
gene1
Mutate(gene1, lFxegaGaGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.