OpenMS
SpectrumAlignmentScore.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- 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 #include <OpenMS/KERNEL/Peak1D.h>
17 
18 #include <cmath>
19 
20 namespace OpenMS
21 {
22 
42  class OPENMS_DLLAPI SpectrumAlignmentScore :
44  {
45 public:
46 
47  // @name Constructors and Destructors
48  // @{
51 
54 
57  // @}
58 
59  // @name Operators
60  // @{
63 
65  double operator()(const PeakSpectrum & spec1, const PeakSpectrum & spec2) const override;
66 
67  double operator()(const PeakSpectrum & spec) const override;
68  // @}
69 
70  // @}
71 
72  };
73 
74 }
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
Similarity score via spectra alignment.
Definition: SpectrumAlignmentScore.h:44
~SpectrumAlignmentScore() override
destructor
double operator()(const PeakSpectrum &spec1, const PeakSpectrum &spec2) const override
function call operator, calculates the similarity
double operator()(const PeakSpectrum &spec) const override
calculates self similarity
SpectrumAlignmentScore & operator=(const SpectrumAlignmentScore &source)
assignment operator
SpectrumAlignmentScore()
default constructor
SpectrumAlignmentScore(const SpectrumAlignmentScore &source)
copy constructor
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19