powered by
Class for model-fitting functions
new_fun_cpt(x, ...)validate_fun_cpt(x)fun_cpt(x, ...)
validate_fun_cpt(x)
fun_cpt(x, ...)
A fun_cpt object.
a character giving the name of a model-fitting function
character
currently ignored
All model-fitting functions must be registered through a call to fun_cpt().
fun_cpt()
All model-fitting functions must take at least three arguments:
x: a time series,
x
tau: a set of changepoint indices
tau
...: other arguments passed to methods
...
See fit_meanshift_norm(),
fit_meanshift_norm()
Other model-fitting: fit_arima(), fit_lmshift(), fit_meanshift(), fit_meanvar(), fit_nhpp(), model_args(), model_name(), whomademe()
fit_arima()
fit_lmshift()
fit_meanshift()
fit_meanvar()
fit_nhpp()
model_args()
model_name()
whomademe()
# Register a model-fitting function f <- fun_cpt("fit_meanvar") # Verify that it now has class `fun_cpt` str(f) # Use it f(CET, 42)
Run the code above in your browser using DataLab