1 #ifndef CLASSIC_SAVITZKY_GOLAY_FILTER_HH
2 #define CLASSIC_SAVITZKY_GOLAY_FILTER_HH
12 void apply(std::vector<double> &histogram);
25 void savgol(std::vector<double> &
c,
const int &np,
const int &nl,
const int &
nr,
const int &ld,
const int &m);
26 void convlv(
const std::vector<double> &data,
const std::vector<double> &respns,
const int &isign, std::vector<double> &ans);
27 void ludcmp(std::vector<double> &a, std::vector<int> &indx,
double &d);
28 void lubksb(std::vector<double> &a, std::vector<int> &indx, std::vector<double> &b);
30 #endif // CLASSIC_SAVITZKY_GOLAY_FILTER_HH
void lubksb(vector< double > &a, vector< int > &indx, vector< double > &b)
void apply(std::vector< double > &histogram)
void ludcmp(vector< double > &a, vector< int > &indx, double &d)
void savgol(double c[], int np, int nl, int nr, int ld, int m)
void convlv(double data[], int n, double respns[], int m, int isign, double ans[])
constexpr double c
The velocity of light in m/s.
std::vector< double > CoefsDeriv_m
std::vector< double > Coefs_m
void calc_derivative(std::vector< double > &histogram, const double &h)
SavitzkyGolayFilter(int np, int nl, int nr, int m)