Compute velocity via Engbert & Kliegl (2003) algorithm. See formula #1 in the manuscript.
compute_velocity_ek(x, trial, time_window_in_samples, delta_t)Velocity vector
Vector of coordinates
Vector with trial labels, so that velocity is computed only within trials.
Width of window for velocity computation in samples.
Duration of a single frame (1 / sampling rate).