flat-mcmc 1.4.1 → 1.4.2
raw patch · 2 files changed
+1/−35 lines, 2 filesdep ~basedep ~vectorPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, vector
API changes (from Hackage documentation)
Files
- flat-mcmc.cabal +1/−12
- src/Main.hs +0/−23
flat-mcmc.cabal view
@@ -1,5 +1,5 @@ name: flat-mcmc-version: 1.4.1+version: 1.4.2 synopsis: Painless general-purpose sampling. homepage: https://github.com/jtobin/flat-mcmc license: MIT@@ -91,17 +91,6 @@ default-language: Haskell2010 ghc-options: -rtsopts -threaded- build-depends:- base- , flat-mcmc- , vector--executable bnn-example- hs-source-dirs: src- main-is: Main.hs- default-language: Haskell2010- ghc-options:- -O2 -Wall -rtsopts -threaded build-depends: base , flat-mcmc
− src/Main.hs
@@ -1,23 +0,0 @@-{-# OPTIONS_GHC -fno-warn-type-defaults #-}--module Main where--import Numeric.MCMC.Flat-import qualified Data.Vector.Unboxed as U (unsafeIndex)--bnn :: Particle -> Double-bnn xs = -0.5 * (x0 ^ 2 * x1 ^ 2 + x0 ^ 2 + x1 ^ 2 - 8 * x0 - 8 * x1) where- x0 = U.unsafeIndex xs 0- x1 = U.unsafeIndex xs 1--origin :: Ensemble-origin = ensemble [- particle [negate 1.0, negate 1.0]- , particle [negate 1.0, 1.0]- , particle [1.0, negate 1.0]- , particle [1.0, 1.0]- ]--main :: IO ()-main = withSystemRandom . asGenIO $ mcmc 10000 origin bnn-