sablib
Loading...
Searching...
No Matches
polynomial.h
Go to the documentation of this file.
1
6
7#ifndef __SABLIB_POLYNOMIAL_H__
8#define __SABLIB_POLYNOMIAL_H__
9
10#include <stdexcept>
11
12#include "result_type.h"
13#include "sablib_export.h"
14
15namespace sablib {
16
26SABLIB_EXPORT const BaselineResult BaselineLinear(const std::vector<double> & y, const unsigned int index1, const unsigned int index2);
27
37SABLIB_EXPORT const BaselineResult BaselinePolynomial(
38 const std::vector<double> & y, const unsigned int polyorder, const std::vector<unsigned int> & indices
39);
40
41}; // namespace sablib
42
43#endif // __SABLIB_POLYNOMIAL_H__
const BaselineResult BaselineLinear(const std::vector< double > &y, const unsigned int index1, const unsigned int index2)
Performs baseline estimation with a linear line between two points.
const BaselineResult BaselinePolynomial(const std::vector< double > &y, const unsigned int polyorder, const std::vector< unsigned int > &indices)
Performs baseline estimation by fitting a polynomial to specified points.
Common definition of return value for baseline estimation functions.
Return value structure for baseline estimation functions.
Definition result_type.h:19