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());
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:73
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:128
void sortByIntensity(bool reverse=false)
Lexicographically sorts the peaks by their intensity.
float IntensityType
Intensity type.
Definition: Peak1D.h:62
Scaler scales the peak by ranking the peaks and assigning intensity according to rank.
Definition: Scaler.h:53
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:74
Scaler(const Scaler &source)
copy constructor
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47