powered by
Simulation of a three dimensional Correlated Random Walk
sim.crw.3d(nStep, rTurn, rLift, meanStep, start = c(0, 0, 0))
the number of steps of the simulated trajectory
the correlation on the turn angle
the correlation of the lift angle
the mean step length
a vector of length 3 containing the coordinates of the start point of the trajectory
A trajectory in the form of data.frame
# 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