![]() |
sablib
|
Baseline estimation using simple moving average. More...
Go to the source code of this file.
Functions | |
| const BaselineResult | sablib::BaselineSMA (const std::vector< double > &y, const unsigned int n, const unsigned int loop=50) |
| Performs background estimation using a simple moving average. | |
Baseline estimation using simple moving average.
Definition in file sma.h.
| SABLIB_EXPORT const BaselineResult sablib::BaselineSMA | ( | const std::vector< double > & | y, |
| const unsigned int | n, | ||
| const unsigned int | loop = 50 ) |
Performs background estimation using a simple moving average.
| y | The input data for baseline estimation. |
| n | Half-width of the moving average window (calculated using 2 * n + 1 points). |
| loop | Number of iterations (default is 50). |
Definition at line 16 of file sma.cpp.
References sablib::BaselineResult::baseline, and sablib::BaselineResult::corrected.