Learn R Programming

MSigSeg (version 0.2.0)

lambda_estimator: Detecting common breakpoints with designated number.

Description

Automatic estimation of penalty parameter lambda for user defined breakpoints number.

Usage

lambda_estimator(Y, K)

Value

An object of S4 class "MSigSeg".

Arguments

Y

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

K

Number of change points users want to detect.

Details

This function is based on the segmentation() function. Number of breakpoints are defined by users and lambda is calculated by algorithm automatically.

Examples

Run this code
data(data_test)
lambda_estimator(data_test,5)

Run the code above in your browser using DataLab