Replies: 1 comment
-
@ssahaxd Welcome to the STUMPY community and thank you for your question. Generally speaking, since there is a computational speed-up trick (traversing diagonals) being utilized to calculate z-normalized Euclidean distances super quickly, it is not possible to measure other custom distances (at least, not easily). However, correlation is a special case because there is a direct correspondence between z-normalized Euclidean distance and correlation (see Section 3): Where Thus, you can take the output of STUMPY and convert it to correlation:
And this should be equivalent to computing the correlation coefficients directly with NumPy:
To summarize, the z-normalized Euclidean distance is a special case of correlation (note that this relationship does NOT hold if you use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use some other measures of distance instead of the euclidian distance for calculating the distance profile?
Before I knew stumpy, I used the correlation coefficient as the metric to find similarities between the pattern and the time series.
Beta Was this translation helpful? Give feedback.
All reactions