35 #ifndef OPENMS_FILTERING_TRANSFORMERS_THRESHOLDMOWER_H
36 #define OPENMS_FILTERING_TRANSFORMERS_THRESHOLDMOWER_H
73 template <
typename SpectrumType>
77 spectrum.sortByIntensity();
81 threshold_ = ((
double)param_.getValue(
"threshold"));
85 lower_bound(spectrum.begin(), spectrum.end(), p,
typename SpectrumType::PeakType::IntensityLess())
91 void filterPeakMap(
PeakMap & exp);
103 #endif //OPENMS_FILTERING_TRANSFORMERS_THRESHOLDMOWER_H
Peak2D PeakType
Definition: MassTrace.h:49
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
void setIntensity(IntensityType intensity)
Non-mutable access to the data point intensity (height)
Definition: Peak2D.h:167
ThresholdMower removes all peaks below a threshold.
Definition: ThresholdMower.h:50
double threshold_
Definition: ThresholdMower.h:96
void filterSpectrum(SpectrumType &spectrum)
Definition: ThresholdMower.h:74
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92