Closed NAThompson closed 8 months ago
Hello @NAThompson,
Thanks a lot for your issue.
Indeed, LCSS is a similarity measure and we have for all x
, lcss(x, x) = 1
.
Therefore there is no bug in the code, but there is an error in the documentation of the function LCSS.
I have fixed the errors of the documentation in PR https://github.com/tslearn-team/tslearn/pull/513.
Describe the bug
In the documentation of LCSS, it says that the pseudo-metric obeys the property ∀x LCSS(x, x) = 0.
However, I have found an x such that LCSS(x, x) = 1.0. In addition, I have built a family of randomly perturbed waveforms such that they all have the same score.
To Reproduce
The output is:
Expected behavior
I expect a randomly perturbed family of waveforms to all have different scores, and the property LCSS(x,x) = 0 to hold.
Environment (please complete the following information):