uni_mean: Find mean changes in a univariate sequence
Description
The uni_mean() function ranks the observations from smallest to largest,
then applies the pruned exact linear time algorithm with the penalty
parameter beta to detect changepoints.
Usage
uni_mean(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 Mean (FKWC)"
Arguments
data
A vector or one-dimensional array.
beta
Numeric penalty constant passed to pruned exact linear time
algorithm.
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.