MIT licensed by Jared Tobin
Maintained by

Module documentation for 0.3.5

This version can be pinned in stack with:sampling-0.3.5@sha256:000db80d767397d1dcf47d00845d611800347bc254e95e4bee3e80f207426216,1717

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.