Time to peak reaching velocity
Usage
timeToPeakVelocity(
speed,
fs,
onset_threshold = 0.05,
threshold_type = c("relative", "absolute"),
normalize = FALSE
)Arguments
- speed
Numeric non-negative tangential-speed profile.
- fs
Sampling frequency in Hz.
- onset_threshold
Non-negative threshold, interpreted according to
threshold_type.- threshold_type
"relative"for a fraction of peak speed or"absolute"for speed units.- normalize
Logical; return time-to-peak divided by movement time instead of seconds.