local.derivative.ddtw function

Local derivative estimate to compute DDTW