Wraps the mosum package for moving-sum-based changepoint
detection, either at a single bandwidth or (with
multiscale = TRUE) across a bandwidth grid with localised pruning.
Arguments
- x
A numeric vector.
- G
Bandwidth. If
NULL, automatically selected (min(n/10, 100)for the single-bandwidth procedure; the engine's default bandwidth grid for the multiscale procedure).- multiscale
Logical. Use the multiscale MOSUM procedure (
mosum::multiscale.localPrune()) instead of a single bandwidth? Defaults toFALSE.- seed
Optional seed for reproducibility.
- ...
Additional arguments passed to
mosum::mosum()ormosum::multiscale.localPrune().
