View source: R/xegaGpCrossover.R
xegaGpCrossoverFactory | R Documentation |
xegaGpCrossoverFactory()
implements the selection
of one of the crossover 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:
Crossover functions with two kids:
"Cross2Gene" returns xegaGpAllCross2Gene()
.
"AllCross2Gene" returns xegaGpAllCross2Gene()
.
"FilterCross2Gene" returns xegaGpFilterCross2Gene()
.
Crossover functions with one kid:
"AllCrossGene" returns xegaGpAllCrossGene()
.
"FilterCrossGene" returns xegaGpFilterCrossGene()
.
xegaGpCrossoverFactory(method = "Cross2Gene")
method |
String specifying the crossover function. |
Crossover function for genes.
Other Configuration:
xegaGpInitGeneFactory()
,
xegaGpMutationFactory()
XGeneTwo<-xegaGpCrossoverFactory("Cross2Gene")
XGeneOne<-xegaGpCrossoverFactory("FilterCrossGene")
gene1<-xegaGpInitGene(lFxegaGpGene)
gene2<-xegaGpInitGene(lFxegaGpGene)
XGeneTwo(gene1, gene2, lFxegaGpGene)
XGeneOne(gene1, gene2, lFxegaGpGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.