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

Description Usage Arguments Value Examples

View source: R/opart_gaussian.R

Description

compute the optimal changepoint model for a vector of real-valued data and a non-negative real-valued penalty, given the square loss (to minimize) / gaussian likelihood (to maximize)

Usage

1
opart_gaussian(data, penalty)

Arguments

data

A numerical vector for which the changepoint model is to be computed

penalty

A non-negative real number indicating penalty parameter

Value

A vector of the optimal cost values and a vector of the optimal segment ends

Examples

1
2
3
data(neuroblastoma, package="neuroblastoma")
selectedData <- subset(neuroblastoma$profiles, profile.id=="1" & chromosome=="1")
opart::opart_gaussian(data=selectedData$logratio, penalty=1)

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

Related to opart_gaussian in opart...