Learn R Programming

trajr (version 1.0.0)

TrajRediscretize: Resample a trajectory to a constant step length

Description

Constructs a new trajectory by resampling the input trajectory to a fixed step (or segment) length. Timing of frames is lost, so speed and acceleration cannot be calculated on a rediscretized trajectory.

Usage

TrajRediscretize(trj, R)

Arguments

trj

The trajectory to be resampled.

R

rediscretization step length.

Value

A new trajectory with a constant segment length which follows trj.

Details

Based on the appendix in Bovet and Benhamou, (1988).

References

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