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

Module documentation for 0.3.3

  • Numeric
    • Numeric.Sampling

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.