mvtsa.clustering.TrajectoryClustering#
- class mvtsa.clustering.TrajectoryClustering(method='neighborhood', k=5, eps=None, min_samples=3, window=None)[source]#
Bases:
_ClusterMixinClustering 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).- k
int Neighbourhood size.
- eps
float,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_samples
int - window
int,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).