trackpy.motion.msd

trackpy.motion.msd(traj, mpp, fps, max_lagtime=100, detail=False, pos_columns=None)

Compute the mean displacement and mean squared displacement of one trajectory over a range of time intervals.

Parameters:
trajDataFrame with one trajectory, including columns frame, x, and y
mppmicrons per pixel
fpsframes per second
max_lagtimeintervals of frames out to which MSD is computed

Default: 100

detailSee below. Default False.
Returns:
DataFrame([<x>, <y>, <x^2>, <y^2>, msd], index=t)

If detail is True, the DataFrame also contains a column N, the estimated number of statistically independent measurements that comprise the result at each lagtime.

See also

imsd
emsd

Notes

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