distantia
2.0.3Advanced Toolset for Efficient Time Series Dissimilarity Analysis
Overview
Fast C++ implementation of Dynamic Time Warping for time series dissimilarity analysis, with applications in environmental monitoring and sensor data analysis, climate science, signal processing and pattern recognition, and financial data analysis. Built upon the ideas presented in Benito and Birks (2020) doi:10.1111/ecog.04895, provides tools for analyzing time series of varying lengths and structures, including irregular multivariate time series. Key features include individual variable contribution analysis, restricted permutation tests for statistical significance, and imputation of missing data via GAMs. Additionally, the package provides an ample set of tools to prepare and manage time series data.
Install
Health
- OK2026-05-0213 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-04-2213 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1812 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1013 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 1%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/blasbenito/distantia on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 27 max
- Test cases
- 69 / 0.12 per code line
Test coverage
Line coverage
72%
Expression
68.5%
Tests / Examples
72.3% / – ex
Functions
273 177 exported
Complexity
4.3 avg / 27 max
Call network
273 nodes / 382 edges
Call graph
Open call graph →Lowest coverage
273 functions| Function | Cyclo | Coverage |
|---|---|---|
| color_continuous exp | 1 | 0% |
| color_discrete exp | 13 | 0% |
| distantia_boxplot exp | 2 | 0% |
| distantia_dtw_plot exp | 7 | 0% |
| f_list exp | 1 | 0% |
| momentum_boxplot exp | 2 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| cities_temperature | data.frame | 8,420 × 3 | – |
| covid_prevalence | data.frame | 7,092 × 3 | – |
| distances | data.frame | 12 × 5 | – |
| eemian_pollen | data.frame | 376 × 24 | – |
| fagus_dynamics | data.frame | 648 × 5 | – |
| honeycomb_climate | tbl_df/tbl/data.frame | 9,432 × 4 | – |
People & History
7 releases. Pick two to compare their code metrics. R releases are shown for context.
- 2.0.3Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.0.22025-02-01 · diff ↗
- 2.0.12025-01-23 · diff ↗
- 2.0.02025-01-09 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.0.22019-10-29 · diff ↗
- 1.0.12019-08-06 · diff ↗
- 1.0.02019-07-04
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-07-04
- Total releases
- 7 / 7 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 608 KB / 12 files
- Download size
- 837 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet