Similarity score of Zhang. More...
#include <OpenMS/COMPARISON/SPECTRA/ZhangSimilarityScore.h>
Public Member Functions | |
| ZhangSimilarityScore () | |
| default constructor | |
| ZhangSimilarityScore (const ZhangSimilarityScore &source) | |
| copy constructor | |
| virtual | ~ZhangSimilarityScore () |
| destructor | |
| ZhangSimilarityScore & | operator= (const ZhangSimilarityScore &source) |
| assignment operator | |
| double | operator() (const PeakSpectrum &spec1, const PeakSpectrum &spec2) const |
| function call operator, calculates the similarity | |
| double | operator() (const PeakSpectrum &spec) const |
| calculates self similarity | |
Static Public Member Functions | |
| static PeakSpectrumCompareFunctor * | create () |
| static const String | getProductName () |
Protected Member Functions | |
| 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 | |
Similarity score of Zhang.
The details of the score can be found in: Z. Zhang, Prediction of Low-Energy Collision-Induced Dissociation Spectra of Peptides, Anal. Chem., 76 (14), 3908 - 3922, 2004
Parameters of this class are:| Name | Type | Default | Restrictions | Description |
|---|---|---|---|---|
| tolerance | float | 0.2 | defines the absolute (in Da) or relative (in ppm) tolerance | |
| is_relative_tolerance | string | false | true, false | If set to true, the tolerance is interpreted as relative |
| use_linear_factor | string | false | true, false | if true, the intensities are weighted with the relative m/z difference |
| use_gaussian_factor | string | false | true, false | if true, the intensities are weighted with the relative m/z difference using a gaussian |
default constructor
| ZhangSimilarityScore | ( | const ZhangSimilarityScore & | source | ) |
copy constructor
| virtual ~ZhangSimilarityScore | ( | ) | [virtual] |
destructor
| static PeakSpectrumCompareFunctor* create | ( | ) | [inline, static] |
| double getFactor_ | ( | double | mz_tolerance, | |
| double | mz_difference, | |||
| bool | is_gaussian = false | |||
| ) | const [protected] |
returns the factor associated with the m/z tolerance and m/z difference of the peaks
| static const String getProductName | ( | ) | [inline, static] |
Reimplemented from PeakSpectrumCompareFunctor.
| double operator() | ( | const PeakSpectrum & | a, | |
| const PeakSpectrum & | b | |||
| ) | const [virtual] |
function call operator, calculates the similarity
Implements PeakSpectrumCompareFunctor.
| double operator() | ( | const PeakSpectrum & | a | ) | const [virtual] |
calculates self similarity
Implements PeakSpectrumCompareFunctor.
| ZhangSimilarityScore& operator= | ( | const ZhangSimilarityScore & | source | ) |
assignment operator
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:51 using doxygen 1.7.1 |