Package Info

ghc-mighty-metropolis


The Metropolis algorithm


Development/Libraries/Haskell

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.


License: MIT
URL: https://hackage.haskell.org/package/mighty-metropolis

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.2.0-bp150.2.3 info GA Release 2018-08-01 15
  • AArch64
  • ghc-mighty-metropolis
  • ghc-mighty-metropolis-devel
1.2.0-bp150.2.6 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-mighty-metropolis
  • ghc-mighty-metropolis-devel