35 #ifndef OPENMS_FILTERING_TRANSFORMERS_NLARGEST_H
36 #define OPENMS_FILTERING_TRANSFORMERS_NLARGEST_H
75 template <
typename SpectrumType>
78 if (spectrum.size() <= peakcount_)
return;
81 spectrum.sortByIntensity(
true);
84 spectrum.resize(peakcount_);
89 void filterPeakMap(
PeakMap & exp);
96 void updateMembers_();
105 #endif //OPENMS_FILTERING_TRANSFORMERS_NLARGEST_H
void filterSpectrum(SpectrumType &spectrum)
Definition: NLargest.h:76
NLargest removes all but the n largest peaks.
Definition: NLargest.h:52
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
UInt peakcount_
Definition: NLargest.h:97