90 return "ZhangSimilarityScore";
98 double getFactor_(
double mz_tolerance,
double mz_difference,
bool is_gaussian =
false)
const;
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
Base class for compare functors of spectra, that return a similarity value for two spectra.
Definition: PeakSpectrumCompareFunctor.h:54
A more convenient string class.
Definition: String.h:60
Similarity score of Zhang.
Definition: ZhangSimilarityScore.h:56
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:85
static const String getProductName()
Definition: ZhangSimilarityScore.h:88
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47