OpenMS
BinnedSharedPeakCount.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: 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 
62 protected:
63  void updateMembers_() override;
65  };
66 
67 }
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
double precursor_mass_tolerance_
Definition: BinnedSharedPeakCount.h:64
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
Base class for compare functors of BinnedSpectra.
Definition: BinnedSpectrumCompareFunctor.h:32
This is a binned representation of a PeakSpectrum.
Definition: BinnedSpectrum.h:55
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19