trackpy.filtering.filter_clusters

trackpy.filtering.filter_clusters(tracks, quantile=0.8, threshold=None)

Filter out trajectories with a mean particle size above a given quantile.

Parameters:
tracksDataFrame

must include columns named ‘particle’ and ‘size’

quantilenumber between 0 and 1

quantile of particle ‘size’ above which to cut off

thresholdnumber

If specified, ignore quantile.

Returns:
a subset of tracks