brownianTrack {celltrackR}R Documentation

Simulate an Uncorrelated Random Walk

Description

Generates a random track with nsteps steps in dim dimensions.

Usage

brownianTrack(nsteps = 100, dim = 3, mean = 0, sd = 1)

Arguments

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.

Details

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.

Value

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 ) )


[Package celltrackR version 1.2.0 Index]