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

Module documentation for 0.3.1

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.