flat-mcmc alternatives and similar packages
Based on the "Math" category.
Alternatively, view flat-mcmc alternatives based on common mentions on social networks and blogs.
-
vector
An efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework . -
statistics
A fast, high quality library for computing with statistics in Haskell. -
HerbiePlugin
GHC plugin that improves Haskell code's numerical stability -
hgeometry
HGeometry is a library for computing with geometric objects in Haskell. It defines basic geometric types and primitives, and it implements some geometric data structures and algorithms. The main two focusses are: (1) Strong type safety, and (2) implementations of geometric algorithms and data structures that have good asymptotic running time guarantees. -
dimensional
Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+). -
computational-algebra
General-Purpose Computer Algebra System as an EDSL in Haskell -
mwc-random
A very fast Haskell library for generating high quality pseudo-random numbers. -
matrix
A Haskell native implementation of matrices and their operations. -
numhask
A haskell numeric prelude, providing a clean structure for numbers and operations that combine them. -
poly
Fast polynomial arithmetic in Haskell (dense and sparse, univariate and multivariate, usual and Laurent) -
cf
"Exact" real arithmetic for Haskell using continued fractions (Not formally proven correct) -
optimization
Some numerical optimization methods implemented in Haskell -
safe-decimal
Safe and very efficient arithmetic operations on fixed decimal point numbers -
rampart
:european_castle: Determine how intervals relate to each other. -
equational-reasoning
Agda-style equational reasoning in Haskell -
sbvPlugin
Formally prove properties of Haskell programs using SBV/SMT. -
monoid-subclasses
Subclasses of Monoid with a solid theoretical foundation and practical purposes -
polynomial
Haskell library for manipulating and evaluating polynomials -
eigen
Haskel binding for Eigen library. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of flat-mcmc or a related project?
README
flat-mcmc
flat-mcmc is a Haskell library for painless, efficient, general-purpose sampling from continuous distributions.
flat-mcmc uses an ensemble sampler that is invariant to affine transformations of space. It wanders a target probability distribution's parameter space as if it had been "flattened" or "unstretched" in some sense, allowing many particles to explore it locally and in parallel.
In general this sampler is useful when you want decent performance without dealing with any tuning parameters or local proposal distributions. Check out the paper describing the algorithm here, and a paper on some potential limitations here, authored by my friends David Huijser and Brendon Brewer. There is also also a robust Python implementation here authored by Dan Foreman-Mackey, a very nice dude who I once moved some furniture with.
flat-mcmc exports an 'mcmc' function that prints a trace to stdout, as well as a 'flat' transition operator that can be used more generally.
import Numeric.MCMC.Flat
import qualified Data.Vector.Unboxed as U (unsafeIndex)
rosenbrock :: Particle -> Double
rosenbrock xs = negate (5 * (x1 - x0 ^ 2) ^ 2 + 0.05 * (1 - x0) ^ 2) 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 12500 origin rosenbrock
*Note that all licence references and agreements mentioned in the flat-mcmc README section above
are relevant to that project's source code only.