R/utilities.R

sample_roll.Rd

Perform sequential sample with weighted replacement

sample_roll(x, n, gain = 0.75)

vector of elements from which to choose

a positive number, the number of items to choose from

Tuning parameter.

numeric vector