powered by
The localization procedure to detect change-points.
localization(data, intervals, l = 0, scaling = FALSE, q = 1)
The positions of estimated change-points
A numeric matrix of observations with each horizontal axis being time, and each column being the multivariate time series
A numeric matrix of intervals with each row be a vector representing the interval
A non-negative integer of order of polynomial (l=0 means piecewise constant)
l=0
A logical scalar representing whether to perform refinement for locally stationary data. Only useful when l=0
A positive integer of norm
set.seed(0) data=rep(c(0,2,0),each=40)+rnorm(120) d=rid(data,M=1000,tau="clustering") cpt=localization(data,d$Good_Intervals) print(cpt)
Run the code above in your browser using DataLab