39 #include "../../trace/trace.h"
40 #include "../../exportinmportconfig.h"
60 bool convolveWithNr =
false;
70 convolveWithNr{other.convolveWithNr}
75 int nLParam,
int nRParam,
int mParam,
int lDParam,
bool convolveWithNrParam)
81 convolveWithNr = convolveWithNrParam;
86 int nLParam,
int nRParam,
int mParam,
int lDParam,
bool convolveWithNrParam)
92 convolveWithNr = convolveWithNrParam;
121 int nL,
int nR,
int m,
int lD,
bool convolveWithNr =
false);
137 Trace &filter(
Trace &data_points)
const override;
141 char runFilter(
double *y_data_p,
142 double *y_filtered_data_p,
143 int data_point_count)
const;
160 bool m_convolveWithNr =
false;
176 int *ivector(
long nl,
long nh)
const;
178 pappso_double **dmatrix(
long nrl,
long nrh,
long ncl,
long nch)
const;
179 void free_ivector(
int *v,
long nl,
long nh)
const;
182 free_dmatrix(
pappso_double **m,
long nrl,
long nrh,
long ncl,
long nch)
const;
185 void four1(
pappso_double data[],
unsigned long nn,
int isign);
191 void realft(
pappso_double data[],
unsigned long n,
int isign);
198 char sgcoeff(
pappso_double c[],
int np,
int nl,
int nr,
int ld,
int m)
const;
202 QString toString()
const;
generic interface to apply a filter on a trace
uses Savitsky-Golay filter on trace
pappso_double * m_yr
C array of raw values of the Trace.
void filteredData(std::vector< pappso_double > &data)
pappso_double * m_x
C array of keys of the Trace.
pappso_double * m_yf
C array of filtered values after the computation has been performed.
A simple container of DataPoint instances.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
double pappso_double
A type definition for doubles.
Parameters for the Savitzky-Golay filter.
SavGolParams(int nLParam, int nRParam, int mParam, int lDParam, bool convolveWithNrParam)
SavGolParams(const SavGolParams &other)
void initialize(int nLParam, int nRParam, int mParam, int lDParam, bool convolveWithNrParam)
int nR
number of data points on the right of the filtered point
int nL
number of data points on the left of the filtered point
bool convolveWithNr
set to false for best results
void initialize(const SavGolParams &other)