View source: R/segment_manual.R
segment_manual | R Documentation |
Segment a time series by manually inputting the changepoint set
segment_manual(x, tau, ...)
x |
A time series |
tau |
a set of indices representing a changepoint set |
... |
arguments passed to seg_cpt |
Sometimes you want to see how a manually input set of changepoints performs.
This function takes a time series and a changepoint detection set as inputs
and returns a seg_cpt object representing the segmenter.
Note that by default fit_meanshift_norm()
is used to fit the model and
BIC()
is used as the penalized objective function.
A seg_cpt object
# Segment a time series manually
segment_manual(CET, tau = c(84, 330))
segment_manual(CET, tau = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.