![]() |
sablib
|
Baseline estimation using Statistics-sensitive Non-linear Iterative Peak-clipping(SNIP)(implementation). More...
Go to the source code of this file.
Functions | |
| const std::vector< double > | sablib::BaselineSnip (const std::vector< double > &y, const unsigned int m, const bool decreasing=true, const SnipPreprocess preprocess=SnipPreprocess::None, const unsigned int loop=1) |
| Performs baseline estimation using the Statistics-sensitive Non-linear Iterative Peak-clipping (SNIP) algorithm. | |
Baseline estimation using Statistics-sensitive Non-linear Iterative Peak-clipping(SNIP)(implementation).
Definition in file snip.cpp.
| const std::vector< double > sablib::BaselineSnip | ( | const std::vector< double > & | y, |
| const unsigned int | m, | ||
| const bool | decreasing = true, | ||
| const SnipPreprocess | preprocess = SnipPreprocess::None, | ||
| const unsigned int | loop = 1 ) |
Performs baseline estimation using the Statistics-sensitive Non-linear Iterative Peak-clipping (SNIP) algorithm.
| y | The input data vector (signal to be processed). |
| m | The maximum half-window size (maximum clipping distance). |
| decreasing | If true, iterates from m down to 1 (recommended). If false, iterates from 1 up to m. |
| preprocess | The preprocessing transformation to apply before clipping (None, LL, or LLS). |
| loop | The number of times to repeat the entire SNIP process (usually 1 is sufficient). |
| std::invalid_argument | One or more parameters are wrong. |