Learn R Programming

BBEST (version 0.1-8)

set.lambda: Set mean signal magnitude

Description

set.lambda sets the mean height of the peaks over region x.

Usage

set.lambda(data, lambda=NA, lambda_1=NA, lambda_2=NA, 
           lambda_0=NA, x_1=NA, x_2=NA)

Arguments

data

an object of type data. See set.data for details.

lambda

numeric vector. If not NA, specifies (approximate) the mean magnitude of the signal. This estimate does not need to be accurate. lambda can be estimated as a smooth function that crosses centres of the signal peaks.

lambda_1, lambda_2, lambda_0, x_1, x_2

numerics. If lambda is NA help to estimate lambda. See details.

Value

An object of type data. Element

lambda

numeric vector containing an approximate mean magnitude of the signal.

is replaced with its new value.

Details

lambda is calculated as a linear piecewise function which is equal to lambda_0 outside the [x_1,x_2] region. Inside this region, lambda is approximated by a line connecting points (x_1;lambda_1) and (x_2;lambda_2).