#include <OpenMS/COMPARISON/SPECTRA/SpectrumCheapDPCorr.h>
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 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 | |
static PeakSpectrumCompareFunctor * | create () |
static const String | getProductName () |
Public Member Functions | |
SpectrumCheapDPCorr () | |
default constructor | |
SpectrumCheapDPCorr (const SpectrumCheapDPCorr &source) | |
copy constructor | |
virtual | ~SpectrumCheapDPCorr () |
destructor | |
SpectrumCheapDPCorr & | operator= (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, UInt > | peak_map_ |
last peak map | |
Static Private Attributes | |
static const String | info_ |
default constructor
SpectrumCheapDPCorr | ( | const SpectrumCheapDPCorr & | source | ) |
copy constructor
virtual ~SpectrumCheapDPCorr | ( | ) | [virtual] |
destructor
SpectrumCheapDPCorr& operator= | ( | const SpectrumCheapDPCorr & | source | ) |
assignment operator
double operator() | ( | const PeakSpectrum & | a, | |
const PeakSpectrum & | b | |||
) | const [virtual] |
double operator() | ( | const PeakSpectrum & | a | ) | const [virtual] |
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
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
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
Generated Tue Apr 1 15:36:43 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |