View source: R/kin.signal.arclength.R
kin.signal.arclength | R Documentation |
This function calculates the cumulative arc length of a 3D motion trajectory using Savitzky-Golay filtered derivatives.
kin.signal.arclength(data)
data |
A matrix or data frame with 3 columns representing X, Y, and Z coordinates |
The function computes the arc length by:
Calculating derivatives using Savitzky-Golay filtering for each dimension
Computing the Euclidean distance between consecutive points
Calculating the cumulative sum of these distances
A numeric vector containing the cumulative arc length at each point
xyz_data <- matrix(rnorm(300), ncol=3)
arc_length <- kin.signal.arclength(xyz_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.