trackpy.velocity_corr

trackpy.velocity_corr(t, frame1, frame2)

Compute the velocity correlation between every pair of particles’ displacements.

Parameters:

t : DataFrame

trajectories, containing columns particle, frame, x, and y

frame1 : frame number

frame2 : frame number

Returns:

DataFrame, indexed by particle, including dx, dy, and direction