64 return "ZhangSimilarityScore";
72 double getFactor_(
double mz_tolerance,
double mz_difference,
bool is_gaussian =
false)
const;
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Base class for compare functors of spectra, that return a similarity value for two spectra.
Definition: PeakSpectrumCompareFunctor.h:28
A more convenient string class.
Definition: String.h:34
Similarity score of Zhang.
Definition: ZhangSimilarityScore.h:30
double getFactor_(double mz_tolerance, double mz_difference, bool is_gaussian=false) const
returns the factor associated with the m/z tolerance and m/z difference of the peaks
~ZhangSimilarityScore() override
destructor
ZhangSimilarityScore()
default constructor
double operator()(const PeakSpectrum &spec1, const PeakSpectrum &spec2) const override
function call operator, calculates the similarity
double operator()(const PeakSpectrum &spec) const override
calculates self similarity
ZhangSimilarityScore(const ZhangSimilarityScore &source)
copy constructor
ZhangSimilarityScore & operator=(const ZhangSimilarityScore &source)
assignment operator
static PeakSpectrumCompareFunctor * create()
Definition: ZhangSimilarityScore.h:59
static const String getProductName()
Definition: ZhangSimilarityScore.h:62
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22