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:

  • 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.

Modules

[Index]

Downloads

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

Package maintainers

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.15), primitive (>=0.6 && <1), vector (>=0.11 && <1) [details]
License MIT
Author Jared Tobin
Maintainer jared@jtobin.ca
Revised Revision 1 made by JaredTobin at 2018-07-11T23:27:30Z
Category Math
Home page https://github.com/jtobin/sampling
Source repo head: git clone http://github.com/jtobin/sampling.git
Uploaded by JaredTobin at 2018-04-16T23:33:46Z
Distributions LTSHaskell:0.3.5, NixOS:0.3.5, Stackage:0.3.5
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 4806 total (21 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-04-16 [all 1 reports]