trajminer.similarity.pairwise_similarity

trajminer.similarity.pairwise_similarity(X, Y=None, measure=None, n_jobs=1)

Computes the similarity between trajectories in X and Y.

Xarray-like, shape: (n_trajectories_X, n_points, n_features)

Input data.

Yarray-like, shape: (n_trajectories_Y, n_points, n_features)

Input data. If None, the output will be the pairwise similarities between all samples in X.

measureSimilarityMeasure object (default=None)

The similarity measure to use for computing similarities. See trajminer.similarity.

n_jobsint (default=1)

The number of parallel jobs.

similaritiesarray

An array with shape (n_trajectories_X, n_trajectories_Y).