Sample estimate of mean squared displacement.
msd_fit(Xt, nlag, demean = TRUE)
Matrix of trajectory positions, where each row is an observation and each column is a measurement coordinate. The trajectory is assumed to be sampled at a constant frequency.
Number of MSD lags to calculate.
Logical; whether or not to subtract from Xt
a regression-based estimate of its linear drift.
Sample MSD vector of length nlag
.
The MSD of a d
-dimensional stochastic process X(t) = (X_1(t), ..., X_d(t))
is defined as