OpenMS
BinnedSumAgreeingIntensities.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 <cmath>
14 #include <cfloat>
15 
16 namespace OpenMS
17 {
18 
38  class OPENMS_DLLAPI BinnedSumAgreeingIntensities :
40  {
41 public:
42 
45 
48 
51 
54 
61  double operator()(const BinnedSpectrum& spec1, const BinnedSpectrum& spec2) const override;
62 
64  double operator()(const BinnedSpectrum& spec) const override;
65 
66 protected:
67  void updateMembers_() override;
69  };
70 
71 }
Base class for compare functors of BinnedSpectra.
Definition: BinnedSpectrumCompareFunctor.h:32
This is a binned representation of a PeakSpectrum.
Definition: BinnedSpectrum.h:55
Sum of agreeing intensities for similarity measurement.
Definition: BinnedSumAgreeingIntensities.h:40
double operator()(const BinnedSpectrum &spec) const override
function call operator, calculates self similarity
BinnedSumAgreeingIntensities(const BinnedSumAgreeingIntensities &source)
copy constructor
BinnedSumAgreeingIntensities()
default constructor
double precursor_mass_tolerance_
Definition: BinnedSumAgreeingIntensities.h:68
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
~BinnedSumAgreeingIntensities() override
destructor
BinnedSumAgreeingIntensities & operator=(const BinnedSumAgreeingIntensities &source)
assignment operator
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19