OpenMS
BinnedSumAgreeingIntensities.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 <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 
68 
70  static const String getProductName()
71  {
72  return "BinnedSumAgreeingIntensities";
73  }
74 
75 protected:
76  void updateMembers_() override;
78  };
79 
80 }
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
static BinnedSpectrumCompareFunctor * create()
Definition: BinnedSumAgreeingIntensities.h:67
BinnedSumAgreeingIntensities(const BinnedSumAgreeingIntensities &source)
copy constructor
BinnedSumAgreeingIntensities()
default constructor
double precursor_mass_tolerance_
Definition: BinnedSumAgreeingIntensities.h:77
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
static const String getProductName()
get the identifier for this DefaultParamHandler
Definition: BinnedSumAgreeingIntensities.h:70
BinnedSumAgreeingIntensities & operator=(const BinnedSumAgreeingIntensities &source)
assignment operator
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22