simmCRW: Simulate a Correlated Random Walk (CRW)

Description Usage Arguments Details References Examples

Description

Simulate a Correlated Random Walk (CRW). This model represent the movement of an animal which has directional persistence.

Usage

1
simmCRW(n, l, k, a)

Arguments

n

one integer value for the sample size. Note that this sample size represent the number of final step lengths and turning angles wanted (when TAc = 0). The ltraj object returned will be longer because a minimum of 3 locations are required to calculate a relative turning angle

l

one numeric and positive value representing the lambda value for the exponential distribution of the step lengths

k

one numeric and positive value representing the kappa value of von Mises distribution of the turning angles

a

one numeric and positive value representing the minimum step length value

Details

Simulates a CRW and return a ltraj object

References

Please refer to Auger-Methe, M., A.E. Derocher, M.J. Plank, E.A. Codling, M.A. Lewis (2015-In Press) Differentiating the Levy walk from a composite correlated random walk. Methods in Ecology and Evolution. Preprint available at http://arxiv.org/abs/1406.4355

Examples

1
2
3
simPath <- simmCRW(500,0.1,15,1)
simPath
plot(simPath)

MarieAugerMethe/CCRWvsLW documentation built on May 7, 2019, 2:50 p.m.