Langevin2D {Langevin} | R Documentation |
Calculate the Drift and Diffusion of two-dimensional stochastic processes
Description
Langevin2D
calculates the Drift (with error) and Diffusion matrices
for given time series.
Usage
Langevin2D(
data,
bins,
steps,
sf = ifelse(is.mts(data), frequency(data), 1),
bin_min = 100,
reqThreads = -1
)
Arguments
data |
a matrix containing the time series as columns or a time-series object. |
bins |
a scalar denoting the number of |
steps |
a vector giving the |
sf |
a scalar denoting the sampling frequency (optional if |
bin_min |
a scalar denoting the minimal number of events per |
reqThreads |
a scalar denoting how many threads to use. Defaults to
|
Value
Langevin2D
returns a list with nine components:
D1 |
a tensor with all values of the drift coefficient.
Dimension is |
eD1 |
a tensor with all estimated errors of the drift
coefficient. Dimension is |
D2 |
a tensor with all values of the diffusion coefficient.
Dimension is |
mean_bin |
a matrix of the mean value per |
density |
a matrix of the number of events per |
M1 |
a tensor of the first moment for each |
eM1 |
a tensor of the standard deviation of the first
moment for each bin (line label) and each |
M2 |
a tensor of the second moment for each bin (line
label) and each |
U |
a matrix of the |
Author(s)
Philip Rinn