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] [Quick Jump]

Downloads

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.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.5, NixOS:0.3.5, Stackage:0.3.5
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 4801 total (30 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]