MIT licensed by Jared Tobin
Maintained by [email protected]
This version can be pinned in stack with:sampling-0.3.4@sha256:a9fd0b20a3bbaae23ed244aa558d4ed0783ca54adb7cff406a6274772069ed8d,1713

Module documentation for 0.3.4

Basic sampling tools.

Exports variations on two simple functions for sampling from arbitrary Foldable collections:

  • sample, for sampling without replacement

  • resample, for sampling with replacement (i.e., a bootstrap)

Each variation can be prefixed with p to sample from a container of values weighted by probability.