trajminer.similarity.EDR

class trajminer.similarity.EDR(dist_functions, thresholds)

Edit Distance on Real sequence.

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.

Chen, L., Özsu, M. T., & Oria, V. (2005, June). Robust and fast similarity search for moving object trajectories. In Proceedings of the 2005 ACM SIGMOD international conference on Management of data (pp. 491-502). ACM.

__init__(dist_functions, thresholds)

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).