packages feed

sampling-0.3.1: sampling.cabal

name:                sampling
version:             0.3.1
synopsis:            Sample values from collections.
homepage:            https://github.com/jtobin/sampling
license:             MIT
license-file:        LICENSE
author:              Jared Tobin
maintainer:          jared@jtobin.ca
category:            Math
build-type:          Simple
cabal-version:       >=1.10
description:
  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.

Source-repository head
  Type:     git
  Location: http://github.com/jtobin/sampling.git

library
  default-language:    Haskell2010
  hs-source-dirs:      lib
  ghc-options:
    -Wall
  other-modules:
      Numeric.Sampling.Internal
  exposed-modules:
      Numeric.Sampling
  build-depends:
      base        > 4.8 && < 5
    , containers  >= 0.5 && < 1
    , foldl       >= 1.1 && < 2
    , mwc-random  >= 0.13 && < 0.14
    , primitive   >= 0.6  && < 1
    , vector      >= 0.11 && < 0.12

Test-suite resample
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  Main-is:             Main.hs
  default-language:    Haskell2010
  build-depends:
      base
    , sampling

benchmark bench-sampling
  type: exitcode-stdio-1.0
  hs-source-dirs:    bench
  Main-is:           Main.hs
  default-language:  Haskell2010
  ghc-options:
    -Wall -O2
  build-depends:
      base
    , criterion
    , sampling