OpenMS
BinnedSpectralContrastAngle.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 namespace OpenMS
14 {
15 
31  class OPENMS_DLLAPI BinnedSpectralContrastAngle :
33  {
34 
35 public:
36 
39 
42 
45 
48 
55  double operator()(const BinnedSpectrum& spec1, const BinnedSpectrum& spec2) const override;
56 
58  double operator()(const BinnedSpectrum& spec) const override;
59 
62 
64  static const String getProductName()
65  {
66  return "BinnedSpectralContrastAngle";
67  }
68 
69 protected:
70  void updateMembers_() override;
72  };
73 
74 }
Compare functor scoring the spectral contrast angle for similarity measurement.
Definition: BinnedSpectralContrastAngle.h:33
BinnedSpectralContrastAngle & operator=(const BinnedSpectralContrastAngle &source)
assignment operator
~BinnedSpectralContrastAngle() override
destructor
double operator()(const BinnedSpectrum &spec) const override
function call operator, calculates self similarity
BinnedSpectralContrastAngle(const BinnedSpectralContrastAngle &source)
copy constructor
static BinnedSpectrumCompareFunctor * create()
Definition: BinnedSpectralContrastAngle.h:61
double precursor_mass_tolerance_
Definition: BinnedSpectralContrastAngle.h:71
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
BinnedSpectralContrastAngle()
default constructor
static const String getProductName()
get the identifier for this DefaultParamHandler
Definition: BinnedSpectralContrastAngle.h:64
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