Description Usage Arguments Details Author(s) Examples
Get best candidate change point according to binary segmentation
| 1 | anotherBkp(Y, weightFUN = defaultWeights, verbose = FALSE)
 | 
| Y | A  | 
| weightFUN | A  | 
| verbose | A  | 
Contrary to oneBkp, anotherBkp handles
missing values (NA:s).
Morgane Pierre-Jean and Pierre Neuvial
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | p <- 2
n <- 100
sim <- randomProfile(n, 1, 1, p)
Y <- sim$profile
bkp <- anotherBkp(Y)
print(bkp)
print(oneBkp(Y))
##  stopifnot(identical(oneBkp(Y), bkp))
plotSeg(Y, list(sim$bkp, bkp))
## robustness to NA:s
h <- 2
idxs <- seq(from=max(sim$bkp[1]-h, 1), min(sim$bkp[1]+h, n))
Y[idxs, p] <- NA
oneBkp(Y)  ## does not work
bkp <- anotherBkp(Y)  ## works
bkp-sim$bkp
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.