Learn R Programming

trajr (version 1.0.0)

TrajDerivatives: Calculates trajectory speed and acceleration

Description

Calculates speed and linear acceleration along a trajectory over time. Noisy trajectories should be smoothed before being passed to this function, as noise is effectively amplifed when calculating speed and acceleration.

Usage

TrajDerivatives(trj)

Arguments

trj

Trajectory whose speed and acceleration is to be calculated.

Value

A list with components:

speed

numeric vector, speed between each pair of trajectory points.

speedTimes

numeric vector, times corresponding to values in speed.

acceleration

numeric vector.

accelerationTimes

numeric vector.

See Also

TrajSpeedIntervals for analysing intervals within the trajectory of low or high speed. TrajSmoothSG for smoothing a trajectory.