Package: cpop
Type: Package
Title: Detection of Multiple Changes in Slope in Univariate Time-Series
Version: 1.0.9
Date: 2026-05-29
Maintainer: Daniel Grose <dan.grose@lancaster.ac.uk>
Authors@R: c(person("Daniel", "Grose", role = c("aut", "cre"),email = "dan.grose@lancaster.ac.uk"),
             person("Paul", "Fearnhead", role = "aut",email = "p.fearnhead@lancaster.ac.uk"))
Description: Detects multiple changes in slope using the CPOP dynamic programming approach of Fearnhead, Maidstone, and Letchford (2019) <doi:10.1080/10618600.2018.1512868>. This method finds the best continuous piecewise linear fit to data under a criterion that measures fit to data using the residual sum of squares, but penalizes complexity based on an L0 penalty on changes in slope. Further information regarding the use of this package with detailed examples can be found in Fearnhead and Grose (2024) <doi:10.18637/jss.v109.i07>.  
License: GPL (>= 2)
Depends: R (>= 4.1.0),crops,pacman
Imports: Rdpack,Rcpp (>= 0.12.13), ggplot2,mathjaxr,pracma,methods
LinkingTo: Rcpp
Suggests: testthat
RdMacros: Rdpack,mathjaxr
Config/roxygen2/version: 8.0.0
NeedsCompilation: yes
Packaged: 2026-05-29 09:20:58 UTC; grosed
Author: Daniel Grose [aut, cre],
  Paul Fearnhead [aut]
Repository: CRAN
Date/Publication: 2026-05-29 11:30:15 UTC
Built: R 4.5.2; aarch64-apple-darwin20; 2026-05-29 16:11:43 UTC; unix
Archs: cpop.so.dSYM
