96 return "SpectrumCheapDPCorr";
115 double comparepeaks_(
double posa,
double posb,
double inta,
double intb)
const;
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
Base class for compare functors of spectra, that return a similarity value for two spectra.
Definition: PeakSpectrumCompareFunctor.h:54
SpectrumCheapDPCorr calculates an optimal alignment on stick spectra.
Definition: SpectrumCheapDPCorr.h:63
void setFactor(double f)
set weighting of the second spectrum for consensus from next function call operator
double operator()(const PeakSpectrum &a, const PeakSpectrum &b) const override
function call operator, calculates the similarity
std::map< UInt, UInt > getPeakMap() const
static const String info_
Definition: SpectrumCheapDPCorr.h:117
SpectrumCheapDPCorr(const SpectrumCheapDPCorr &source)
copy constructor
double comparepeaks_(double posa, double posb, double inta, double intb) const
similarity of two peaks
bool keeppeaks_
should peaks with no alignment partner be kept in the consensus?
Definition: SpectrumCheapDPCorr.h:123
~SpectrumCheapDPCorr() override
destructor
std::map< UInt, UInt > peak_map_
last peak map
Definition: SpectrumCheapDPCorr.h:129
double operator()(const PeakSpectrum &a) const override
calculates self similarity
double factor_
weighting factor for the next consensus spectrum
Definition: SpectrumCheapDPCorr.h:126
SpectrumCheapDPCorr()
default constructor
SpectrumCheapDPCorr & operator=(const SpectrumCheapDPCorr &source)
assignment operator
const PeakSpectrum & lastconsensus() const
return consensus spectrum from last function call operator
static PeakSpectrumCompareFunctor * create()
Definition: SpectrumCheapDPCorr.h:91
static const String getProductName()
Definition: SpectrumCheapDPCorr.h:94
double dynprog_(const PeakSpectrum &, const PeakSpectrum &, int, int, int, int) const
O(n^2) dynamical programming.
PeakSpectrum lastconsensus_
consensus spectrum of the last comparison
Definition: SpectrumCheapDPCorr.h:120
A more convenient string class.
Definition: String.h:60
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48