changing the reference sequence in DTW
Hello everyone, I wanted to use Dynamic Time Warping to align one sequence with respect to the reference one (the time series are stretched or compressed). But, when using the command “dtw” in MATLAB, after finding the optimal path, both time series are stretched. Let me give you an example: the reference is x1 = [1 1 1 2 2 4 4 2 1 1 ], with 10 points (length=10), and the other sequence is x2 = [1 2 2 3 3 2 2 1 1], with 9 points. In addition, the warping path has 11 points, therefore, when MATLAB plot the aligning data show me two plots (in one figure) with 11 points.
But, I don’t want my reference signal to stretch. I would really appreciate it if you help me to align x2 with respect to the reference signal without changing the reference signal. It is worth to note that as the procedure of DTW shows, the boundaries of warping path is “max(length(x1) and length(x2))
Sunt et voluptatum et enim et voluptas. Commodi accusamus sint adipisci mollitia sequi consequatur id. Ut praesentium omnis qui quam. Cum dolor sint consequatur inventore. Et sed sint nobis harum autem cumque. Est ut non est quam.
Et veniam facere qui ut provident odio expedita. Molestiae quo cupiditate et blanditiis similique dolores quia in. Ad velit est voluptatem tempore repudiandae exercitationem pariatur voluptate. Aperiam voluptatem alias modi cumque illo consequatur. Odio maxime tenetur delectus ea voluptatem vel.
See All Comments - 100% Free
WSO depends on everyone being able to pitch in when they know something. Unlock with your email and get bonus: 6 financial modeling lessons free ($199 value)
or Unlock with your social account...