Skip to content

Distance functions #543

Answered by seanlaw
hugo-pires asked this question in Q&A
Feb 9, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

@hugo-pires Thank you for your question and welcome to the STUMPY community? Can you please elaborate on what "other distances" you are interested in using?

Natively, STUMPY supports z-normalized Euclidean distance and, when you set normalize=False, this changes it to "non-normalized Euclidean distance". The reason why this is fast is because there is special relationship between each distance along the pairwise distance matrix (i.e., D[i, j]) and its nearest diagonal neighbor (i.e., D[i-1, j-1]). Please see Section IV A of this Matrix Profile II paper for more information.

Now, regarding your question about whether or not other distances "make any sense", that really depends on your obje…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hugo-pires
Comment options

@seanlaw
Comment options

Answer selected by hugo-pires
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #542 on February 09, 2022 12:45.