Skip to content

tsmp

0.5.1

Time Series with Matrix Profile

1packages depend
4.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

A toolkit implementing the Matrix Profile concept that was created by CS-UCR http://www.cs.ucr.edu/~eamonn/MatrixProfile.html.

Changes in 0.5.1
  • Renamed JSON serialization functions to write_json() and read_json() to avoid masking base::write(). JSON round trips now preserve profile vectors and the origin and partial attributes.
  • Multivariate STOMP (mstomp() and mstomp_par()): Delegated computation to the high-performance native C++ engine in matrixprofiler::mstomp(), providing massive speedups (~200x) and native multi-threading while removing legacy dependencies on doSNOW and foreach.
  • Added mode = "mpx" to tsmp() as a first-class citizen algorithm delegating to matrixprofiler::mpx().
  • Unified API refactoring: compute() now delegates internally to tsmp(mode = "mpx") and pmp(), preserving 100% compatibility with Matrix Profile Foundation unified API (Python/Go) and standard MatrixProfile / PMP S3 classes.
Show all changes in 0.5.1Hide the rest of the changes in 0.5.1
  • High-performance MPdist: mpdist() now delegates to native C++ engine in matrixprofiler::mpdist(), delivering major speedups and lower memory footprint to mpdist() and find_snippet().
  • Vectorized fluss_cac() using tabulate(), eliminating slow $O(N)$ R loops.
  • Added n_workers parameter to find_snippet(), enabling multithreaded MPdist computation.
  • Fixed zero-padding bug in find_snippet() when time series length is an exact multiple of snippet size.
  • Enhanced dist_profile(), compute(), find_snippet() and pmp() with hardened multi-worker validation against detectCores() == NA.
  • Replaced internal ::: calls in dist_profile.R with public API calls to matrixprofiler::mass().
  • Added na_strategy = c("monolithic", "segmented", "segmented_native") to tsmp() with end-to-end missing value protection for discords and motifs.
  • PAA (paa() and ipaa()) implemented and maintained in pure R.
  • Removed audio dependency and audio completion signals.
  • Switched to pure R implementation (NeedsCompilation: no) delegating heavy computations to matrixprofiler.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.5.1
READMEYes · 645 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.5.1Citation fileNo
Help pages
58 (2 internal)includes a package overview page
Examples that run
98%43 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
88%
Documented parameters
99%
Return-value docs
90%
Help pages citing references
67%

Downloads

4.1K
CRAN downloads in the past year
Rank #8,259 · ~11/day · ~345/mo
Daily download trend is not available in this view yet.
43830 days
1.1K90 days
4.1K1 year
Compare downloads with other packages →
Also on499 r2u5 autocran

Repository

76Stars
19Forks
20Open issues
1Open PRs
13Releases
327Commits
4Commit identities
r-packagematrix-profiletime-seriesrmotif-searchalgorithm
License file reads as GPL-3.0 · 327 commits · Last activity 2026-10-16 · 0% stars, 30d · Discussions: 2 posts
Responsiveness
How these are sampled
PRs merged (all time)
15%
Median days to close, 50 most recently updated closed issues
24
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-03-24 · 742026-07-07 · 76
PracticesBeta

19 development-tooling and community-health practices detected across 8 families in the upstream repository

Checks run against github.com/matrix-profile-foundation/tsmp on 2026-10-11.

Continuous integration (2)
GitHub ActionsAppVeyor
Governance and community (4)
Code of conductContributing guideIssue templatesSupport guide
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2022-08-18

Coverage (2)
Coverage reporting (Codecov).covrignore
Show all practicesHide 4 practices
Reproducibility and dev environment (2)
renvDev Container
CRAN release process (3)
cran-comments.mdrevdep/CRAN-SUBMISSION
Research and citation (1)
codemeta.json
Lint, format, editor (2)
lintrRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing tsmp adds 7 packages (7 with compiled code, 3.1 MB of source tarballs). Heaviest: Rcpp 1.8 MB, matrixprofiler 360 KB, RcppThread 308 KB.

Depends (1)
R >= 4.0
Imports (8)
checkmategluegraphicsgrDevicesmagrittrmatrixprofilerstatsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (6)
Author, Maintainer since 0.2.12 (2018)
res, ccp, Contributor · added in 0.3.1
res, ccp, Contributor · added in 0.3.5
res, ccp, Contributor · added in 0.3.1
res, ccp, Contributor
res, ccp, Contributor · added in 0.3.1
Releases (11)

Pick two releases to compare their code metrics.

  • 0.5.1Latest
    record
    2026-10-16 · current release · diff ↗ ·
    removed 14 exports
    fast_avg_sd, fast_movavg, fast_movsd, mass, mass_pre, mass_v3, mpx, read, scrimp, stamp, stamp_par, stomp, stomp_par, write
    added 6 exports
    as_ts_data, convert_data, ipaa, paa, read_json, write_json
  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.16
    record
    2025-12-04 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.4.15
    record
    2022-08-21 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • unarchivedReturned to CRAN
    2020-04-06
  • 0.4.14
    record
    2020-04-06 · diff ↗
  • archivedRemoved from CRAN
    2020-03-30
    check problems were not corrected in time clang-UBSAN issues
  • 0.4.11
    record
    2020-03-15 · diff ↗
  • 0.4.8
    record
    2020-02-28 · diff ↗ ·
    added 15 exports
    analyze, as.pmp, compute, discords, fast_avg_sd, find_snippet, mass_v3, motifs, mpdist, mpx, pmp, pmp_upper_bound, read, visualize, write
  • 0.3.5
    record
    2019-06-06 · diff ↗ ·
    added 7 exports
    dist_profile, floss, floss_cac, floss_extract, min_mp_idx, remove_class, stompi_update
Show 6 earlier eventsHide 6 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.4
    record
    2019-02-24 · diff ↗ ·
    added 4 exports
    as.discord, as.valmod, find_discord, valmod
  • 0.3.2
    record
    2018-10-24 · diff ↗ ·
    added 6 exports
    %>%, %T>%, get_data, salient_mds, salient_score, set_data
  • 0.3.1
    record
    2018-09-10 · diff ↗ ·
    removed 10 exports
    fast.movavg, fast.movsd, guide.search, mass.pre, mstomp.par, sdts.f.score, sdts.predict, sdts.train, stamp.par, unconstrain.search
    added 35 exports
    as.arccount, as.chain, as.fluss, as.matrixprofile, as.motif, as.multimatrixprofile, as.multimotif, as.salient, av_apply, av_complexity, av_hardlimit_artifact, av_motion_artifact, av_stop_word, av_zerocrossing, fast_movavg, fast_movsd, find_chains, find_motif, fluss, fluss_cac, fluss_extract, fluss_score, mass_pre, mstomp_par, plot_arcs, salient_subsequences, scrimp, sdts_predict, sdts_score, sdts_train and 5 more
  • 0.2.12
    record
    2018-08-17
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2018-08-17
Total releases
11 / 8 yrs
License
GPL-3 OSI · relicensed from Apache License (>= 2.0) in 0.5.1
Minimum R
≥ 4.0
Bundled data
3.9 MB / 7 files
Download size
4.6 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("tsmp")
Bischoff, F., Dau, H., Linardi, M., Silva, D., Yeh, M., & Zhu, Y. (2026). tsmp: Time Series with Matrix Profile (Version 0.5.1) [Computer software]. https://doi.org/10.32614/CRAN.package.tsmp

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tsmp version 0.5.1 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy