agepy.mag.trajectory

Functions for working with trajectories.

Functions

add_diff

Adds a "diff" column for differentiation of a coordinate.

drop_x_y

Return dataframe without particles located below xmin or ymin.

euclid_dist

Get euclidean distance between two points.

filter_short

Filter trajectories by euclidean distance of x_end - x_start.

get_mobile

Get mobile particles.

get_mobility

Get mobility percentage of particles.

get_vavg

Calculates the mean velocity of the particles.

get_vmax

Calculates the absolute mean maximum velocity of the particles.