LOWESS (locally weighted scatterplot smoothing). More...
#include <OpenMS/FILTERING/SMOOTHING/LowessSmoothing.h>
Public Types | |
| typedef std::vector< DoubleReal > | DoubleVector |
Public Member Functions | |
| LowessSmoothing () | |
| Default constructor. | |
| virtual | ~LowessSmoothing () |
| Destructor. | |
| void | smoothData (const DoubleVector &, const DoubleVector &, DoubleVector &) |
| Smoothing method that receives x and y coordinates (e.g., RT and intensities) and computes smoothed intensities. | |
Protected Member Functions | |
| virtual void | updateMembers_ () |
| This method is used to update extra member variables at the end of the setParameters() method. | |
Private Member Functions | |
| DoubleReal | tricube_ (DoubleReal, DoubleReal) |
Private Attributes | |
| DoubleReal | window_size_ |
LOWESS (locally weighted scatterplot smoothing).
A smoothing technique that fits simple models (linear, quadratic) to localized subsets of the data, point by point. This is particularly useful for smoothing intensities in spectra or chromatograms. In this case, the window size for the smoothing should be setted proportional to the peak width (see LowessSmoothing parameters).
Parameters of this class are:| Name | Type | Default | Restrictions | Description |
|---|---|---|---|---|
| window_size | int | 10 | The number of peaks to be included for local fitting in one window. |
| typedef std::vector<DoubleReal> DoubleVector |
| LowessSmoothing | ( | ) |
Default constructor.
| virtual ~LowessSmoothing | ( | ) | [virtual] |
Destructor.
| void smoothData | ( | const DoubleVector & | , | |
| const DoubleVector & | , | |||
| DoubleVector & | ||||
| ) |
Smoothing method that receives x and y coordinates (e.g., RT and intensities) and computes smoothed intensities.
| DoubleReal tricube_ | ( | DoubleReal | , | |
| DoubleReal | ||||
| ) | [private] |
| virtual void updateMembers_ | ( | ) | [protected, virtual] |
This method is used to update extra member variables at the end of the setParameters() method.
Also call it at the end of the derived classes' copy constructor and assignment operator.
The default implementation is empty.
Reimplemented from DefaultParamHandler.
DoubleReal window_size_ [private] |
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:53 using doxygen 1.7.1 |