opart_gaussian {opart} | R Documentation |
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)
opart_gaussian(data, penalty)
data |
A numerical vector for which the changepoint model is to be computed |
penalty |
A non-negative real number indicating penalty parameter |
A vector of the optimal cost values and a vector of the optimal segment ends
data(neuroblastoma, package="neuroblastoma") selectedData <- subset(neuroblastoma$profiles, profile.id=="1" & chromosome=="1") opart::opart_gaussian(data=selectedData$logratio, penalty=1)