Matching a target time series to other time series using dynamic time warping
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Eamonn
2023 年 2 月 16 日
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
回答 (1 件)
Star Strider
2023 年 2 月 16 日
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.)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!