Compute the van Hove correlation (histogram of displacements).
The van Hove correlation function is simply a histogram of particle displacements. It is useful for detecting physical heterogeneity (or tracking errors).
Parameters: | pos : DataFrame
lagtime : integer interval of frames
mpp : microns per pixel, DEFAULT TO 1 because it is usually fine to use
ensemble : boolean, defaults False bins : integer or sequence
|
---|---|
Returns: | vh : DataFrame or Series
|
Examples
>>> pos = traj.set_index(['frame', 'particle'])['x'].unstack() # particles as columns
>>> vh = vanhove(pos)