Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Public Member Functions | Protected Member Functions

ContinuousWaveletTransformNumIntegration Class Reference

This class computes the continuous wavelet transformation using a marr wavelet. More...

#include <OpenMS/TRANSFORMATIONS/RAW2PEAK/ContinuousWaveletTransformNumIntegration.h>

Inheritance diagram for ContinuousWaveletTransformNumIntegration:
ContinuousWaveletTransform

List of all members.

Public Types

typedef
ContinuousWaveletTransform::PeakConstIterator 
PeakConstIterator
 Raw data const iterator type.

Public Member Functions

 ContinuousWaveletTransformNumIntegration ()
 Constructor.
virtual ~ContinuousWaveletTransformNumIntegration ()
 Destructor.
template<typename InputPeakIterator >
void transform (InputPeakIterator begin_input, InputPeakIterator end_input, float resolution, unsigned int zeros=0)
 Computes the wavelet transform of a given raw data intervall [begin_input,end_input).
virtual void init (double scale, double spacing)
 Perform necessary preprocessing steps like tabulating the Wavelet.

Protected Member Functions

template<typename InputPeakIterator >
double integrate_ (InputPeakIterator x, InputPeakIterator first, InputPeakIterator last)
 Computes the convolution of the wavelet and the raw data at position x with resolution = 1.
double integrate_ (const std::vector< double > &processed_input, double spacing_data, int index)
 Computes the convolution of the wavelet and the raw data at position x with resolution > 1.
double marr_ (double x)
 Computes the marr wavelet at position x.

Detailed Description

This class computes the continuous wavelet transformation using a marr wavelet.

The convolution of the signal and the wavelet is computed by numerical integration.


Member Typedef Documentation

Raw data const iterator type.

Reimplemented from ContinuousWaveletTransform.


Constructor & Destructor Documentation

Constructor.

virtual ~ContinuousWaveletTransformNumIntegration (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual void init ( double  scale,
double  spacing 
) [virtual]

Perform necessary preprocessing steps like tabulating the Wavelet.

Build a Marr-Wavelet for the current spacing and scale. We store the wavelet in the vector<double> wavelet_;

We only need a finite amount of points since the Marr function decays fast. We take 5*scale, since at that point the wavelet has dropped to ~ -10^-4

Reimplemented from ContinuousWaveletTransform.

double integrate_ ( const std::vector< double > &  processed_input,
double  spacing_data,
int  index 
) [protected]

Computes the convolution of the wavelet and the raw data at position x with resolution > 1.

double integrate_ ( InputPeakIterator  x,
InputPeakIterator  first,
InputPeakIterator  last 
) [inline, protected]

Computes the convolution of the wavelet and the raw data at position x with resolution = 1.

References OpenMS::Math::round().

double marr_ ( double  x  )  [inline, protected]

Computes the marr wavelet at position x.

void transform ( InputPeakIterator  begin_input,
InputPeakIterator  end_input,
float  resolution,
unsigned int  zeros = 0 
) [inline]

Computes the wavelet transform of a given raw data intervall [begin_input,end_input).

  • Resolution = 1: the wavelet transform will be computed at every position of the raw data,
  • Resolution = 2: the wavelet transform will be computed at 2x(number of raw data positions) positions (the raw data are interpolated to get the intensity for missing positions)
Note:
The InputPeakIterator should point to a Peak1D or a class derived from Peak1D.
Before starting the transformation you have to call the init function

References OpenMS::Constants::k.


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:57 using doxygen 1.7.1