| SelectUniform | R Documentation |
SelectUniform() implements selection
by choosing a gene with equal probability.
SelectUniform(fit, lF, size = 1)
fit |
Fitness vector. |
lF |
Local configuration. |
size |
Number of selected genes. Default: 1. |
This selection function is useful:
To specify mating behavior in crossover operators.
For computer experiments without selection pressure.
For computing random search solutions as a benchmark.
The index vector of the selected genes.
Other Selection Functions:
SelectDuel(),
SelectLRSelective(),
SelectLinearRankTSR(),
SelectPropFit(),
SelectPropFitDiff(),
SelectPropFitDiffM(),
SelectPropFitDiffOnln(),
SelectPropFitM(),
SelectPropFitOnln(),
SelectSTournament(),
SelectSUS(),
SelectTournament(),
SelectUniformP()
fit<-sample(10, 15, replace=TRUE)
SelectUniform(fit, NewlFselectGenes())
SelectUniform(fit, NewlFselectGenes(), length(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.