Apply the Isolate-Detect methodology for multiple change-point detection in a continuous, piecewise-linear vector with non Gaussian noise
Apply the Isolate-Detect methodology for multiple change-point detection in a continuous, piecewise-linear vector with non Gaussian noise
Using the Isolate-Detect methodology, this function estimates the number and locations of multiple change-points in the noisy, continuous, piecewise-linear input vector x, with noise that is not normally distributed. It also gives the estimated signal, as well as the solution path defined in sol_path_cplm (see Details for the relevant literature reference).
x: A numeric vector containing the data in which you would like to find change-points.
s.ht: A positive integer number with default value equal to 3. It is used to define the way we pre-average the given data sequence. For more information see Details.
q_ht: A positive integer number with default value equal to 300. If the length of x is less than or equal to q_ht, then no pre-averaging will take place.
ht_thr_id: A positive real number with default value equal to 1.4. It is used to define the threshold, if the thresholding approach (described in cplm_th) is to be followed.
ht_th_ic_id: A positive real number with default value equal to 1.25. It is useful only if the model selection based Isolate-Detect method is to be followed and it is used to define the threshold value that will be used at the first step (change-point overestimation) of the model selection approach described in cplm_ic. It is applied to the new data, which are obtained after we take average values on x.
p_thr: A positive integer with default value equal to 1. It is used only when the threshold based approach (described in cplm_th) is to be followed and it defines the distance between two consecutive end- or start-points of the right- or left-expanding intervals, respectively.
p_ic: A positive integer with default value equal to 3. It is used only when the information criterion based approach (described in cplm_ic) is to be followed and it defines the distance between two consecutive end- or start-points of the right- or left-expanding intervals, respectively.
Returns
A list with the following components:
cpt
A vector with the detected change-points.
no_cpt
The number of change-points detected.
fit
A numeric vector with the estimated continuous piecewise-linear signal.
solution_path
A vector containing the solution path.
Details
Firstly, in this function we call normalise, in order to create a new data sequence, x~, by taking averages of observations in x. Then, we employ ID_cplm on x~q to obtain the change-points, namely r~1,r~2,...,r~N^ in increasing order. To obtain the original location of the change-points with, on average, the highest accuracy we define