xegaGeGeneMapFactory: Configure the gene map function of a genetic algorithm for...

View source: R/xegaGeDecode.R

xegaGeGeneMapFactoryR Documentation

Configure the gene map function of a genetic algorithm for grammar evolution.

Description

xegaGeGeneMapFactory() implements the selection of one of the GeneMap functions in this package 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:

  1. "Mod" returns xegaGeGeneMapMod(). (Default).

  2. "Bucket" returns xegaGeGeneMapmLCM().

Usage

xegaGeGeneMapFactory(method = "Mod")

Arguments

method

String specifying the GeneMap function.

Value

Gene map function for genes.

See Also

Other Configuration: xegaGeDecodeGeneFactory(), xegaGePrecisionFactory()

Examples

XGene<-xegaGeGeneMapFactory("Mod")
gene<-xegaGeInitGene(lFxegaGeGene)
XGene(gene$gene1, lFxegaGeGene)

xegaGeGene documentation built on June 8, 2025, 1:09 p.m.