![]() |
sablib
|
Baseline estimation using the Goldindec algorithm. More...
#include <stdexcept>#include <vector>Go to the source code of this file.
Functions | |
| const std::vector< double > | sablib::BaselineGoldindec (const std::vector< double > &y, const unsigned int polyorder, const double peak_ratio=0.5, const double alpha=0.99 *0.5, const unsigned int loop=100, const double eps=1.0e-4, const unsigned int loop_legend=50, const double eps_legend=1e-3, const double eps_s=1e-4) |
| Performs baseline estimation using the Goldindec algorithm. | |
Baseline estimation using the Goldindec algorithm.
References:
Definition in file goldindec.h.
| const std::vector< double > sablib::BaselineGoldindec | ( | const std::vector< double > & | y, |
| const unsigned int | polyorder, | ||
| const double | peak_ratio = 0.5, | ||
| const double | alpha = 0.99 *0.5, | ||
| const unsigned int | loop = 100, | ||
| const double | eps = 1.0e-4, | ||
| const unsigned int | loop_legend = 50, | ||
| const double | eps_legend = 1e-3, | ||
| const double | eps_s = 1e-4 ) |
Performs baseline estimation using the Goldindec algorithm.
| y | The input data vector (signal to be processed). |
| polyorder | The order of the polynomial to be fitted. |
| peak_ratio | Estimated ratio related to the peak content (default: 0.5). |
| alpha | A weighting parameter for the iterative process (default: 0.99 * 0.5). |
| loop | Maximum number of iterations for the main loop (default: 100). |
| eps | Convergence threshold for the main loop (default: 1.0e-4). |
| loop_legend | Maximum number of iterations for internal LEGEND algorithm (default: 50). |
| eps_legend | Convergence threshold for internal LEGEND algorithm (default: 1e-3). |
| eps_s | Convergence threshold for the internal parameter s (default: 1e-4). |
| std::invalid_argument | One or more parameters are wrong. |
Definition at line 21 of file goldindec.cpp.