Parametric Time Warping
Overview
Parametric Time Warping aligns patterns, i.e., it aims to put corresponding features at the same locations. The algorithm searches for an optimal polynomial describing the warping. It is possible to align one sample to a reference, several samples to the same reference, or several samples to several references. One can choose between calculating individual warpings, or one global warping for a set of samples and one reference. Two optimization criteria are implemented: RMS (Root Mean Square error) and WCC (Weighted Cross Correlation). Both warping of peak profiles and of peak lists are supported. A vignette for the latter is contained in the inst/doc directory of the source package - the vignette source can be found on the package github site. See `citation("ptw")` for more details.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 22 (1 internal)includes a package overview page
- Examples that run
- 90%18 run in a plain check · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 92%
- Return-value docs
- 94%
- Help pages citing references
- 73%
Also includes 3 demo scripts (run with demo())
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/rwehrens/ptw on 2026-10-21.
Dependencies
Installing ptw adds 3 packages (3 with compiled code, 3.1 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB, RcppDE 284 KB.
Code & Tests
Datasets
People & History
Previously maintained by Tom Bloemberg (1.0-0 to 1.0-7).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.9-17Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.9-162022-01-19 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.9-152019-11-26 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.9-132018-05-26 · diff ↗
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 1.9-122017-03-06 · diff ↗
- RR 3.3.0 released · 2016-05-03
Show 19 earlier eventsHide 19 earlier events
- 1.9-112015-08-21 · diff ↗
- 1.9-102015-07-01 · diff ↗ ·
removed 1 export
pattern:.added 21 exports
ptw, baseline.corr, bestref, coda, padzeros, ptwgrid, select.traces, stptw, whit1, whit2, calc.multicoef, calc.zerocoef, difsm, wcc, wac, wcc.st, wac.st, asysm, warp.time, pktab2mzchannel, mzchannel2pktab - RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 1.0-72014-03-30 · diff ↗
- 1.0-62013-11-19 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 1.0-52013-01-09 · diff ↗
- 1.0-42012-08-08 · diff ↗
- 1.0-32012-07-26 · diff ↗
- 1.0-2
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- 1.0-12010-11-17 · diff ↗
- RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- 1.0-02009-10-27
- RR 2.10.0 released · 2009-10-26
Package metadata
- First published
- 2009-10-27
- Total releases
- 15 / 17 yrs
- License
- GPL (>= 2) OSI
- Bundled data
- 2.5 MB / 3 files
- Download size
- 4.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ptw")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.