Learn R Programming

MSigSeg (version 0.2.0)

segmentation: Detecting common change points for multiple signals.

Description

Calculates the optimal positioning and number of common breakpoints for multiple signals.

Usage

segmentation(Y, lambda, flag = TRUE, return_smooth_signals = TRUE)

Value

An object of S4 class "MSigSeg"

Arguments

Y

An data.frame/matrix containing the data to be segmented. Each column stores a signal.

lambda

A penalty term, small value leads to large number of breakpoints, and vice versa.

flag

Logical. If True then use th PELT method. If False then use the OP method.

return_smooth_signals

Logical. If True then smoothed signals are returned.

Details

This function uses modified PELT method to find optimal common change points for multiple signals.

Examples

Run this code
data(data_test)
segmentation(data_test,100)

Run the code above in your browser using DataLab