getV.spline | R Documentation |
Computes the locations and velocities of a cubic spline of a 2D track over time.
getV.spline(Z, T.raw, T.new = NULL, resolution = 0.01, ...)
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 |
a list with the estimated velocity (V), as well as the position (Z) and time (T).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.