76    int nLParam, 
int nRParam, 
int mParam, 
int lDParam, 
bool convolveWithNrParam)
 
 
   87    int nLParam, 
int nRParam, 
int mParam, 
int lDParam, 
bool convolveWithNrParam)
 
 
  111    QStringList params_list = parameters.split(
";");
 
  113    nL             = params_list.at(0).toInt();
 
  114    nR             = params_list.at(1).toInt();
 
  115    m              = params_list.at(2).toInt();
 
  116    lD             = params_list.at(3).toInt();
 
 
  124    return QString(
"%1;%2;%3;%4;%5")
 
  125      .arg(QString::number(
nL))
 
  126      .arg(QString::number(
nR))
 
  127      .arg(QString::number(
m))
 
  128      .arg(QString::number(
lD))
 
 
 
  134class FilterSavitzkyGolay;
 
  155    int nL, 
int nR, 
int m, 
int lD, 
bool convolveWithNr = 
false);
 
  180                 double *y_filtered_data_p,
 
  181                 int data_point_count) 
const;
 
  185  QString 
name() 
const override;
 
  212  int *
ivector(
long nl, 
long nh) 
const;
 
 
Interface that allows to build filter objects from strings.
 
void free_dmatrix(pappso_double **m, long nrl, long nrh, long ncl, long nch) const
 
pappso_double * dvector(long nl, long nh) const
 
void buildFilterFromString(const QString &strBuildParams) override
build this filter using a string
 
void free_dvector(pappso_double *v, long nl, long nh) const
 
QString name() const override
 
pappso_double ** dmatrix(long nrl, long nrh, long ncl, long nch) const
 
QString toString() const override
Return a string with the textual representation of the configuration data.
 
void twofft(pappso_double data1[], pappso_double data2[], pappso_double fft1[], pappso_double fft2[], unsigned long n)
 
void realft(pappso_double data[], unsigned long n, int isign)
 
void free_ivector(int *v, long nl, long nh) const
 
char convlv(pappso_double data[], unsigned long n, pappso_double respns[], unsigned long m, int isign, pappso_double ans[])
 
void lubksb(pappso_double **a, int n, int *indx, pappso_double b[]) const
 
int * ivector(long nl, long nh) const
 
pappso_double * m_yr
C array of raw values of the Trace.
 
void ludcmp(pappso_double **a, int n, int *indx, pappso_double *d) const
 
void filteredData(std::vector< pappso_double > &data)
 
void four1(pappso_double data[], unsigned long nn, int isign)
 
FilterSavitzkyGolay & operator=(const FilterSavitzkyGolay &other)
 
Trace & filter(Trace &data_points) const override
 
pappso_double * m_x
C array of keys of the Trace.
 
char sgcoeff(pappso_double c[], int np, int nl, int nr, int ld, int m) const
 
char runFilter(double *y_data_p, double *y_filtered_data_p, int data_point_count) const
Perform the Savitzky-Golay filtering process.
 
pappso_double * m_yf
C array of filtered values after the computation has been performed.
 
SavGolParams getParameters() const
 
A simple container of DataPoint instances.
 
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
 
std::shared_ptr< FilterSavitzkyGolay > FilterSavitzkyGolaySPtr
 
std::shared_ptr< const FilterSavitzkyGolay > FilterSavitzkyGolayCstSPtr
 
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)
 
void initialize(const QString ¶meters)