OpenMS
LowessSmoothing.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: Erhan Kenar, Holger Franken $
7 // --------------------------------------------------------------------------
8 
9 
10 #pragma once
11 
13 
14 namespace OpenMS
15 {
34  class OPENMS_DLLAPI LowessSmoothing :
35  public DefaultParamHandler
36  {
37 public:
40 
42  ~LowessSmoothing() override;
43 
44  typedef std::vector<double> DoubleVector;
45 
47  void smoothData(const DoubleVector &, const DoubleVector &, DoubleVector &);
48 
49 protected:
50  void updateMembers_() override;
51 
52 private:
53  double window_size_;
54 
55  double tricube_(double, double);
56  };
57 
58 
59 } // namespace OpenMS
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
LOWESS (locally weighted scatterplot smoothing).
Definition: LowessSmoothing.h:36
void smoothData(const DoubleVector &, const DoubleVector &, DoubleVector &)
Smoothing method that receives x and y coordinates (e.g., RT and intensities) and computes smoothed i...
double window_size_
Definition: LowessSmoothing.h:53
double tricube_(double, double)
std::vector< double > DoubleVector
Definition: LowessSmoothing.h:44
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
~LowessSmoothing() override
Destructor.
LowessSmoothing()
Default constructor.
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19