Distances#

Distances between whole time series and distance matrices of collections.

Lock-step measures (Euclidean, Manhattan, Chebyshev, correlation, cosine), PCA similarity factors of whole series (Krzanowski, eigenvalue-weighted, Eros) and every elastic measure of mvtsa.warping are available by name through get_distance(); pairwise_distances() builds the distance matrix of a collection (in parallel if n_jobs is set), which is the input of the distance-based clustering, retrieval and evaluation functions of the package.

The distance registry and pairwise distance matrices of collections.

Functions#

euclidean(x, y)

manhattan(x, y)

chebyshev(x, y)

correlation_distance(x, y)

\(1-r\) of the flattened (multivariate) series.

cosine_distance(x, y)

pca_distance(x, y[, n_components, kind])

\(1-s\) with a PCA similarity factor of the two whole series (no time alignment; series may have different lengths).

get_distance(metric)

Distance function from a name (see DISTANCES) or a callable.

pairwise_distances(X[, Y, metric, n_jobs])

Distance matrix of a collection (or between two collections).

is_elastic(metric)

Whether a named metric accepts series of different lengths.

Constants#