TrajRediscretize | R Documentation |
Constructs a new trajectory by resampling the input trajectory to a
fixed step (or segment) length. By default, timing of frames is
lost, so speed and acceleration cannot be calculated on a
rediscretized trajectory. However, a constant speed may be applied
to the rediscretized trajectory (simConstantSpeed = TRUE
),
in which case the returned trajectory will have (almost) constant
speed, with average speed approximately equal to the average speed
of trj
.
TrajRediscretize(trj, R, simConstantSpeed = FALSE)
trj |
The trajectory to be resampled. |
R |
rediscretization step length, in the spatial units of |
simConstantSpeed |
If TRUE, speeds are interpolated along the new
trajectory so that average speed is approximately the same as that of
|
Based on the appendix in Bovet and Benhamou, (1988).
A new trajectory with a constant segment length which follows
trj
.
Bovet, P., & Benhamou, S. (1988). Spatial analysis of animals' movements using a correlated random walk model. Journal of Theoretical Biology, 131(4), 419-433. doi:10.1016/S0022-5193(88)80038-9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.