128 double delta_D(
double top_hit,
double runner_up);
138 double compute_F(
double dot_product,
double delta_D,
double dot_bias);
148 return "SpectraSTSimilarityScore";
This is a binned representation of a PeakSpectrum.
Definition: BinnedSpectrum.h:81
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
Similarity score of SpectraST.
Definition: SpectraSTSimilarityScore.h:64
SpectraSTSimilarityScore & operator=(const SpectraSTSimilarityScore &source)
assignment operator
bool preprocess(PeakSpectrum &spec, float remove_peak_intensity_threshold=2.01, UInt cut_peaks_below=1000, Size min_peak_number=5, Size max_peak_number=150)
Preprocesses the spectrum.
double delta_D(double top_hit, double runner_up)
calculates the normalized distance between top_hit and runner_up.
~SpectraSTSimilarityScore() override
destructor
double dot_bias(const BinnedSpectrum &bin1, const BinnedSpectrum &bin2, double dot_product=-1) const
Calculates how much of the dot product is dominated by a few peaks.
double operator()(const BinnedSpectrum &bin1, const BinnedSpectrum &bin2) const
: calculates the dot product of the two spectra
SpectraSTSimilarityScore()
default constructor
double operator()(const PeakSpectrum &spec1, const PeakSpectrum &spec2) const override
: calculates the dot product of the two spectra
double operator()(const PeakSpectrum &spec) const override
: calculates the dot product of itself
SpectraSTSimilarityScore(const SpectraSTSimilarityScore &source)
copy constructor
BinnedSpectrum transform(const PeakSpectrum &spec)
spectrum is transformed into a binned spectrum with bin size 1 and spread 1 and the intensities are n...
static PeakSpectrumCompareFunctor * create()
Definition: SpectraSTSimilarityScore.h:143
double compute_F(double dot_product, double delta_D, double dot_bias)
computes the overall all score
static const String getProductName()
Reimplemented from PeakSpectrumCompareFunctor.
Definition: SpectraSTSimilarityScore.h:146
A more convenient string class.
Definition: String.h:60
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47