简体   繁体   English

如何在MATLAB中对齐两个数据集以进行交叉验证?

[英]How to align two datasets for cross validation in MATLAB?

I have two data sets about coordinates of the same movement saved by two different tracking systems. 我有两个有关由两个不同的跟踪系统保存的相同运动的坐标的数据集。 As can be seen from the two plots, they are similar however they are not aligned because of different frame rate and processing speed. 从这两个图可以看出,它们是相似的,但是由于帧速率和处理速度不同,它们没有对齐。 Is there a way in MATLAB to align or resample those two data sets for cross validation? MATLAB中是否可以对齐或重新采样这两个数据集以进行交叉验证?

在此处输入图片说明

You might want to look into Dynamic Time Warping, as a way of aligning two similar sequences that are out of phase and/or different frequencies: 您可能需要研究动态时间规整,以将两个相似的异相和/或不同频率的序列对齐:

http://www.mathworks.com/matlabcentral/fileexchange/43156-dynamic-time-warping--dtw- http://www.mathworks.com/matlabcentral/fileexchange/43156-dynamic-time-warping--dtw-

Here's the Wikeipedia article on it: 这是关于它的Wikeipedia文章:

http://en.wikipedia.org/wiki/Dynamic_time_warping http://en.wikipedia.org/wiki/Dynamic_time_warping

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM