View source: R/findCandidateChangePoints.R
findCandidateChangePoints | R Documentation |
Find Candidate Change Points
findCandidateChangePoints(windowsweep, clusterwidth = 0, verbose = TRUE)
windowsweep |
A windowsweep opject (matrix), output of |
clusterwidth |
A time span within which very close change points are considered a single chagne point. |
verbose |
Whether or not to report the number of change points that are clustered away. |
The raw output of the window sweep (sweepRACVM
)
library(smoove)
library(magrittr)
data(simSweep,package = "smoove")
#The warning lets us know that some of the candidate change points
#are rather too close (in time) to each other
CP.all <- findCandidateChangePoints(windowsweep = simSweep, clusterwidth = 0)
CP.all %>% as.vector
CP.clustered <- findCandidateChangePoints(windowsweep = simSweep, clusterwidth = 4)
CP.clustered %>% as.vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.