Closed CNelias closed 1 year ago
Please see https://dynamictimewarping.github.io/faq/#why-do-changes-in-distmethod-appear-to-have-no-effect . Your timeseries are single-variate. The distance method is almost irrelevant.
To be totally clear, your code is equivalent to:
s1m=np.atleast_2d(s1).T # A 100x1 matrix
s2m=np.atleast_2d(s2).T
L = scipy.spatial.distance.cdist(s1m,s2m,"jensenshannon")
d = dtw(L)
If you inspect the matrix L, it's probably not what you want.
https://colab.research.google.com/drive/1hrwcClmGRiW_PKWO4z2ENP_chNP-vT3Q?usp=sharing
Oh I see. So it's not equivalent to matlab 'symkl' function then... Thanks for clarifying that.
I'm not familiar with symkl, nor i find documentation, so I can't comment.
Describe the bug A simple test with two different sinusoidal signals of different frequency and amplitude returns a distance of 0. Actually it always returns a distance of 0.
To Reproduce
Version latest