libpappsomspp
Library for mass spectrometry
|
Go to the documentation of this file.
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;
double pappso_double
A type definition for doubles.
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.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
void initialize(const SavGolParams &other)
generic interface to apply a filter on a trace
SavGolParams(const SavGolParams &other)
A simple container of DataPoint instances.
Parameters for the Savitzky-Golay filter.
pappso_double * m_yr
C array of raw values of the Trace.
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
void initialize(int nLParam, int nRParam, int mParam, int lDParam, bool convolveWithNrParam)
bool convolveWithNr
set to false for best results
SavGolParams(int nLParam, int nRParam, int mParam, int lDParam, bool convolveWithNrParam)
uses Savitsky-Golay filter on trace
void filteredData(std::vector< pappso_double > &data)