Package: segmentr 0.2.0

Image

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.6)segmentr_0.2.0.zip(r-4.5)segmentr_0.2.0.zip(r-4.4)
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.6-arm64)segmentr_0.2.0.tar.gz(r-4.6-x86_64)segmentr_0.2.0.tar.gz(r-4.5-arm64)segmentr_0.2.0.tar.gz(r-4.5-x86_64)
segmentr_0.2.0.tgz(r-4.5-emscripten)
segmentr.pdf |segmentr.html
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 166 downloads 8 exports 5 dependencies

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

TargetResultTotal timeArtifact
linux-devel-arm64NOTE147
linux-devel-x86_64NOTE143
source / vignettesOK312
linux-release-arm64NOTE123
linux-release-x86_64NOTE135
macos-release-arm64NOTE152
macos-release-x86_64NOTE241
macos-oldrel-arm64NOTE152
macos-oldrel-x86_64NOTE260
windows-develNOTE142
windows-releaseNOTE134
windows-oldrelNOTE140
wasm-releaseOK105

Exports:auto_penalizecalculate_likelihoodexactalghieralghybridalgmultivariater_multivariatesegment

Dependencies:codetoolsforeachglueiteratorsRcpp

Segmenting data with Segmentr

Rendered fromsegmentr.Rmdusingknitr::rmarkdownon Nov 29 2025.

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

  • Image