Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Private Member Functions | Private Attributes | Static Private Attributes

SpectrumCheapDPCorr Class Reference
[Spectrum Comparison]

SpectrumCheapDPCorr calculates an optimal alignment on stick spectra. More...

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

Inheritance diagram for SpectrumCheapDPCorr:
PeakSpectrumCompareFunctor DefaultParamHandler

List of all members.

Public Member Functions

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

SpectrumCheapDPCorroperator= (const SpectrumCheapDPCorr &source)
 assignment operator
double operator() (const PeakSpectrum &a, const PeakSpectrum &b) const
 function call operator, calculates the similarity
double operator() (const PeakSpectrum &a) const
 calculates self similarity

Private Member Functions

double dynprog_ (const PeakSpectrum &, const PeakSpectrum &, int, int, int, int) const
 O(n^2) dynamical programming.
double comparepeaks_ (double posa, double posb, double inta, double intb) const
 similarity of two peaks

Private Attributes

PeakSpectrum lastconsensus_
 consensus spectrum of the last comparison
bool keeppeaks_
 should peaks with no alignment partner be kept in the consensus?
double factor_
 weighting factor for the next consensus spectrum
Map< UInt, UIntpeak_map_
 last peak map

Static Private Attributes

static const String info_



const PeakSpectrumlastconsensus () const
 return consensus spectrum from last funtion call operator
Map< UInt, UIntgetPeakMap () const
void setFactor (double f)
 set weighting of the second spectrum for consensus from next function call operator
static PeakSpectrumCompareFunctorcreate ()
static const String getProductName ()

Detailed Description

SpectrumCheapDPCorr calculates an optimal alignment on stick spectra.

to save computing time only Peak Pairs that could get a score > 0 are considered which Peak Pairs could get scores > 0 ?
Peaks get a score depending on the difference in position and the heights of the peaks
pairs with positions that differ more than some limit get score 0

Parameters of this class are:

NameTypeDefaultRestrictionsDescription
variation float0.001  Maximum difference in position (in percent of the current m/z).
Note that big values of variation ( 1 being the maximum ) result in consideration of all possible pairings which has a running time of O(n*n)
int_cnt int0  How the peak heights are used in the score.
0 = product
1 = sqrt(product)
2 = sum
3 = agreeing intensity
keeppeaks int0  Flag that states if peaks without alignment partner are kept in the consensus spectrum.

Note:

Constructor & Destructor Documentation

default constructor

SpectrumCheapDPCorr ( const SpectrumCheapDPCorr source  ) 

copy constructor

virtual ~SpectrumCheapDPCorr (  )  [virtual]

destructor


Member Function Documentation

double comparepeaks_ ( double  posa,
double  posb,
double  inta,
double  intb 
) const [private]

similarity of two peaks

static PeakSpectrumCompareFunctor* create (  )  [inline, static]
double dynprog_ ( const PeakSpectrum ,
const PeakSpectrum ,
int  ,
int  ,
int  ,
int   
) const [private]

O(n^2) dynamical programming.

Map<UInt, UInt> getPeakMap (  )  const
static const String getProductName (  )  [inline, static]

Reimplemented from PeakSpectrumCompareFunctor.

const PeakSpectrum& lastconsensus (  )  const

return consensus spectrum from last funtion call operator

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.

SpectrumCheapDPCorr& operator= ( const SpectrumCheapDPCorr source  ) 

assignment operator

void setFactor ( double  f  ) 

set weighting of the second spectrum for consensus from next function call operator


Member Data Documentation

double factor_ [mutable, private]

weighting factor for the next consensus spectrum

const String info_ [static, private]
bool keeppeaks_ [private]

should peaks with no alignment partner be kept in the consensus?

PeakSpectrum lastconsensus_ [mutable, private]

consensus spectrum of the last comparison

Map<UInt, UInt> peak_map_ [mutable, private]

last peak map


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:51 using doxygen 1.7.1