MIT licensed by Jared Tobin
Maintained by [email protected]
This version can be pinned in stack with:sampling-0.3.5@sha256:000db80d767397d1dcf47d00845d611800347bc254e95e4bee3e80f207426216,1717

Module documentation for 0.3.5

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.