View source: R/xegaOperatorPipelinesInGene.R
| newMutPipelineG | R Documentation |
The embedded pipeline is evaluate(accept(mutate, gene)).
newMutPipelineG(g)
g |
A gene. |
A gene with embedded genetic operator pipeline
with mutation only.
The argument lF of the function $Pipeline
configures the behavior of the pipeline.
Other Genetic Operator Pipelines in Gene:
newCross2Mut1PipelineG(),
newCross2Mut2PipelineG(),
newCross2PipelineG(),
newCrossMut2PipelineG(),
newCrossMutPipelineG(),
newCrossPipelineG(),
newPipelineG()
lFxegaGaGene$MutationRate<-function(fit, lF) {0.5}
lFxegaGaGene$BitMutationRate1<-function(fit, lF) {0.5}
lFxegaGaGene$CrossRate<-function(fit, lF) {0.5}
lFxegaGaGene$Accept<-function(OperatorPipeline, gene, lF) {OperatorPipeline(gene, lF)}
g<-xegaGaInitGene(lFxegaGaGene)
print((lFxegaGaGene$EvalGene(g, lFxegaGaGene))$gene1)
a<-newMutPipelineG(g)
print(a)
b<-a$Pipeline(a, lFxegaGaGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.