Giorgino, T. “Computing and Visualizing Dynamic Time Warping Alignments in R: The Dtw Package”. Journal of Statistical Software, vol. 31, no. 7, Aug. 2009, pp. 1-24, doi:10.18637/jss.v031.i07.