xegaGpMutateFilterGene | R Documentation |
xegaGpMutateGeneFilter()
replaces
a randomly selected subtree by
a random derivation tree with the same root symbol
with a small probability.
Only non-terminal nodes with a depth
between lF$MinMutInsertionDepth()
and
lF$MaxMutInsertionDepth()
are considered
as tree insertion points.
Depth-bounds are respected.
xegaGpMutateFilterGene(g, lF)
g |
Derivation tree. |
lF |
Local configuration of the genetic algorithm. |
Mutation is controlled by three local parameters:
lF$MaxMutDepth()
controls the maximal depth of
the new random generation tree.
lF$MinMutInsertionDepth()
and
lF$MaxMutInsertionDepth()
control the possible
insertion points for the new random derivation tree.
The depth of the insertion node must be
between lF$MinMutInsertionDepth()
and
lF$MaxMutInsertionDepth()
.
Derivation tree.
Other Mutation:
xegaGpMutateAllGene()
gene1<-xegaGpInitGene(lFxegaGpGene)
xegaGpDecodeGene(gene1, lFxegaGpGene)
gene<-xegaGpMutateFilterGene(gene1, lFxegaGpGene)
xegaGpDecodeGene(gene, lFxegaGpGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.