Computes the speed of pupil changes using finite differences between consecutive time points. This is a helper function for the detransient step.
Computes the speed of pupil changes using finite differences between consecutive time points. This is a helper function for the detransient step.