How cran/chngpt works
chngpt is an R package for change-point modeling and inference, with R-facing model, test, simulation, and performance modules and a substantial C++ numerical backend. The tree suggests the user workflow begins with model fitting or a test and may continue to inference or simulation, but the README excerpt does not document these flows and the R sources were not sampled, so those connections are omitted. The graph preserves the visible C++ engine/helper relationship and groups the core numerical headers; unsampled R capabilities are represented without guessed wiring.
Main entry points: fastgrid_helper.h Search helper interface · matrix.h Matrix storage and views · ide.h Matrix solvers · la.h Linear algebra
Components 27
R interfaces
- Change-point models
R/chngptm.R - Hinge models
R/double.hinge.R
Inference and simulation
- Change-point tests
R/chngpt.test.R - Two-stage tests
R/chngpt.test.2.R - Hinge tests
R/hinge.test.R - Antoch test
R/antoch.test.R - Performance measures
R/performance.R - Model simulations
R/sim.chngpt.R - Hinge simulations
R/sim.hinge.R - Simulation utilities
R/simulations.R
C++ search engine
- Grid search routines
src/fastgrid2.cc - Search variants
src - Search helper interface
src/fastgrid_helper.h
Numerical foundations
- Matrix storage and views
src/matrix.h - Matrix iterators
src/matrix_random_access_iterator.h - Matrix data blocks
src/datablock.h - Matrix algorithms
src/algorithm.h - Linear algebra
src/la.h - Matrix solvers
src/ide.h - Probability distributions
src/distributions.h - Random variates
src/rng.h - Matrix statistics
src/stat.h - Scalar and matrix math
src/smath.h - LAPACK interface
src/lapack.h - Error handling
src/error.h - Core definitions
src/defs.h
Other components
- R package user
Connections 18
- Grid search routines → Search helper interface: uses declarations
src/fastgrid2.cc - Search variants → Search helper interface: uses declarations
src/M10.cc - Matrix storage and views → Matrix data blocks: uses storage
src/matrix.h - Matrix storage and views → Matrix iterators: uses iterators
src/matrix.h - Matrix algorithms → Matrix storage and views: operates on
src/algorithm.h - Linear algebra → Matrix storage and views: operates on
src/la.h - Matrix solvers → Matrix storage and views: operates on
src/ide.h - Search helper interface → Matrix storage and views: uses matrices
src/fastgrid_helper.h - Search helper interface → Probability distributions: uses distributions
src/fastgrid_helper.h - Search helper interface → Matrix statistics: uses statistics
src/fastgrid_helper.h - Search helper interface → Linear algebra: uses operations
src/fastgrid_helper.h - Search helper interface → Matrix solvers: uses solvers
src/fastgrid_helper.h - Search helper interface → Scalar and matrix math: uses functions
src/fastgrid_helper.h - Random variates → Probability distributions: uses distribution functions
src/rng.h - Matrix storage and views → Core definitions: uses definitions
src/matrix.h - Matrix storage and views → Error handling: uses checks
src/matrix.h - Linear algebra → Matrix solvers: uses solvers
src/la.h - Matrix solvers → LAPACK interface: calls routines
src/ide.h