- L1TrendFilterLambdaMax
- L1TrendFilter
L1TrendFilter
Method for calculating the L1 trend for a data vector. The regularization parameter lambda can be specified either in absolute units (relative=false) or in units of λmax.
Calculations for vector<double> type
bool vector::L1TrendFilter(
|
Calculations for vector<complex> type
bool vectorf::L1TrendFilter(
|
Parameters
lambda
[in] The value of the regularization parameter lambda. When relative=true, lambda must be in the range from 0 to 1.
relative
[in] Flag indicating how the regularization parameter lambda is specified. If relative=true, lambda is given in units of λmax; otherwise, lambda is treated as an absolute value.
data_result
[out] A vector containing the result of the L1 filtering.
Return Value
Returns true on success, otherwise false if error occurs.
Note
Memory consumption grows linearly with the size of the vector.