selrws2 {adana} | R Documentation |
Roulette wheel selection 2
Description
This function provides the opportunity to take more than one place in the mating pool in proportion to the fitness value of each individual.
Usage
selrws2(fitvals, ns, ...)
Arguments
fitvals |
Vector of fitness values belonging to individuals |
ns |
Number of individuals to be selected |
... |
Further arguments passed to or from other methods. |
Value
The indices of randomly selected individuals are returned.
Author(s)
Zeynel Cebeci & Erkut Tekeli
See Also
select
,
selrand
,
selrswrp
,
selrws
,
seltrunc
,
selrss
,
selsus
,
seldet
,
selwscale
,
selsscale
,
selsscale2
,
sellscale
,
selrscale
,
selrscale2
,
selpscale
,
selescale
,
seltour
,
seltour2
,
selboltour
,
sellrs
,
sellrs2
,
sellrs3
,
selnlrs
,
selers
Examples
fitvals = c(6, 1, 2, 4, 5)
cnames = paste0("C",1:length(fitvals))
matpool = selrws(fitvals)
cat("Selected Chromosomes: ", cnames[matpool], "\n")
[Package adana version 1.1.0 Index]