OpenMS
BinnedSpectralContrastAngle.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- 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 
60 protected:
61  void updateMembers_() override;
63  };
64 
65 }
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
double precursor_mass_tolerance_
Definition: BinnedSpectralContrastAngle.h:62
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
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