![]() |
sablib
|
Baseline estimation with polynomial line. More...
Go to the source code of this file.
Functions | |
| std::vector< double > | sablib::BaselineLinear (std::vector< double > &y, const unsigned int index1, const unsigned int index2) |
| Performs baseline estimation with a linear line between two points. | |
| std::vector< double > | sablib::BaselinePolynomial (std::vector< double > &y, const unsigned int polyorder, const std::vector< unsigned int > &indices) |
| Performs baseline estimation by fitting a polynomial to specified points. | |
Baseline estimation with polynomial line.
Definition in file polynomial.h.
| std::vector< double > sablib::BaselineLinear | ( | std::vector< double > & | y, |
| const unsigned int | index1, | ||
| const unsigned int | index2 ) |
Performs baseline estimation with a linear line between two points.
| y | The input data for baseline estimation. |
| index1 | The index of the first point. |
| index2 | The index of the second point. |
| std::invalid_argument | One or more parameters are wrong. |
Definition at line 16 of file polynomial.cpp.
| std::vector< double > sablib::BaselinePolynomial | ( | std::vector< double > & | y, |
| const unsigned int | polyorder, | ||
| const std::vector< unsigned int > & | indices ) |
Performs baseline estimation by fitting a polynomial to specified points.
| y | The input data for baseline estimation. |
| polyorder | The order of the polynomial to fit. |
| indices | The indices of the points used for polynomial fitting. |
| std::invalid_argument | One or more parameters are wrong. |
Definition at line 43 of file polynomial.cpp.