View source: R/xegaDfCrossover.R
xegaDfCrossoverFactory | R Documentation |
xegaDfCrossoverFactory()
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 one kid:
"CrossGene" returns CrossGene()
.
"UCrossGene" returns UCrossGene()
. Default.
"UPCrossGene" returns UPCrossGene()
.
xegaDfCrossoverFactory(method = "UCrossGene")
method |
A string specifying the crossover function. |
All crossover operations return a 1 kid. This implies that some part of the genetic material is lost.
Crossover function for genes.
Other Configuration:
lFxegaDfGene
,
xegaDfGeneMapFactory()
,
xegaDfMutationFactory()
,
xegaDfReplicationFactory()
,
xegaDfScaleFactorFactory()
XGene<-xegaDfCrossoverFactory("UCrossGene")
gene1<-xegaDfInitGene(lFxegaDfGene)
gene2<-xegaDfInitGene(lFxegaDfGene)
XGene(gene1, gene2, lFxegaDfGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.