xegaGeGeneMapMod {xegaGeGene} | R Documentation |
Map the bit strings of a binary gene to parameters in the interval
1:2^k
.
Description
xegaGeGeneMapMod()
maps the bit strings of a binary string
to integers in the interval 1
to
lF$CodonPrecision()
.
Bit vectors are mapped into equispaced numbers in the interval.
Usage
xegaGeGeneMapMod(gene, lF)
Arguments
gene |
Binary gene (the genotype). |
lF |
Local configuration. |
Details
The modulo rule of grammatical evolution produces (slightly)
biased choices of rules with this mapping. The bias goes to
zero as lF$CodonPrecision()
>>
number of rules
to choose from.
Value
Integer vector.
References
Keijzer, M., O'Neill, M., Ryan, C. and Cattolico, M. (2002) Grammatical Evolution Rules: The Mod and the Bucket Rule, pp. 123-130. In: Foster, J. A., Lutton, E., Miller, J., Ryan, C. and Tettamanzi, A. (Eds.): Genetic Programming. Lecture Notes in Computer Science, Vol.2278, Springer, Heidelberg. <doi:10.1007/3-540-45984-7_12>
See Also
Other Decoder:
xegaGeDecodeGene()
,
xegaGeGeneMapmLCM()
Examples
gene<-xegaGeInitGene(lFxegaGeGene)
xegaGeGeneMapMod(gene$gene1, lFxegaGeGene)