trackpy.motion.min_rolling_theta_entropy¶
- trackpy.motion.min_rolling_theta_entropy(pos, window=24, bins=24)¶
Compute the minimum Shannon entropy in any window.
- Parameters:
- posDataFrame with columns x and y, indexed by frame
- windownumber of observations per window
- binsnumber of equally-spaced bins in distribution. Default 24.
- Returns:
- floatShannon entropy
Examples
>>> theta_entropy(t[t['particle'] == 3].set_index('frame'))
>>> S = t.set_index('frame').groupby('particle').apply( ... tp.min_rolling_theta_entropy)