cdtw.dtw.dtw_dist

cdtw.dtw.dtw_dist(x, y)[source]

Computes the DTW distance between x and y aligned in time, using dynamic programming. It’s equivalent but more efficient to calling dtw_mat(x, y)[-1, -1].

Parameters
x, ynp.ndarray

Input time series, 1-d arrays of arbitrary length.

Returns
distfloat

The distance between x and y.