mvtsa.clustering.TrajectoryClustering#

class mvtsa.clustering.TrajectoryClustering(method='neighborhood', k=5, eps=None, min_samples=3, window=None)[source]#

Bases: _ClusterMixin

Clustering of objects moving in a common phase space.

Parameters:
method{“neighborhood”, “trajectory”}

"neighborhood": DBSCAN on \(1-\) the neighbourhood-preservation similarity (objects that stay neighbours over the observation period); "trajectory": DBSCAN on the mean Euclidean distance of the trajectories (objects with similar movement patterns).

kint

Neighbourhood size.

epsfloat, optional

DBSCAN radius (default: 0.5 for "neighborhood", i.e. neighbours in at least half of the time steps; the 20 % quantile of the dissimilarities for "trajectory").

min_samplesint
windowint, optional

If given, the analysis is repeated in consecutive windows of this many time steps and labels_window_ holds the labels per window (the temporal evolution of the clusters).

Examples using mvtsa.clustering.TrajectoryClustering#

Objects that move together: trajectory clustering

Objects that move together: trajectory clustering