![]() |
sablib
|
Baseline estimation using Asymmetric Least Squares Smoothing(AsLS)(implementation). More...
#include "asls.h"Go to the source code of this file.
Functions | |
| const std::vector< double > | sablib::BaselineAsLS (std::vector< double > &y, const double lambda, const double p, const unsigned int s=2, const unsigned int loop=10, const double eps=1e-3) |
| Performs baseline estimation using Asymmetric Least Squares Smoothing (AsLS). | |
Baseline estimation using Asymmetric Least Squares Smoothing(AsLS)(implementation).
Definition in file asls.cpp.
| const std::vector< double > sablib::BaselineAsLS | ( | std::vector< double > & | y, |
| const double | lambda, | ||
| const double | p, | ||
| const unsigned int | s = 2, | ||
| const unsigned int | loop = 10, | ||
| const double | eps = 1e-3 ) |
Performs baseline estimation using Asymmetric Least Squares Smoothing (AsLS).
| y | The input data for baseline estimation. |
| lambda | Smoothing parameter. |
| p | Weight (asymmetry parameter, typically 0.001 to 0.1). |
| 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. |