Description Usage srswo mcdowell_sampling
Documentation for samplers.
1 2 3 4 5 | mcdowell_sampling(fitness, fitness_weights)
srswo(choose, repeats, sample_size)
srs(choose_max, repeats, sample_size)
|
srswo
Simple random sampling without replacemant and uniform selection probabilities
srswo( choose, repeats, sample_size )
choose
Numeric vector of elements to choose from.
repeats
Integer. How many repeats for the sampling.
sample_size
Integer. How many elements chosen per sample.
Returns a matrix
with the draws from each sample along the columns.
mcdowell_sampling
Sampling used in the supplementary material of McDowell (2013).
CAB.mcdowell_sampling( fitness, fitness_weights )
fitness
Numeric vector of fitness values.
fitness_weights
Numeric vector of fitness weights.
Returns a matrix
with two columns and rows equal to the number of fitnss values. This matrix contains the indices of the values that are sampled. The indexing starts from zero.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.