On the criterion of dynamic time warping for computing the dissimilarity between time series