47 template <
typename SpectrumType>
50 if (spectrum.empty())
return;
53 typename SpectrumType::size_type count = spectrum.size();
60 if (it->getIntensity() != last_int)
64 last_int = it->getIntensity();
65 it->setIntensity(count);
67 while (it != spectrum.begin());
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
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:108
void sortByIntensity(bool reverse=false)
Lexicographically sorts the peaks by their intensity.
float IntensityType
Intensity type.
Definition: Peak1D.h:36
Scaler scales the peak by ranking the peaks and assigning intensity according to rank.
Definition: Scaler.h:27
void filterPeakSpectrum(PeakSpectrum &spectrum)
void filterPeakMap(PeakMap &exp)
Scaler()
default constructor
~Scaler() override
destructor
Scaler & operator=(const Scaler &source)
assignment operator
void filterSpectrum(SpectrumType &spectrum)
Definition: Scaler.h:48
Scaler(const Scaler &source)
copy constructor
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22