-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmighty-metropolis.cabal
90 lines (85 loc) · 2.47 KB
/
mighty-metropolis.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: mighty-metropolis
version: 2.0.0
synopsis: The Metropolis algorithm.
homepage: http://github.com/jtobin/mighty-metropolis
license: MIT
license-file: LICENSE
author: Jared Tobin
maintainer: [email protected]
category: Numeric
build-type: Simple
tested-with: GHC == 8.2.2, GHC == 8.8.3
cabal-version: >= 1.10
description:
The classic Metropolis algorithm.
.
Wander around parameter space according to a simple spherical Gaussian
distribution.
.
Exports a 'mcmc' function that prints a trace to stdout, a 'chain' function
for collecting results in-memory, and a 'metropolis' transition operator that
can be used more generally.
.
> import Numeric.MCMC.Metropolis
>
> rosenbrock :: [Double] -> Double
> rosenbrock [x0, x1] = negate (5 *(x1 - x0 ^ 2) ^ 2 + 0.05 * (1 - x0) ^ 2)
>
> main :: IO ()
> main = withSystemRandom . asGenIO $ mcmc 10000 1 [0, 0] rosenbrock
Source-repository head
Type: git
Location: http://github.com/jtobin/mighty-metropolis.git
library
default-language: Haskell2010
ghc-options:
-Wall
exposed-modules:
Numeric.MCMC.Metropolis
build-depends:
base >= 4 && < 6
, kan-extensions >= 5 && < 6
, pipes >= 4 && < 5
, primitive >= 0.6 && < 1.0
, mcmc-types >= 1.0.1
, mwc-probability >= 1.0.1
, transformers >= 0.5 && < 1.0
Test-suite rosenbrock
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Rosenbrock.hs
default-language: Haskell2010
ghc-options:
-rtsopts
build-depends:
base >= 4 && < 6
, mighty-metropolis
, mwc-probability >= 1.0.1
Test-suite bnn
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: BNN.hs
default-language: Haskell2010
ghc-options:
-rtsopts
build-depends:
base >= 4 && < 6
, containers >= 0.5 && < 0.8
, mighty-metropolis
, mwc-probability >= 1.0.1
Test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
default-language: Haskell2010
ghc-options:
-rtsopts
build-depends:
base >= 4 && < 6
, containers >= 0.5 && < 0.8
, foldl
, mighty-metropolis
, mwc-probability >= 1.0.1
, hspec
, mwc-random
, mcmc-types