Description Usage Arguments Value Examples
View source: R/opart_gaussian.R
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)
1 | 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
1 2 3 | data(neuroblastoma, package="neuroblastoma")
selectedData <- subset(neuroblastoma$profiles, profile.id=="1" & chromosome=="1")
opart::opart_gaussian(data=selectedData$logratio, penalty=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.