Learn R Programming

eRTG3D (version 0.7.0)

sim.crw.3d: Simulation of a three dimensional Correlated Random Walk

Description

Simulation of a three dimensional Correlated Random Walk

Usage

sim.crw.3d(nStep, rTurn, rLift, meanStep, start = c(0, 0, 0))

Arguments

nStep

the number of steps of the simulated trajectory

rTurn

the correlation on the turn angle

rLift

the correlation of the lift angle

meanStep

the mean step length

start

a vector of length 3 containing the coordinates of the start point of the trajectory

Value

A trajectory in the form of data.frame

Examples

Run this code
# NOT RUN {
sim.crw.3d(nStep = 10, rTurn = 0.9, rLift = 0.9, meanStep = 1, start = c(0, 0, 0))
# }

Run the code above in your browser using DataLab