xegaGeDecodeGene | R Documentation |
xegaGeDecodeGene()
decodes a binary gene with
a context-free grammar.
xegaGeDecodeGene(gene, lF)
gene |
Binary gene. |
lF |
Local configuration of the genetic algorithm. |
The codons (k-bit sequences) of the binary gene determine the choices of non-terminal symbols of a depth-first left-to-right tree traversal. Decoding works in 3 steps:
From the binary gene and a grammar a potentially incomplete derivation tree is built.
The leaves of the derivation tree are extracted.
By reusing the random integer vector and by using a non-recursive grammar, all non-terminals are randomly completed.
It is guaranteed that a complete and syntactically correct program is returned.
Decoded gene.
Other Decoder:
xegaGeDecodeGeneDT()
,
xegaGeGeneMapMod()
,
xegaGeGeneMapmLCM()
lFxegaGeGene$GeneMap<-xegaGeGeneMapFactory("Mod")
gene<-xegaGeInitGene(lFxegaGeGene)
xegaGeDecodeGene(gene, lFxegaGeGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.