Distance Measures for Time Series in R: The TSdist Package

The definition of a distance measure between time series is crucial for many time series data mining tasks, such as clustering and classification. For this reason, a vast portfolio of time series distance measures has been published in the past few years. In this paper, the TSdist package is presented, a complete tool which provides a unified framework to calculate the largest variety of time series dissimilarity measures available in R at the moment, to the best of our knowledge. The package implements some popular distance measures which were not previously available in R, and moreover, it also provides wrappers for measures already included in other R packages. Additionally, the application of these distance measures to clustering and classification tasks is also supported in TSdist, directly enabling the evaluation and comparison of their performance within these two frameworks.

Usue Mori , Alexander Mendiburu , Jose A. Lozano
2016-09-09

CRAN packages used

TSdist, dtw, pdc, proxy, longitudinalData, TSclust, zoo, xts

CRAN Task Views implied by cited packages

TimeSeries, Econometrics, Finance, Environmetrics, Multivariate, SpatioTemporal

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Mori, et al., "Distance Measures for Time Series in R: The TSdist Package", The R Journal, 2016

BibTeX citation

@article{RJ-2016-058,
  author = {Mori, Usue and Mendiburu, Alexander and Lozano, Jose A.},
  title = {Distance Measures for Time Series in R: The TSdist Package},
  journal = {The R Journal},
  year = {2016},
  note = {https://doi.org/10.32614/RJ-2016-058},
  doi = {10.32614/RJ-2016-058},
  volume = {8},
  issue = {2},
  issn = {2073-4859},
  pages = {451-459}
}