agepy.mag.trajectory.get_mobility
- get_mobility(df, thresh, periods=1, dim_col='x')
Get mobility percentage of particles.
Particles are mobile if their velocity between two frames is greather than the given threshold value.
- Parameters:
- df: DataFrame
with particle data (from trackpy).
- thresh: float
threshold velocity.
- periods: int, optional
Window of frames to get diff/velocity from. Default is 1.
- dim_col: string, optional
Calculate velocity on column x or y. Default is “x”.
- Returns:
- mobility:
python:float percentage of mobile particles.
- mobility:
- Return type:
float