trajminer.similarity.MUITAS

class trajminer.similarity.MUITAS(dist_functions, thresholds, features, weights)

Multiple-Aspect Trajectory 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.

featureslist or array-like

The groups of features (indices) to be considered for computing similarity (a list of arrays/lists). For each group, if at least one feature does not match, no score is assigned to the whole group of features.

weightsarray-like, shape (n_groups)

Specifies the weight (importance) of each feature group.

Petry, L. M., Ferrero, C. A., Alvares, L. O., Renso, C., & Bogorny, V. (2019). Towards Semantic-Aware Multiple-Aspect Trajectory Similarity Measuring. Transactions in GIS (accepted), XX(X), XXX-XXX.

__init__(dist_functions, thresholds, features, 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).