Langevin Diffusion Samplers with a C++ Backend

Provides lightweight, dependency-minimal implementations of Langevin diffusion based Markov chain Monte Carlo samplers, including the Unadjusted Langevin Algorithm (ULA) and the Metropolis-Adjusted Langevin Algorithm (MALA). The core sampling loops are written in C++ via 'Rcpp' and 'RcppArmadillo' for performance, while exposing a simple R-level interface where the user supplies the gradient of the negative log-density (and, for MALA, the negative log-density itself). Intended as a building block for Bayesian inference and stochastic optimization rather than a full probabilistic programming framework. Methods follow Roberts and Tweedie (1996) and Roberts and Rosenthal (1998) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("LangevinFlow")

0.1.0 by Behrooz Moosavi, 4 months ago


https://github.com/BehroozMoosavi/LangevinFlow


Report a bug at https://github.com/BehroozMoosavi/LangevinFlow/issues


Browse source code at https://github.com/cran/LangevinFlow


Authors: Behrooz Moosavi [aut, cre] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports Rcpp, stats, graphics

Suggests testthat, knitr, rmarkdown, covr

Linking to Rcpp, RcppArmadillo


See at CRAN