| SelectDuel | R Documentation |
SelectDuel() implements selection
by a tournament between 2
randomly selected genes. The best gene always wins.
This is the version of tournament selection
with the least selection pressure.
SelectDuel(fit, lF, size = 1)
fit |
Fitness vector. |
lF |
Local configuration. |
size |
Number of selected genes. Default: 1. |
This is an O(n) implementation of tournament selection with a tournament size of 2.
A special case of tournament selection.
The index vector of the selected genes.
Other Selection Functions:
SelectLRSelective(),
SelectLinearRankTSR(),
SelectPropFit(),
SelectPropFitDiff(),
SelectPropFitDiffM(),
SelectPropFitDiffOnln(),
SelectPropFitM(),
SelectPropFitOnln(),
SelectSTournament(),
SelectSUS(),
SelectTournament(),
SelectUniform(),
SelectUniformP()
fit<-sample(10, 15, replace=TRUE)
SelectDuel(fit, NewlFselectGenes())
SelectDuel(fit, NewlFselectGenes(), length(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.