STournament | R Documentation |
k
.STournament()
is implemented in two steps:
A subset of size k of the population is selected with uniform probability.
A gene is selected with probability proportional to fitness.
STournament(fit, lF)
fit |
Fitness vector. |
lF |
Local configuration. |
Index of candidate.
fit<-sample(10, 15, replace=TRUE)
STournament(fit, NewlFselectGenes())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.