Closed hazzehh closed 6 years ago
This toolbox uses quadratic differences instead of absolute. Thus (a-b)**2 instead of abs(a-b).
@wannesm Ahh, of course. Is there any particular reason reason why?
It’s often used because it prefers many small deviations over a few large ones, which would add up to the same amount when using the difference (but abs(a-b) is faster). It appears also to be the most popular one in papers. See for example the extensive work by Eamonn Keogh, http://www.cs.ucr.edu/%7Eeamonn/AAAI_2011_keogh.pdf and http://www.cs.unm.edu/~mueen/DTW.pdf .
I was just comparing results with other dynamic time warping libraries and noticed significant differences in the dtw distances, despite similar paths. Am I missing something or is there an error somewhere in your distance calculation?
dist1
anddist2
are vastly different in my examples.