ClassifyMvt Code initially written by Adrien Jouary, see https://doi.org/10.1101/052324 to use, compile cdtw_dist.c in matlab to get the relevant mex files