OpenMS
SpectrumAddition Class Reference

The SpectrumAddition is used to add up individual spectra. More...

#include <OpenMS/ANALYSIS/OPENSWATH/SpectrumAddition.h>

Static Public Member Functions

static OpenSwath::SpectrumPtr addUpSpectra (const std::vector< OpenSwath::SpectrumPtr > &all_spectra, double sampling_rate, bool filter_zeros)
 adds up a list of Spectra by resampling them and then addition of intensities More...
 
static OpenMS::MSSpectrum addUpSpectra (const std::vector< OpenMS::MSSpectrum > &all_spectra, double sampling_rate, bool filter_zeros)
 adds up a list of Spectra by resampling them and then addition of intensities More...
 

Detailed Description

The SpectrumAddition is used to add up individual spectra.

It uses the given sampling rate to resample the spectra in m/z domain and then add them up. This may lead to a certain inaccuracy, especially if a inappropriate resampling rate is chosen.

Member Function Documentation

◆ addUpSpectra() [1/2]

static OpenMS::MSSpectrum addUpSpectra ( const std::vector< OpenMS::MSSpectrum > &  all_spectra,
double  sampling_rate,
bool  filter_zeros 
)
static

adds up a list of Spectra by resampling them and then addition of intensities

◆ addUpSpectra() [2/2]

static OpenSwath::SpectrumPtr addUpSpectra ( const std::vector< OpenSwath::SpectrumPtr > &  all_spectra,
double  sampling_rate,
bool  filter_zeros 
)
static

adds up a list of Spectra by resampling them and then addition of intensities