77 template <
typename SpectrumType>
80 if (spectrum.size() <= peakcount_)
return;
86 std::vector<Size> indices;
87 for (
Size i = 0; i != peakcount_; ++i)
96 void filterPeakMap(
PeakMap & exp);
103 void updateMembers_()
override;
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
void sortByIntensity(bool reverse=false)
Lexicographically sorts the peaks by their intensity.
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
void filterSpectrum(SpectrumType &spectrum)
Definition: NLargest.h:78
NLargest removes all but the n largest peaks.
Definition: NLargest.h:54
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
MSSpectrum & select(const std::vector< Size > &indices)
UInt peakcount_
Definition: NLargest.h:104