#include <OpenMS/TRANSFORMATIONS/RAW2PEAK/ContinuousWaveletTransformNumIntegration.h>
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. |
ContinuousWaveletTransformNumIntegration | ( | ) | [inline] |
Constructor.
virtual ~ContinuousWaveletTransformNumIntegration | ( | ) | [inline, virtual] |
Destructor.
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)
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.
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |