74 template <
typename SpectrumType>
77 threshold_ = ((double)param_.getValue(
"threshold"));
78 std::vector<Size> indices;
79 for (
Size i = 0; i != spectrum.size(); ++i)
81 if (spectrum[i].getIntensity() >= threshold_)
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:80
The representation of a 1D spectrum.
Definition: MSSpectrum.h:71
MSSpectrum & select(const std::vector< Size > &indices)
ThresholdMower removes all peaks below a threshold.
Definition: ThresholdMower.h:53
~ThresholdMower() override
destructor
ThresholdMower(const ThresholdMower &source)
copy constructor
void filterPeakSpectrum(PeakSpectrum &spectrum)
ThresholdMower & operator=(const ThresholdMower &source)
assignment operator
void filterPeakMap(PeakMap &exp)
ThresholdMower()
default constructor
void filterSpectrum(SpectrumType &spectrum)
Definition: ThresholdMower.h:75
double threshold_
Definition: ThresholdMower.h:96
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47