![]() |
sablib
|
Baseline estimation using simple moving average(implementation). More...
#include "sma.h"Go to the source code of this file.
Functions | |
| const std::vector< double > | sablib::BaselineSMA (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(implementation).
Definition in file sma.cpp.
| const std::vector< double > sablib::BaselineSMA | ( | 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). |