OpenMS
SpectrumPrecursorComparator.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 //
9 #pragma once
10 
12 
13 namespace OpenMS
14 {
15 
23  class OPENMS_DLLAPI SpectrumPrecursorComparator :
25  {
26 public:
27 
28  // @name Constructors and Destructors
29  // @{
32 
35 
38  // @}
39 
40  // @name Operators
41  // @{
44 
45  double operator()(const PeakSpectrum & a, const PeakSpectrum & b) const override;
46 
47  double operator()(const PeakSpectrum & a) const override;
48  // @}
49 
50  };
51 
52 }
53 
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Base class for compare functors of spectra, that return a similarity value for two spectra.
Definition: PeakSpectrumCompareFunctor.h:28
SpectrumPrecursorComparator compares just the parent mass of two spectra.
Definition: SpectrumPrecursorComparator.h:25
double operator()(const PeakSpectrum &a, const PeakSpectrum &b) const override
function call operator, calculates the similarity
SpectrumPrecursorComparator(const SpectrumPrecursorComparator &source)
copy constructor
SpectrumPrecursorComparator()
default constructor
SpectrumPrecursorComparator & operator=(const SpectrumPrecursorComparator &source)
assignment operator
double operator()(const PeakSpectrum &a) const override
calculates self similarity
~SpectrumPrecursorComparator() override
destructor
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19