opart_poisson: compute the optimal changepoint model for a vector of...

Description Usage Arguments Value Examples

View source: R/opart_poission.R

Description

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)

Usage

1
opart_poisson(data, penalty)

Arguments

data

A list of numbers for which the changepoint model is to be computed

penalty

A non-negative real number indicating penalty parameter

Value

An error status code with a pointer to the optimal cost values and a pointer to the optimal segment ends

Examples

1
2
sample_data <- rpois(100, 10.5)
opart::opart_poisson(data=sample_data, penalty=1)

opart documentation built on Sept. 4, 2019, 5:03 p.m.

Related to opart_poisson in opart...