ChangePointAnalyzeNormUnRes: ChangePointAnalyzeNormUnRes

Description Usage Examples

View source: R/RcppExports.R

Description

Supported C++ function used in function est.changepoints.

Usage

1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
n <- 5
data.x <- rnorm(n, 1, 1)
data.x <- c(data.x, rnorm(n, 10,1))
data.x <- c(data.x, rnorm(n, 2,1))
data.x <- c(data.x, rnorm(n, 10,1))
data.x <- c(data.x, rnorm(n, 1,1))
data.t <- 1:(5*n)

prior <- prior.norm.A(data.x)

ChangePointAnalyzeNormUnRes(data.x, n, prior)

Example output

          [,1]      [,2]      [,3]      [,4]     [,5]
[1,] -2.714117 -4.894038 -6.830371 -8.739505 -10.4501
[2,]  0.000000  0.000000  0.000000  0.000000   0.0000

StepSignalMargiLike documentation built on May 2, 2019, 1:02 p.m.