Learn R Programming

trajr (version 1.5.1)

TrajMeanVelocity: Trajectory mean velocity

Description

Calculates the mean or net velocity of a trajectory (or a portion of a trajectory). This is the velocity from the start point to the end point, ignoring the path that was taken.

Usage

TrajMeanVelocity(trj, startIndex = 1, endIndex = nrow(trj))

Value

Numeric duration of the trajectory, in time units.

Arguments

trj

Trajectory whose duration is to be calculated.

startIndex

Index of the starting point.

endIndex

Index of the ending point.

See Also

TrajGetTimeUnits