SelectGeneFactory | R Documentation |
SelectGeneFactory()
implements selection
of one of the gene selection 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:
"Uniform" returns SelectUniform()
.
"UniformP" returns SelectUniformP()
.
"ProportionalOnln" returns SelectPropFitOnln()
.
"Proportional" returns SelectPropFit()
.
"ProportionalM" returns SelectPropFitM()
.
"PropFitDiffOnln" returns SelectPropFitDiffOnln()
.
"PropFitDiff" returns SelectPropFitDiff()
.
"PropFitDiffM" returns SelectPropFitDiffM()
.
"Tournament" returns SelectTournament()
.
"STournament" returns SelectSTournament()
.
"Duel" returns SelectDuel()
.
"LRSelective" returns SelectLRSelective()
.
"LRTSR" returns SelectLinearRankTSR()
.
"SUS" returns SelectSUS()
.
SelectGeneFactory(method = "PropFitDiffOnln")
method |
A string specifying the selection function. |
If SelectionContinuation()==TRUE
then:
In package xegaPopulation in
function NextPopulation()
,
first the functions
SelectGene()
and SelectMate()
are transformed by TransformSelect()
to
a continuation function with
embedded index vector and counter.
For each call in ReplicateGene()
,
SelectGene
and SelectMate()
return the index of the selected gene.
A selection function for genes.
Other Configuration:
DispersionMeasureFactory()
,
EvalGeneFactory()
,
ScalingFactory()
SelectGene<-SelectGeneFactory("Uniform")
fit<-sample(10, 15, replace=TRUE)
SelectGene(fit, lFselectGenes)
sel<-"Proportional"
SelectGene<-SelectGeneFactory(method=sel)
fit<-sample(10, 15, replace=TRUE)
SelectGene(fit, lFselectGenes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.