OpenMS
SteinScottImproveScore.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: Vipul Patel $
7 // --------------------------------------------------------------------------
8 //
9 #pragma once
10 
12 #include <cmath>
13 
14 namespace OpenMS
15 {
48  class OPENMS_DLLAPI SteinScottImproveScore :
50  {
51 
52 public:
66  double operator()(const PeakSpectrum & spec1, const PeakSpectrum & spec2) const override;
72  double operator()(const PeakSpectrum & spec) const override;
74  {
75  return new SteinScottImproveScore();
76  }
77 
78  static const String getProductName()
79  {
80  return "SteinScottImproveScore";
81  }
82 
83  };
84 }
85 
86 
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 based of Stein & Scott.
Definition: SteinScottImproveScore.h:50
SteinScottImproveScore & operator=(const SteinScottImproveScore &source)
assignment operator
SteinScottImproveScore(const SteinScottImproveScore &source)
copy constructor
double operator()(const PeakSpectrum &spec1, const PeakSpectrum &spec2) const override
Similarity pairwise score.
double operator()(const PeakSpectrum &spec) const override
Similarity pairwise score itself.
~SteinScottImproveScore() override
destructor
SteinScottImproveScore()
default constructor
static PeakSpectrumCompareFunctor * create()
Definition: SteinScottImproveScore.h:73
static const String getProductName()
Definition: SteinScottImproveScore.h:78
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22