xegaGpMutateAllGene | R Documentation |
xegaGpMutateAllGene()
replaces a randomly selected subtree by
a random derivation tree with the same root symbol
with a small probability.
All non-terminal nodes are considered as insertion points.
Depth-bounds are respected.
xegaGpMutateAllGene(g, lF)
g |
Derivation tree. |
lF |
Local configuration of the genetic algorithm. |
Mutation is controlled by one local parameter:
lF$MaxMutDepth()
controls the maximal depth of
the new random generation tree.
This version of the genetic operator skips the filter loop.
Derivation tree.
Other Mutation:
xegaGpMutateFilterGene()
gene1<-xegaGpInitGene(lFxegaGpGene)
xegaGpDecodeGene(gene1, lFxegaGpGene)
gene<-xegaGpMutateAllGene(gene1, lFxegaGpGene)
xegaGpDecodeGene(gene, lFxegaGpGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.