#include <OpenMS/FILTERING/TRANSFORMERS/LinearResampler.h>
This class can be used to generate uniform data from non-uniform raw data (e.g. ESI-TOF or MALDI-TOF experiments). Therefore the intensity at every position x in the input raw data is spread to the two adjacent resampling points. This method preserves the area of the input signal and also the centroid position of a peak. Therefore it is recommended for quantitation as well as for ProteinIdentification experiments.
Public Member Functions | |
LinearResampler () | |
Constructor. | |
~LinearResampler () | |
Destructor. | |
template<typename InputPeakIterator, typename OutputPeakContainer> | |
void | raster (InputPeakIterator first, InputPeakIterator last, OutputPeakContainer &resampled_peak_container) |
Applies the resampling algorithm to to an given iterator range. | |
template<typename InputPeakContainer, typename OutputPeakContainer> | |
void | raster (const InputPeakContainer &input_peak_container, OutputPeakContainer &baseline_filtered_container) |
Applies the resampling algorithm to a raw data point container. | |
template<typename InputSpectrumIterator, typename OutputPeakType> | |
void | rasterExperiment (InputSpectrumIterator first, InputSpectrumIterator last, MSExperiment< OutputPeakType > &ms_exp_filtered) |
Resamples the data in a range of MSSpectra. | |
template<typename InputPeakType, typename OutputPeakType> | |
void | rasterExperiment (const MSExperiment< InputPeakType > &ms_exp_raw, MSExperiment< OutputPeakType > &ms_exp_filtered) |
Resamples the data in an MSExperiment. | |
Protected Member Functions | |
virtual void | updateMembers_ () |
This method is used to update extra member variables at the end of the setParam() method. | |
Protected Attributes | |
double | spacing_ |
Spacing of the resampled data. |
LinearResampler | ( | ) | [inline] |
Constructor.
~LinearResampler | ( | ) | [inline] |
Destructor.
void raster | ( | InputPeakIterator | first, | |
InputPeakIterator | last, | |||
OutputPeakContainer & | resampled_peak_container | |||
) | [inline] |
Applies the resampling algorithm to to an given iterator range.
Creates uniform data from the raw data given iterator intervall [first,last) and writes the resulting data to the resampled_peak_container.
void raster | ( | const InputPeakContainer & | input_peak_container, | |
OutputPeakContainer & | baseline_filtered_container | |||
) | [inline] |
Applies the resampling algorithm to a raw data point container.
Creates uniform data from the raw data in the input container (e.g. of type MSSpectrum<RawDataPoint1D >) and writes the resulting data to the resampled_peak_container.
void rasterExperiment | ( | InputSpectrumIterator | first, | |
InputSpectrumIterator | last, | |||
MSExperiment< OutputPeakType > & | ms_exp_filtered | |||
) | [inline] |
Resamples the data in a range of MSSpectra.
Rasters the raw data successive in every scan in the intervall [first,last). The resampled data are stored in a MSExperiment.
You have to copy the ExperimentalSettings of the raw data on your own.
void rasterExperiment | ( | const MSExperiment< InputPeakType > & | ms_exp_raw, | |
MSExperiment< OutputPeakType > & | ms_exp_filtered | |||
) | [inline] |
Resamples the data in an MSExperiment.
Rasters the raw data of every scan in the MSExperiment. The resampled data are stored in a MSExperiment.
virtual void updateMembers_ | ( | ) | [inline, protected, virtual] |
This method is used to update extra member variables at the end of the setParam() method.
Also call it at the end of the derived classes' copy constructor and assignment operator.
The default implementation is empty.
Reimplemented from DefaultParamHandler.
double spacing_ [protected] |
Spacing of the resampled data.
Generated Tue Apr 1 15:36:44 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |