cdtw.dtw.dtw_dist¶
- cdtw.dtw.dtw_dist(x, y)[source]¶
Computes the DTW distance between
x
andy
aligned in time, using dynamic programming. It’s equivalent but more efficient to callingdtw_mat(x, y)[-1, -1]
.- Parameters:
- x, ynp.ndarray
Input time series, 1-d arrays of arbitrary length.
- Returns:
- distfloat
The distance between
x
andy
.