Package: segmentr 0.2.0

Thales Mello

segmentr: Segment Data Minimizing a Cost Function

Given a cost function provided by the user, this package applies it to a given matrix dataset in order to find change points in the data that minimize the sum of the costs of all the segments. This package provides a handful of algorithms with different time complexities and assumption compromises so the user is able to choose the best one for the problem at hand. The implementation of the segmentation algorithms in this package are based on the paper by Bruno M. de Castro, Florencia Leonardi (2018) <arxiv:1501.01756>. The Berlin weather sample dataset was provided by Deutscher Wetterdienst <https://dwd.de/>. You can find all the references in the Acknowledgments section of this package's repository via the URL below.

Authors:Thales Mello [aut, cre, cph], Florencia Leonardi [aut, cph, ths], Bruno M. de Castro [cph], Deutscher Wetterdienst [cph]

segmentr_0.2.0.tar.gz
segmentr_0.2.0.zip(r-4.7)segmentr_0.2.0.zip(r-4.6)segmentr_0.2.0.zip(r-4.5)
segmentr_0.2.0.tgz(r-4.6-x86_64)segmentr_0.2.0.tgz(r-4.6-arm64)segmentr_0.2.0.tgz(r-4.5-x86_64)segmentr_0.2.0.tgz(r-4.5-arm64)
segmentr_0.2.0.tar.gz(r-4.7-arm64)segmentr_0.2.0.tar.gz(r-4.7-x86_64)segmentr_0.2.0.tar.gz(r-4.6-arm64)segmentr_0.2.0.tar.gz(r-4.6-x86_64)
segmentr_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
segmentr/json (API)
NEWS

# Install 'segmentr' in R:
install.packages('segmentr', repos = c('https://segmentr-package.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/thalesmello/segmentr/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • berlin - Daily temperatures from weather stations in Berlin

On CRAN:

Conda:

cpp

4.57 score 3 stars 25 scripts 160 downloads 8 exports 5 dependencies

Last updated from:a75c0affff. Checks:11 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE149
linux-devel-x86_64NOTE144
source / vignettesOK318
linux-release-arm64NOTE118
linux-release-x86_64NOTE132
macos-release-arm64NOTE155
macos-release-x86_64NOTE205
macos-oldrel-arm64NOTE158
macos-oldrel-x86_64NOTE422
windows-develNOTE114
windows-releaseNOTE137
windows-oldrelNOTE125
wasm-releaseOK102

Exports:auto_penalizecalculate_likelihoodexactalghieralghybridalgmultivariater_multivariatesegment

Dependencies:codetoolsforeachglueiteratorsRcpp

Segmenting data with Segmentr

Rendered fromsegmentr.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2019-08-28
Started: 2019-01-07