trackpy.imsd

trackpy.imsd(traj, mpp, fps, max_lagtime=100, statistic='msd', pos_columns=['x', 'y'])

Compute the mean squared displacement of each particle.

Parameters:

traj : DataFrame of trajectories of multiple particles, including

columns particle, frame, x, and y

mpp : microns per pixel

fps : frames per second

max_lagtime : intervals of frames out to which MSD is computed

Default: 100

statistic : {‘msd’, ‘<x>’, ‘<y>’, ‘<x^2>’, ‘<y^2>’}, default is ‘msd’

The functions msd() and emsd() return all these as columns. For imsd() you have to pick one.

Returns:

DataFrame([Probe 1 msd, Probe 2 msd, ...], index=t)

Notes

Input units are pixels and frames. Output units are microns and seconds.