Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Protected Member Functions

ZhangSimilarityScore Class Reference
[Spectrum Comparison]

Similarity score of Zhang. More...

#include <OpenMS/COMPARISON/SPECTRA/ZhangSimilarityScore.h>

Inheritance diagram for ZhangSimilarityScore:
PeakSpectrumCompareFunctor DefaultParamHandler

List of all members.

Public Member Functions

 ZhangSimilarityScore ()
 default constructor
 ZhangSimilarityScore (const ZhangSimilarityScore &source)
 copy constructor
virtual ~ZhangSimilarityScore ()
 destructor

ZhangSimilarityScoreoperator= (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 PeakSpectrumCompareFunctorcreate ()
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

Detailed Description

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:

NameTypeDefaultRestrictionsDescription
tolerance float0.2  defines the absolute (in Da) or relative (in ppm) tolerance
is_relative_tolerance stringfalse true, falseIf set to true, the tolerance is interpreted as relative
use_linear_factor stringfalse true, falseif true, the intensities are weighted with the relative m/z difference
use_gaussian_factor stringfalse true, falseif true, the intensities are weighted with the relative m/z difference using a gaussian

Note:

Constructor & Destructor Documentation

default constructor

ZhangSimilarityScore ( const ZhangSimilarityScore source  ) 

copy constructor

virtual ~ZhangSimilarityScore (  )  [virtual]

destructor


Member Function Documentation

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