getV.spline: Get splined velocity estimates

View source: R/getV.spline.R

getV.splineR Documentation

Get splined velocity estimates

Description

Computes the locations and velocities of a cubic spline of a 2D track over time.

Usage

getV.spline(Z, T.raw, T.new = NULL, resolution = 0.01, ...)

Arguments

Z

location data in complex form (X + iY)

T.raw

time of observations to feed the spline.

T.new

new time vector

resolution

of spline, i.e. the fraction of the smallest interval in T.raw.

...

further arguments to splinefun. Importantly, the method.

Value

a list with the estimated velocity (V), as well as the position (Z) and time (T).

Examples

data("Kestrel",package = "smoove")
Z <- with(Kestrel, X+1i*Y)[1:500]
T <- Kestrel$timestamp[1:500]
vsp <- getV.spline(Z,T, resolution = 1e-2, T.new = NULL)
str(vsp)

EliGurarie/smoove documentation built on Aug. 2, 2022, 10:26 p.m.