This class computes the continuous wavelet transformation using a marr wavelet. More...
#include <OpenMS/TRANSFORMATIONS/RAW2PEAK/ContinuousWaveletTransformNumIntegration.h>
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. | |
This class computes the continuous wavelet transformation using a marr wavelet.
The convolution of the signal and the wavelet is computed by numerical integration.
Raw data const iterator type.
Reimplemented from ContinuousWaveletTransform.
| ContinuousWaveletTransformNumIntegration | ( | ) | [inline] |
Constructor.
| virtual ~ContinuousWaveletTransformNumIntegration | ( | ) | [inline, virtual] |
Destructor.
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().
| 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).
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 |