Hello all.
I just discovered the joys of the dtw function in Matlab. However, the intial results leave a bit to be desired. I'll explain my problem:
I am trying to match sequential data to reference data. The sequential data S with reference data R
S=[S1,S2,S3,...
R=[R1,R2,R3,...
I want to carry out a dynamic time warping such that I obtain two new vectors, the matched j-index for S (WS) and an uncertainty (U) measured in "number of elements to the left and to the right of the match" that would have been good matches too.
Example:
WS=[2,3,5,5,6,6,7,8,10,12]
U=[0,1,2,1,2,2,1,0,1,2]
I need the warping to obey certain rules
- S1 is not necessarily matched with R1
- WS is either always growing or some of the elements repeat
- The resulting warping of S can be described by a sigmoidal curve (that is, fitting a sigmoid to the scatter data (WS,S) will have a relatively high r-squared)
How can I impose these conditions to the dtw function?