Sample values from collections.

Latest on Hackage:0.3.4

See all snapshots sampling appears in

MIT licensed by Jared Tobin
Maintained by [email protected]

Module documentation for 0.3.2

This version can be pinned in stack with:[email protected]:900a3a30a6b4a96869589dbffceb82251e8ffce6caff065bcfe664ae3c5faa7d,1665

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.