flat-mcmc

Painless, efficient, general-purpose sampling from continuous distributions.
Log | Files | Refs | README | LICENSE

commit 93b0f4b34e6ae7ca21af025f0b97cec99045eb2a
parent 63fd2ebabc512a3ef5a3b13e3f25963864901de9
Author: Jared Tobin <jared@jtobin.ca>
Date:   Mon,  7 Nov 2016 14:44:02 +1300

Cabal file updates.

Diffstat:
Mflat-mcmc.cabal | 23++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/flat-mcmc.cabal b/flat-mcmc.cabal @@ -1,7 +1,7 @@ name: flat-mcmc -version: 1.2.1 +version: 1.2.2 synopsis: Painless general-purpose sampling. -homepage: http://jtobin.github.com/flat-mcmc +homepage: https://github.com/jtobin/flat-mcmc license: MIT license-file: LICENSE author: Jared Tobin @@ -25,18 +25,19 @@ description: as a 'flat' transition operator that can be used more generally. . > import Numeric.MCMC.Flat - > import Data.Vector (Vector, toList, fromList) + > import qualified Data.Vector.Unboxed as U (Vector, toList, fromList) + > import qualified Data.Vector as V (fromList) > - > rosenbrock :: Vector Double -> Double - > rosenbrock xs = negate (5 *(x1 - x0 ^ 2) ^ 2 + 0.05 * (1 - x0) ^ 2) where - > [x0, x1] = toList xs + > rosenbrock :: Particle -> Double + > rosenbrock xs = negate (5 * (x1 - x0 ^ 2) ^ 2 + 0.05 * (1 - x0) ^ 2) where + > [x0, x1] = U.toList xs > > ensemble :: Ensemble - > ensemble = fromList [ - > fromList [negate 1.0, negate 1.0] - > , fromList [negate 1.0, 1.0] - > , fromList [1.0, negate 1.0] - > , fromList [1.0, 1.0] + > ensemble = V.fromList [ + > U.fromList [negate 1.0, negate 1.0] + > , U.fromList [negate 1.0, 1.0] + > , U.fromList [1.0, negate 1.0] + > , U.fromList [1.0, 1.0] > ] > > main :: IO ()