getSplinedVelocity: Get velocity profile after spline interpolation

View source: R/reaches.R

getSplinedVelocityR Documentation

Get velocity profile after spline interpolation

Description

Returns velocity based on spline-smoothed trajectory.

Usage

getSplinedVelocity(x, y, t, spar = 0.01)

Arguments

x

X-coordinates of a trajectory

y

Y-coordinates of a trajectory

t

Timestamps of the X and Y coordinates

spar

Smoothing parameter for the spline, default: 0.01 (0.00-1.00)

Details

#

Value

This function returns a data frame with spline interpolated velocity and time for the trajectory given by x, y and t. The first velocity sample will always be zero.

Examples

#

thartbm/handlocs documentation built on Feb. 18, 2025, 10:53 p.m.