OpenMS
GaussFilter.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Eva Lange $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
16 
17 namespace OpenMS
18 {
42 //#define DEBUG_FILTERING
43 
44  class OPENMS_DLLAPI GaussFilter :
45  public ProgressLogger,
46  public DefaultParamHandler
47  {
48 public:
51 
53  ~GaussFilter() override = default;
54 
62  void filter(MSSpectrum & spectrum);
63 
64  void filter(MSChromatogram & chromatogram);
65 
72 
73 protected:
74 
76 
78  double spacing_;
79 
80  bool write_log_messages_ = false;
81 
82  // Docu in base class
83  void updateMembers_() override;
84  };
85 
86 } // namespace OpenMS
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
This class represents a Gaussian lowpass-filter which works on uniform as well as on non-uniform prof...
Definition: GaussFilterAlgorithm.h:46
This class represents a Gaussian lowpass-filter which works on uniform as well as on non-uniform prof...
Definition: GaussFilter.h:47
void filter(MSChromatogram &chromatogram)
~GaussFilter() override=default
Destructor.
void filter(MSSpectrum &spectrum)
Smoothes an MSSpectrum containing profile data.
double spacing_
The spacing of the pre-tabulated kernel coefficients.
Definition: GaussFilter.h:78
void filterExperiment(PeakMap &map)
Smoothes an MSExperiment containing profile data.
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
GaussFilter()
Constructor.
GaussFilterAlgorithm gauss_algo_
Definition: GaussFilter.h:75
The representation of a chromatogram.
Definition: MSChromatogram.h:30
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:45
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19