sampling

Sample values from collections.

https://github.com/jtobin/sampling

Version on this page:0.3.3@rev:1
LTS Haskell 22.39:0.3.5
Stackage Nightly 2024-10-31:0.3.5
Latest on Hackage:0.3.5

See all snapshots sampling appears in

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

Module documentation for 0.3.3

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.