![]() |
sablib
|
Baseline estimation using Statistics-sensitive Non-linear Iterative Peak-clipping(SNIP). More...
#include <stdexcept>#include <vector>Go to the source code of this file.
Enumerations | |
| enum class | sablib::SnipPreprocess { None , LL , LLS } |
| Preprocessing types for the SNIP algorithm. More... | |
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).
References:
Definition in file snip.h.
|
strong |
Preprocessing types for the SNIP algorithm.
SNIP often works better when the data is transformed to stabilize the variance or handle high dynamic range peaks.
| 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. |