Calculate tortuosity metrics over sliding windows
Source:R/calculate_tortuosity.R
calculate_tortuosity.RdRenamed to add_tortuosity(), which takes the same arguments. This
returns exactly what it did: columns straightness, sinuosity and
emax, plus every kinematic column of calculate_kinematics() when the
frame did not already have velocities and speed. add_tortuosity() adds
only its three measures, with the window width in their names
(straightness_11, sinuosity_11, e_max_11).