xegaGeDecodeGeneFactory {xegaGeGene} | R Documentation |
Configure the decoder function of a genetic algorithm.
Description
xegaGeDecodeGeneFactory()
implements the selection
of one of a decoder function
by specifying a text string.
The selection fails ungracefully (produces
a runtime error) if the label does not match.
The functions are specified locally.
Current support:
"DecodeGene" returns
xegaGeDecodeGene()
. (Default)."DecodeGeneDT" returns
xegaGeDecodeGeneDT()
. This decoder does not guarantee complete programs.
Usage
xegaGeDecodeGeneFactory(method = "DecodeGene")
Arguments
method |
A string specifying a decoder for genes |
Value
A decoder for genes.
See Also
Other Configuration:
xegaGeGeneMapFactory()
,
xegaGePrecisionFactory()
Examples
lFxegaGeGene$GeneMap<-xegaGeGeneMapFactory("Mod")
gene<-xegaGeInitGene(lFxegaGeGene)
DecodeGene<-xegaGeDecodeGeneFactory("DecodeGene")
DecodeGene(gene, lFxegaGeGene)
DecodeGeneDT<-xegaGeDecodeGeneFactory("DecodeGeneDT")
DecodeGeneDT(gene, lFxegaGeGene)
[Package xegaGeGene version 1.0.0.3 Index]