mvtsa.pairwise_distances#
- mvtsa.pairwise_distances(X, Y=None, metric='dtw', n_jobs=None, **kwargs)[source]#
Distance matrix of a collection (or between two collections).
- Parameters:
- X, Y
collections - metric
name,callable()f(x, y, **kwargs),oranobjectwitha pairwisemethod (e.g. a fittedCBDTW).- n_jobs
int,optional Parallel workers (joblib) for the rows.
- X, Y
Examples
>>> C = [np.sin(np.linspace(0, 3, 30)), np.sin(np.linspace(0.2, 3.2, 35))] >>> pairwise_distances(C, metric="dtw").shape (2, 2)
Examples using mvtsa.pairwise_distances#
A family of elastic measures on Cylinder–Bell–Funnel
A family of elastic measures on Cylinder--Bell--Funnel
When the information is in the correlation structure
When the information is in the correlation structure
Real data: Japanese vowels and Riemannian local distances
Real data: Japanese vowels and Riemannian local distances