sampling

Basic sampling functionality for Haskell.
git clone git://git.jtobin.io/sampling.git
Log | Files | Refs | README | LICENSE

sampling.cabal (1717B)


      1 name:                sampling
      2 version:             0.3.5
      3 synopsis:            Sample values from collections.
      4 homepage:            https://github.com/jtobin/sampling
      5 license:             MIT
      6 license-file:        LICENSE
      7 author:              Jared Tobin
      8 maintainer:          jared@jtobin.ca
      9 category:            Math
     10 build-type:          Simple
     11 tested-with:         GHC == 8.2.2, GHC == 8.8.3
     12 cabal-version:       >=1.10
     13 description:
     14   Basic sampling tools.
     15   .
     16   Exports variations on two simple functions for sampling from arbitrary
     17   'Foldable' collections:
     18   .
     19   * 'sample', for sampling without replacement
     20   .
     21   * 'resample', for sampling with replacement (i.e., a bootstrap)
     22   .
     23   Each variation can be prefixed with 'p' to sample from a container of values
     24   weighted by probability.
     25 
     26 Source-repository head
     27   Type:     git
     28   Location: http://github.com/jtobin/sampling.git
     29 
     30 library
     31   default-language:    Haskell2010
     32   hs-source-dirs:      lib
     33   ghc-options:
     34     -Wall
     35   other-modules:
     36       Numeric.Sampling.Internal
     37   exposed-modules:
     38       Numeric.Sampling
     39   build-depends:
     40       base        >  4.8  && < 6
     41     , containers  >= 0.5  && < 1
     42     , foldl       >= 1.1  && < 2
     43     , mwc-random  >= 0.13 && < 0.16
     44     , primitive   >= 0.6  && < 1
     45     , vector      >= 0.11 && < 1
     46 
     47 Test-suite resample
     48   type:                exitcode-stdio-1.0
     49   hs-source-dirs:      test
     50   Main-is:             Main.hs
     51   default-language:    Haskell2010
     52   build-depends:
     53       base
     54     , sampling
     55 
     56 benchmark bench-sampling
     57   type: exitcode-stdio-1.0
     58   hs-source-dirs:    bench
     59   Main-is:           Main.hs
     60   default-language:  Haskell2010
     61   ghc-options:
     62     -Wall -O2
     63   build-depends:
     64       base
     65     , criterion
     66     , sampling
     67