pollen-robotics / dtw

DTW (Dynamic Time Warping) python module
GNU General Public License v3.0
1.16k stars 233 forks source link

fix bugs in dtw function #30

Closed mutex86 closed 5 years ago

mutex86 commented 5 years ago

compare result with fastdtw(https://github.com/slaypni/fastdtw):

from scipy.spatial.distance import euclidean from fastdtw import dtw

x = np.array([[1,1], [2,2], [3,3], [4,4], [5,5]]) y = np.array([[2,2], [3,3], [4,4]]) distance, path = dtw(x, y, dist=euclidean)

The function _accelerateddtw may have same problem.

pierre-rouanet commented 5 years ago

Thx!