OpenMS
SpectrumAlignmentScore.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: 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  // @name Accessors
71  // @{
74 
76  static const String getProductName()
77  {
78  return "SpectrumAlignmentScore";
79  }
80 
81  // @}
82 
83  };
84 
85 }
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
static PeakSpectrumCompareFunctor * create()
Definition: SpectrumAlignmentScore.h:73
SpectrumAlignmentScore & operator=(const SpectrumAlignmentScore &source)
assignment operator
SpectrumAlignmentScore()
default constructor
static const String getProductName()
Definition: SpectrumAlignmentScore.h:76
SpectrumAlignmentScore(const SpectrumAlignmentScore &source)
copy constructor
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22