Description Usage Arguments Details Value
Generates a random track with nsteps
steps in dim
dimensions.
1 | brownianTrack(nsteps = 100, dim = 3, mean = 0, sd = 1)
|
nsteps |
desired number of steps (e.g. 10 steps generates a track with 11 positions). |
dim |
desired number of dimensions. |
mean |
stepwise mean drift per dimension; use 0 for an unbiased Brownian motion and other values for Brownian motion with drift. |
sd |
stepwise standard deviation per dimension. |
In in every step an for each dimension, a normally distributed
value with mean mean
and standard deviation sd
is
added to the previous cell position.
A data frame containing in cell track with nsteps
steps in
dim
dimensions is returned.
## The Hurst exponent of a 1D Brownian track should be near 0.5 hurstExponent( brownianTrack( 100, 1 ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.