Skip to content

PeakSegOptimal

2024.10.1Package record

Optimal Segmentation Subject to Up-Down Constraints

0packages depend
3.1Kdownloads / year
79.9%test coverage
13/13flavors OK

Overview

About

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.

Changes in 2024.10.1
  • Rf_error in src/interface.cpp, thanks CRAN.

From NEWS in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2024.10.1
READMENoVignettesNoNEWSYes · 100% structured · mentions 2024.10.1Citation fileNo
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

3.1K
CRAN downloads in the past year
Rank #15,357 · ~9/day · ~261/mo
Daily download trend is not available in this view yet.
31830 days
80190 days
3.1K1 year
Compare downloads with other packages →
Also on356 r2u1 autocran24 c2d4u

Repository

6Stars
23Forks
0Open issues
2Open PRs
0Releases
272Commits
4Commit identities
272 commits · Last activity 2026-03-27
Responsiveness
How these are sampled
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

2020-12-26 · 62026-07-07 · 6
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Docs source (1)

GitHub Pages site last deployed 2017-08-11

How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 2.10
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 2017.06.20 (2017)
Listed in earlier versions (1)
Hocking
no longer listed · 2024.10.1
Releases (6)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2024.10.1Latest
    record
    2024-10-02 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2024.1.24
    record
    2024-01-24 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 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
  • R
    R 3.6.0 released · 2019-04-26
  • 2018.05.25
    record
    2018-05-25 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2017.07.12
    record
    2017-07-12 · diff ↗
  • 2017.07.11
    record
    2017-07-11 · diff ↗
  • 2017.06.20
    record
    2017-06-21
  • R
    R 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")
Hocking, T. D. (2024). PeakSegOptimal: Optimal Segmentation Subject to Up-Down Constraints (Version 2024.10.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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