sampling: Sample values from collections.

[ library, math, mit ] [ Propose Tags ]

Basic sampling tools.

Exports variations on two simple functions for sampling from arbitrary Foldable collections:

Each variation can be prefixed with p to sample from a container of values weighted by probability.

Versions [faq] 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]
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.3, NixOS:0.3.5, Stackage:0.3.3
Downloads 3727 total (8 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-07-31 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees