Description Usage Arguments Value Details See Also
This function allows to obtain segment start, end, and parameter estimation (mean, etc. depending on the selected distribution) for the selected number of segments. Can compute segment data for several models at the same time. Note that the models_summary produced by rcpp_binseg is used here in order to comopute several models without doing the changepoint analysis again.
1 2 |
object |
A valid BinSeg object |
segments |
The number of segments to use. Must be a numeric value. If you provide only one segment, it must be accompanied by L (eg. 1L). Otherwise, if you want information about several models (ie. several number of changepoints / segments), provide a vector. |
A data.table with the following fixed columns: #'
This identifies a specific model by the number of segments. For the model with five segments, each of the five rows will have a value of 5 in this column.
The starting index of a segment relative to the input data vector number of data points. It is unique for a partiuclar model (i.e. no two segments can start on the same index
The ending index of a segment
Additionally, columns for each estimated parameter are added. However, this depends on the selected distribution. For
example, if the distribution is meanvar_norm
, then two columns will be added, one for segment mean and another
one for segment variance.
Depending on wheter you want information about a single model or several models, you can provide different values to the segments parameter:
This means that only the model with the specified number of segments will be computed. Therefore, all the values in the segments column will be the same.
In this case, several models will be computed at the same time. The indicated models will be differentiated by their segments value.
rcpp_binseg for the function that creates the models_summary matrix used in this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.