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 && <5), containers (>=0.5 && <1), foldl (>=1.1 && <2), mwc-random (==0.13.*), primitive (>=0.6 && <1), vector (==0.11.*) [details]
License MIT
Author Jared Tobin
Revised Revision 1 made by HerbertValerioRiedel at 2016-12-11T08:26:50Z
Category Math
Home page
Source repo head: git clone
Uploaded by JaredTobin at 2016-12-11T07:03:27Z
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 2016-12-11 [all 1 reports]




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees