![]() |
sablib
|
Baseline estimation using adaptive iteratively reweighted Penalized Least Squares(airPLS)(implementation). More...
Go to the source code of this file.
Functions | |
| const std::vector< double > | sablib::BaselineAirPLS (std::vector< double > &y, const double lambda, const unsigned int s=2, const unsigned int loop=50, const double eps=1e-3) |
| Performs baseline estimation using adaptive iteratively reweighted Penalized Least Squares(airPLS). | |
Baseline estimation using adaptive iteratively reweighted Penalized Least Squares(airPLS)(implementation).
Definition in file airpls.cpp.
| const std::vector< double > sablib::BaselineAirPLS | ( | std::vector< double > & | y, |
| const double | lambda, | ||
| const unsigned int | s = 2, | ||
| const unsigned int | loop = 50, | ||
| const double | eps = 1e-3 ) |
Performs baseline estimation using adaptive iteratively reweighted Penalized Least Squares(airPLS).
| y | The input data for baseline estimation. |
| lambda | Smoothing parameter. |
| s | The order of the difference (usually s = 1, 2, or 3). |
| loop | Maximum number of iterations. |
| eps | Convergence threshold. |
| std::invalid_argument | One or more parameters are wrong. |
Definition at line 16 of file airpls.cpp.