Perform sequential sample with weighted replacement

sample_roll(x, n, gain = 0.75)

Arguments

x

vector of elements from which to choose

n

a positive number, the number of items to choose from

gain

Tuning parameter.

Value

numeric vector