OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
SavitzkyGolay.h
Go to the documentation of this file.
1#ifndef OPALX_SAVITZKY_GOLAY_FILTER_HH
2#define OPALX_SAVITZKY_GOLAY_FILTER_HH
3
4#include "Filters/Filter.h"
5
6class SavitzkyGolayFilter : public Filter {
7public:
8 SavitzkyGolayFilter(int np, int nl, int nr, int m);
10
11 void apply(std::vector<double>& histogram);
12 void calc_derivative(std::vector<double>& histogram, const double& h);
13
14private:
19 std::vector<double> Coefs_m;
20 std::vector<double> CoefsDeriv_m;
21};
22
23void savgol(
24 std::vector<double>& c, const int& np, const int& nl, const int& nr, const int& ld,
25 const int& m);
26void convlv(
27 const std::vector<double>& data, const std::vector<double>& respns, const int& isign,
28 std::vector<double>& ans);
29void ludcmp(std::vector<double>& a, std::vector<int>& indx, double& d);
30void lubksb(std::vector<double>& a, std::vector<int>& indx, std::vector<double>& b);
31
32#endif // OPALX_SAVITZKY_GOLAY_FILTER_HH
const int nr
void convlv(const std::vector< double > &data, const std::vector< double > &respns, const int &isign, std::vector< double > &ans)
void ludcmp(std::vector< double > &a, std::vector< int > &indx, double &d)
void lubksb(std::vector< double > &a, std::vector< int > &indx, std::vector< double > &b)
void savgol(std::vector< double > &c, const int &np, const int &nl, const int &nr, const int &ld, const int &m)
Definition Filter.h:8
void apply(std::vector< double > &histogram)
std::vector< double > Coefs_m
std::vector< double > CoefsDeriv_m
void calc_derivative(std::vector< double > &histogram, const double &h)