OpenMS
SpectrumAddition.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/config.h> // OPENMS_DLLAPI
13 
15 
16 namespace OpenMS
17 {
26  class OPENMS_DLLAPI SpectrumAddition
27  {
28 
29 public:
30 
32  static OpenSwath::SpectrumPtr addUpSpectra(const std::vector<OpenSwath::SpectrumPtr>& all_spectra,
33  double sampling_rate,
34  bool filter_zeros);
35 
37  static OpenMS::MSSpectrum addUpSpectra(const std::vector< OpenMS::MSSpectrum>& all_spectra,
38  double sampling_rate,
39  bool filter_zeros);
40 
41  };
42 }
43 
44 
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
The SpectrumAddition is used to add up individual spectra.
Definition: SpectrumAddition.h:27
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
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
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:270