xegaGeGeneMapFactory {xegaGeGene}R 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 GeneMapMod(). (Default).

  2. "Bucket" returns GeneMapmLCM().

Usage

xegaGeGeneMapFactory(method = "Mod")

Arguments

method

String specifying the GeneMap function.

Value

Gene map function for genes.

See Also

Other Configuration: xegaGePrecisionFactory()

Examples

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

[Package xegaGeGene version 1.0.0.0 Index]