Attached is test code that calculates the DTW score between two signals. Each signal needs to be an ArrayList of arrays, where the array is a length 3 array of doubles. Said another way, each sample (double integrated) x,y,z gets put into an array of length 3 and then added to an ArrayList. The code looks ugly from the test arrays I loaded. Those two signals are Jin's first two exercise #1 examples. My code produces exactly the same output as MATLAB.
All you should need to do is rip out the pathcompare class.
This code doesn't double integrate. I'm working on that now, but in the spirit of releasing often...
Code
Tuesday, April 13, 2010
Subscribe to:
Post Comments (Atom)
This comment has been removed by the author.
ReplyDeleteHello,
ReplyDeleteI want to use your DTW function on my program, but i still dont understand why do you use the function "cumtrapz".
What is it supposed to do, and why do you use it?
Thank you
Hello,what i want to konw is the functionality of functioin 'cumtrapz'? Thanks!!
ReplyDelete