Learn R Programming

Langevin Analysis in One and Two Dimensions

The Langevin package provides R functions to estimate drift and diffusion functions from time series and generate synthetic time series from given drift and diffusion coefficients.

Documentation

All functions of the Langevin package have corresponding help files. Additionally the package ships a pdf vignette which corresponds to a paper published in the Journal of Open Research Software.

Citation

To cite the Langevin package and/or the mathematical concept behind it correctly see citation("Langevin") for details.

Examples

The help files for each function contain usage examples, additionally the package repository ships a script with examples that reproduce the figures from the vignette.

Installation

Released and tested versions of the Langevin package are available at CRAN and can be installed from within R via

install.packages("Langevin")

The development version of the Langevin package can be installed from within R via

install.packages("devtools")
devtools::install_git("https://gitlab.uni-oldenburg.de/TWiSt/Langevin.git")

Authors

Philip Rinn, Pedro G. Lind and David Bastine

License

GPL (>= 2)

Copy Link

Version

Install

install.packages('Langevin')

Monthly Downloads

227

Version

1.3.3

License

GPL (>= 2)

Maintainer

Philip Rinn

Last Published

October 12th, 2025

Functions in Langevin (1.3.3)

timeseries2D

Generate a 2D Langevin process
Langevin1D

Calculate the Drift and Diffusion of one-dimensional stochastic processes
summary.Langevin

Summarize estimated drift and diffusion coefficients
timeseries1D

Generate a 1D Langevin process
print.Langevin

Print estimated drift and diffusion coefficients
plot.Langevin

Plot estimated drift and diffusion coefficients
Langevin2D

Calculate the Drift and Diffusion of two-dimensional stochastic processes
Langevin-package

An R package for stochastic data analysis