trajminer.similarity.MSM

class trajminer.similarity.MSM(dist_functions, thresholds, weights)

Multidimensional Similarity Measure.

dist_functionsarray-like, shape (n_features)

Specifies the distance functions used for each trajectory attribute.

thresholdsarray-like, shape (n_features)

Specifies the thresholds used for each trajectory attribute.

weightsarray-like, shape (n_features)

Specifies the weight (importance) of each trajectory attribute.

Furtado, A. S., Kopanaki, D., Alvares, L. O., & Bogorny, V. (2016). Multidimensional similarity measuring for semantic trajectories. Transactions in GIS, 20(2), 280-298.

__init__(dist_functions, thresholds, weights)

Initialize self. See help(type(self)) for accurate signature.

similarity(t1, t2)

Computes the similarity score of the given trajectories.

t1array-like, shape (n_points, n_features)

Input trajectory.

t2array-like, shape (n_points, n_features)

Input trajectory.

scorefloat

Similarity score (between 0 and 1).