Description Usage Arguments Value
This function returns the overall cost for each one of the models. When you perform a BinSegModel, the models up to the sepcified number of changepoints are computed. This functions returns the cost of each one of them. The first value is the cost of the model without segmentation (remember the first changepoint is the last datapoint). Then, it tells the overall cost with each addition of a segment.
1 2 |
object |
A valid BinSeg object. |
ncpts |
The number of changepoints to return (from 1 up to the number of changepoints indicated in BinSegModel). |
A numeric matrix with the overall cost at each number of changepoints
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.