Skip to content

Derivative DTW (DDTW)

Source: src/ddtw.rs

Internal Functions

These are internal Rust functions not directly callable from Python.

compute_derivative

Compute the derivative of a time series using the method from Keogh & Pazzani (2001).

dtw_distance

DTW distance using O(m) memory (two-row approach).

ddtw_distance

DDTW distance: derivative of each series, then DTW on derivatives.