Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

SpectrumCheapDPCorr Class Reference
[Spectrum Comparison]

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

Inheritance diagram for SpectrumCheapDPCorr:

PeakSpectrumCompareFunctor FactoryProduct DefaultParamHandler

List of all members.


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

SpectrumCheapDPCorr Parameters are explained on a separate page.
const PeakSpectrumlastconsensus () const
 return consensus spectrum from last funtion call operator
HashMap< 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 ()

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
HashMap< UInt, UIntpeak_map_
 last peak map

Static Private Attributes

static const String info_


Constructor & Destructor Documentation

SpectrumCheapDPCorr (  ) 

default constructor

SpectrumCheapDPCorr ( const SpectrumCheapDPCorr source  ) 

copy constructor

virtual ~SpectrumCheapDPCorr (  )  [virtual]

destructor


Member Function Documentation

SpectrumCheapDPCorr& operator= ( const SpectrumCheapDPCorr source  ) 

assignment 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.

static PeakSpectrumCompareFunctor* create (  )  [inline, static]

static const String getProductName (  )  [inline, static]

Reimplemented from PeakSpectrumCompareFunctor.

const PeakSpectrum& lastconsensus (  )  const

return consensus spectrum from last funtion call operator

HashMap<UInt, UInt> getPeakMap (  )  const

void setFactor ( double  f  ) 

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

double dynprog_ ( const PeakSpectrum ,
const PeakSpectrum ,
int  ,
int  ,
int  ,
int   
) const [private]

O(n^2) dynamical programming.

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

similarity of two peaks


Member Data Documentation

const String info_ [static, private]

PeakSpectrum lastconsensus_ [mutable, private]

consensus spectrum of the last comparison

bool keeppeaks_ [private]

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

double factor_ [mutable, private]

weighting factor for the next consensus spectrum

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

last peak map


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:43 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1