Matching a target time series to other time series using dynamic time warping

1 Ansicht (letzte 30 Tage)
Hello,
I have one data matrix A of size = n by m , where n is the number of observations and m is the number of variables, (f.ex. 1000 by 20)
I also have a target time series x of size n by 1 (f.ex 1000 by 1)
I would like to use dynamic time warping to find a cluster in A that has the smallest distance to x relative to other variables in A.
Essentially, find the variables in A that are most similar to the target variable x.
How can I do this?
Kind regards
Knut
  2 Kommentare
Eamonn
Eamonn am 16 Feb. 2023
Are you sure you need DTW?
If Eucldean distance would work, the MASS is unbelievably fast (and easy) (matlab code here [a])
If you do need to use DTW, you probably need to set the warping window width , see https://www.cs.unm.edu/~mueen/DTW.pdf
[a] https://www.cs.unm.edu/~mueen/FastestSimilaritySearch.html

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Star Strider
Star Strider am 16 Feb. 2023
See if the Signal Processing Toolbox dtw function (introduced in R2016a), or related functions linked to in that page, will do what you want. (I have used findsignal, however not dtw, so I have no specific experience with it.)

Produkte


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by