Computes [path_sinuosity()] (Benhamou 2004) for each trajectory in a `Tracks`, ordering each trajectory's points by its time column when one is recorded. Distance-calibrated: with a `distance_scale` set the step lengths are in real units, so the reported sinuosity is in \(1/\sqrt{\mathrm{unit}}\).
Value
A `data.frame` with one row per trajectory: the `Tracks`'s id column and a numeric `sinuosity` column (`>= 0`).
Examples
head(sinuosity(cpunctatus))
#> trial_id sinuosity
#> 10_1_1 10_1_1 3.995306
#> 10_10_1 10_10_1 2.329886
#> 10_11_1 10_11_1 3.771568
#> 10_12_1 10_12_1 3.248539
#> 10_13_1 10_13_1 3.249218
#> 10_14_1 10_14_1 1.687342
