Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

ContinuousWaveletTransformNumIntegration Class Reference
[PeakPicking]

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

Inheritance diagram for ContinuousWaveletTransformNumIntegration:

ContinuousWaveletTransform

List of all members.


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.

Public Types

typedef
ContinuousWaveletTransform::RawDataPointConstIterator 
RawDataPointConstIterator
 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.


Member Typedef Documentation

typedef ContinuousWaveletTransform::RawDataPointConstIterator RawDataPointConstIterator

Raw data const iterator type.

Reimplemented from ContinuousWaveletTransform.


Constructor & Destructor Documentation

ContinuousWaveletTransformNumIntegration (  )  [inline]

Constructor.

virtual ~ContinuousWaveletTransformNumIntegration (  )  [inline, virtual]

Destructor.


Member Function Documentation

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 DRawDataPoint<1> or any other one dimensional class derived from DRawDataPoint.

Before starting the transformation you have to call the init function

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_ ( InputPeakIterator  x,
InputPeakIterator  first,
InputPeakIterator  last 
) [inline, protected]

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 
) [protected]

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

double marr_ ( double  x  )  [inline, protected]

Computes the marr wavelet at position x.


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1