uni_scale: Find scale changes in a univariate sequence
Description
The uni_scale() function ranks the observations based on their distance
from the mean, then applies the pruned exact linear time algorithm with the
penalty parameter beta to detect changepoints.
Usage
uni_scale(data, beta = 10)
Value
A list consisting of:
$changepoints : Indices of the changepoints detected; will return integer(0) if no changepoints are detected.
$method : A string"Univariate Changepoint in Scale (KWCChangepoint)"
Arguments
data
A vector or one-dimensional array.
beta
Numeric penalty constant passed to pruned exact linear time
algorithm, 10 by default.
References
Killick, R., P. Fearnhead, and I. A. Eckley. “Optimal Detection
of Changepoints With a Linear Computational Cost.” Journal of the American
Statistical Association 107, no. 500 (2012): 1590–98.
https://doi.org/10.1080/01621459.2012.737745.