48 template <
typename SpectrumType>
51 threshold_ = ((double)param_.getValue(
"threshold"));
52 std::vector<Size> indices;
53 for (
Size i = 0; i != spectrum.size(); ++i)
55 if (spectrum[i].getIntensity() >= threshold_)
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:46
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
MSSpectrum & select(const std::vector< Size > &indices)
Removes all peaks below an intensity threshold.
Definition: ThresholdMower.h:27
~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:49
double threshold_
Definition: ThresholdMower.h:70
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19