powered by
Calculates the optimal positioning and number of common breakpoints for multiple signals.
segmentation(Y, lambda, flag = TRUE, return_smooth_signals = TRUE)
An object of S4 class "MSigSeg"
An data.frame/matrix containing the data to be segmented. Each column stores a signal.
A penalty term, small value leads to large number of breakpoints, and vice versa.
Logical. If True then use th PELT method. If False then use the OP method.
Logical. If True then smoothed signals are returned.
This function uses modified PELT method to find optimal common change points for multiple signals.
data(data_test) segmentation(data_test,100)
Run the code above in your browser using DataLab