73 template <
typename SpectrumType>
76 if (spectrum.empty())
return;
79 typename SpectrumType::size_type count = spectrum.size();
86 if (it->getIntensity() != last_int)
90 last_int = it->getIntensity();
91 it->setIntensity(count);
93 while (it != spectrum.begin());
98 void filterPeakMap(
PeakMap & exp);
void filterSpectrum(SpectrumType &spectrum)
Definition: Scaler.h:74
Scaler scales the peak by ranking the peaks and assigning intensity according to rank.
Definition: Scaler.h:51
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:101
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
float IntensityType
Intensity type.
Definition: Peak1D.h:63
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91