View source: R/class-mod_cpt.R
new_mod_cpt | R Documentation |
Create changepoint detection model objects
new_mod_cpt(
x = numeric(),
tau = integer(),
region_params = tibble::tibble(),
model_params = double(),
fitted_values = double(),
model_name = character(),
...
)
validate_mod_cpt(x)
mod_cpt(x, ...)
x |
a numeric vector coercible into a |
tau |
indices of the changepoint set |
region_params |
A |
model_params |
A numeric vector of parameters estimated by the model across the entire data set (not just in each region). |
fitted_values |
Fitted values returned by the model on the original data set. |
model_name |
A |
... |
currently ignored |
Changepoint detection models know how they were created, on what data set, about the optimal changepoint set found, and the parameters that were fit to the model. Methods for various generic reporting functions are provided.
All changepoint detection models inherit from mod_cpt: the
base class for changepoint detection models.
These models are created by one of the fit_*()
functions, or by
as.model()
.
A mod_cpt object
as.model()
cpt <- mod_cpt(CET)
str(cpt)
as.ts(cpt)
changepoints(cpt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.