xegaGeDecodeGene {xegaGeGene} | R Documentation |
Decode a gene for a context free grammar.
Description
xegaGeDecodeGene()
decodes a binary gene with
a context-free grammar.
Usage
xegaGeDecodeGene(gene, lF)
Arguments
gene |
Binary gene. |
lF |
Local configuration of the genetic algorithm. |
Details
The codons (k-bit sequences) of the binary gene are determining the choices of non-terminal symbols of a depth-first left-to-right tree traversal. Decoding works in 2 steps:
From the binary gene and a grammar a potentially incomplete derivation tree is built.
The leaves of the derivation tree are extracted.
It is not guaranteed that a complete derivation trees is returned.
Value
Decoded gene.
See Also
Other Decoder:
xegaGeGeneMapMod()
,
xegaGeGeneMapmLCM()
Examples
lFxegaGeGene$GeneMap<-xegaGeGeneMapFactory("Mod")
gene<-xegaGeInitGene(lFxegaGeGene)
xegaGeDecodeGene(gene, lFxegaGeGene)
[Package xegaGeGene version 1.0.0.0 Index]