OpenMS
BinnedSharedPeakCount.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: Mathias Walzer $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 //
9 #pragma once
10 
12 
13 #include <cfloat>
14 #include <cmath>
15 
16 namespace OpenMS
17 {
18 
34  class OPENMS_DLLAPI BinnedSharedPeakCount :
36  {
37 public:
38 
41 
44 
47 
50 
57  double operator()(const BinnedSpectrum& spec1, const BinnedSpectrum& spec2) const override;
58 
60  double operator()(const BinnedSpectrum& spec) const override;
61 
64 
66  static const String getProductName() { return "BinnedSharedPeakCount"; }
67 
68 protected:
69  void updateMembers_() override;
71  };
72 
73 }
Compare functor scoring the shared peaks for similarity measurement.
Definition: BinnedSharedPeakCount.h:36
~BinnedSharedPeakCount() override
destructor
double operator()(const BinnedSpectrum &spec) const override
function call operator, calculates self similarity
BinnedSharedPeakCount(const BinnedSharedPeakCount &source)
copy constructor
static BinnedSpectrumCompareFunctor * create()
Definition: BinnedSharedPeakCount.h:63
double precursor_mass_tolerance_
Definition: BinnedSharedPeakCount.h:70
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
double operator()(const BinnedSpectrum &spec1, const BinnedSpectrum &spec2) const override
BinnedSharedPeakCount & operator=(const BinnedSharedPeakCount &source)
assignment operator
BinnedSharedPeakCount()
default constructor
static const String getProductName()
get the identifier for this DefaultParamHandler
Definition: BinnedSharedPeakCount.h:66
Base class for compare functors of BinnedSpectra.
Definition: BinnedSpectrumCompareFunctor.h:32
This is a binned representation of a PeakSpectrum.
Definition: BinnedSpectrum.h:55
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22