sampling

Sample values from collections. https://github.com/jtobin/sampling

Version on this page:0.3.2
LTS Haskell 10.3:0.3.2
Stackage Nightly 2018-01-21:0.3.2
Latest on Hackage:0.3.2

See all snapshots sampling appears in

MIT licensed by Jared Tobin
Maintained by jared@jtobin.ca

Module documentation for 0.3.2

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.

Depends on 6 packages:
Used by 1 package:
comments powered byDisqus