opart_poisson {opart} | R Documentation |
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)
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
sample_data <- rpois(100, 10.5) opart::opart_poisson(data=sample_data, penalty=1)