powered by
Computes the speed of pupil changes using finite differences between consecutive time points. This is a helper function for the detransient step.
speed(x, y)
A vector of pupil speeds at each time point
A numeric vector of pupil data
A numeric vector of time data