oneBkp | R Documentation |
Get best candidate change point according to binary segmentation
oneBkp(Y, weights = NULL, verbose = FALSE)
Y |
A |
weights |
a |
verbose |
A |
Morgane Pierre-Jean and Pierre Neuvial
p <- 2
sim <- randomProfile(1e4, 1, 1, p)
Y <- sim$profile
bkp <- jointseg:::oneBkp(Y)
par(mfrow=c(p,1))
for (ii in 1:p) {
plot(Y[, ii], pch=19, cex=0.2)
abline(v=bkp, col=3)
abline(v=sim$bkp, col=8, lty=2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.