To cite package ‘PeakSegOptimal’ in publications use:

Hocking TD (2026). PeakSegOptimal: Optimal Segmentation Subject to Up-Down Constraints. R package version 2024.10.1, https://github.com/tdhock/peaksegoptimal.

Corresponding BibTeX entry:

  @Manual{,
    title = {PeakSegOptimal: Optimal Segmentation Subject to Up-Down
      Constraints},
    author = {Toby Dylan Hocking},
    year = {2026},
    note = {R package version 2024.10.1},
    url = {https://github.com/tdhock/peaksegoptimal},
  }