**2. Dynamic time warping**

Dynamic Time warping (DTW) is a flexible, deterministic pattern matching method for comparing two dynamic patterns that may not perfectly aligned and are characterized by similar, but locally transformed, compressed and expanded, so that similar features within (Kassidas et al.,1998) the two patterns are matched. The problem can be discussed from two general trajectories, *R* and *T*.
