ang_acc: Angular Acceleration

View source: R/heading.R

ang_accR Documentation

Angular Acceleration

Description

Given a set of locations defining a trajectory, this function approximates their instantaneous angular accelerations computed as the difference between successive angular speeds.

Usage

ang_acc(x, y, t, geo = FALSE)

angAcc(x, y, t, geo = FALSE)

Arguments

x

A vector of x (or longitude) coordinates corresponding to a single trajectory.

y

A vector of y (or latitude) coordinates corresponding to a single trajectory.

t

A vector of timestamps corresponding to a single trajectory.

geo

A logical value indicating whether the locations are defined by geographic coordinates (pairs of longitude/latitude values). Default: FALSE.

Value

A vector of the same length as x, y and t corresponding to the approximated instantaneous angular accelerations along the trajectory.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

heading, ang_speed

Examples

x <- rnorm(25)
y <- rnorm(25, sd = 3)
t <- as.POSIXct(1:25, origin = Sys.time())
ang_acc(x, y, t)


swarm-lab/swaRm documentation built on Dec. 3, 2023, 9:30 p.m.