SelectSTournament {xegaSelectGene} | R Documentation |
Stochastic tournament selection.
Description
SelectSTournament
implements selection
through a stochastic tournament between
lF$TournamentSize()
randomly selected genes. A gene wins a tournament
with a probability proportional to its fitness.
The default of lF$TournamentSize()
is 2
.
A tournament
with 2 participants has the least selection pressure.
lF$TournamentSize
must be less than the population size.
Usage
SelectSTournament(fit, lF, size = 1)
Arguments
fit |
Fitness vector. |
lF |
Local configuration. |
size |
Number of selected genes. Default: 1. |
Value
The index vector of the selected genes.
See Also
Other Selection Functions:
SelectDuel()
,
SelectLRSelective()
,
SelectLinearRankTSR()
,
SelectPropFitDiffM()
,
SelectPropFitDiffOnln()
,
SelectPropFitDiff()
,
SelectPropFitM()
,
SelectPropFitOnln()
,
SelectPropFit()
,
SelectSUS()
,
SelectTournament()
,
SelectUniformP()
,
SelectUniform()
Examples
fit<-sample(10, 15, replace=TRUE)
SelectSTournament(fit, NewlFselectGenes())
SelectSTournament(fit, NewlFselectGenes(), length(fit))