Optimal Segmentation Subject to Up-Down Constraints
Overview
Computes optimal changepoint models using the Poisson likelihood for non-negative count data, subject to the PeakSeg constraint: the first change must be up, second change down, third change up, etc. For more info about the models and algorithms, read "Constrained Dynamic Programming and Supervised Penalty Learning Algorithms for Peak Detection" https://jmlr.org/papers/v21/18-843.html by TD Hocking et al.
- Rf_error in src/interface.cpp, thanks CRAN.
From NEWS in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 9
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 86%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 80%
- Median days to close, 50 most recently updated closed issues
- 42
- Median days to close, 50 most recently updated closed PRs
- 4
Stars over time
Forks over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/tdhock/peaksegoptimal on 2026-10-21.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2017-08-11
Dependencies
Installing PeakSegOptimal adds 19 packages (9 with compiled code, 22 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, penaltyLearning 2.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2024.10.1Latest
- RR 4.4.0 released · 2024-04-24
- 2024.1.242024-01-24 · diff ↗
- 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
- RR 3.6.0 released · 2019-04-26
- 2018.05.252018-05-25 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 2017.07.122017-07-12 · diff ↗
- 2017.07.112017-07-11 · diff ↗
- 2017.06.202017-06-21
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-06-21
- Total releases
- 6 / 9 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 97 KB / 2 files
- Download size
- 127 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PeakSegOptimal")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.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.