sampling: Sample values from collections.
Basic sampling tools.
Exports variations on two simple functions for sampling from arbitrary
Foldable
collections:
sample
, for sampling without replacementresample
, 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.
Downloads
- sampling-0.3.5.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.1, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5 |
---|---|
Dependencies | base (>4.8 && <6), containers (>=0.5 && <1), foldl (>=1.1 && <2), mwc-random (>=0.13 && <0.16), primitive (>=0.6 && <1), vector (>=0.11 && <1) [details] |
Tested with | ghc ==8.2.2, ghc ==8.8.3 |
License | MIT |
Author | Jared Tobin |
Maintainer | jared@jtobin.ca |
Category | Math |
Home page | https://github.com/jtobin/sampling |
Source repo | head: git clone http://github.com/jtobin/sampling.git |
Uploaded | by JaredTobin at 2020-07-31T20:22:52Z |
Distributions | LTSHaskell:0.3.5, NixOS:0.3.5, Stackage:0.3.5 |
Reverse Dependencies | 2 direct, 0 indirect [details] |
Downloads | 4998 total (37 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2020-07-31 [all 1 reports] |