Description Usage Arguments Value Examples
View source: R/opart_poission.R
compute the optimal changepoint model for a vector of real-valued data and a non-negative real-valued penalty, given the poisson loss (to minimize) / log likelihood (to maximize)
1 | opart_poisson(data, penalty)
|
data |
A list of numbers for which the changepoint model is to be computed |
penalty |
A non-negative real number indicating penalty parameter |
An error status code with a pointer to the optimal cost values and a pointer to the optimal segment ends
1 2 | sample_data <- rpois(100, 10.5)
opart::opart_poisson(data=sample_data, penalty=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.