findCandidateChangePoints: Find Candidate Change Points

View source: R/findCandidateChangePoints.R

findCandidateChangePointsR Documentation

Find Candidate Change Points

Description

Find Candidate Change Points

Usage

findCandidateChangePoints(windowsweep, clusterwidth = 0, verbose = TRUE)

Arguments

windowsweep

A windowsweep opject (matrix), output of sweepRACVM function

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.

Details

The raw output of the window sweep (sweepRACVM)

Examples

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

EliGurarie/smoove documentation built on Aug. 2, 2022, 10:26 p.m.