getSplinedTrajectory: Get smooth splined coordinate interpolation over time

View source: R/reaches.R

getSplinedTrajectoryR Documentation

Get smooth splined coordinate interpolation over time

Description

Returns a 2D trajectory smoothed by splining.

Usage

getSplinedTrajectory(x, y, t, length.out = length(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

length.out

number of splined points to return

spar

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

Details

#

Value

This function returns a data frame with smooth spline interpolated trajectory given by x, y and t.

Examples

#

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