magpie.randoms.random_prob_draw

magpie.randoms.random_prob_draw(sample, prob, size)

Probabilistic draw from an input sample.

Parameters
samplearray

Input sample data.

probarray, optional

The probability assigned to each sample.

sizeint, optional

Size of the probabilistic draw.

Returns
randsamparray

Random subsample.