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:45
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
Scales each peak by ranking the peaks per spectrum and assigning intensity according to rank.
Definition: RankScaler.h:27
RankScaler(const RankScaler &source)
copy constructor
void filterPeakSpectrum(PeakSpectrum &spectrum)
~RankScaler() override
destructor
void filterPeakMap(PeakMap &exp)
RankScaler()
default constructor
void filterSpectrum(SpectrumType &spectrum)
Definition: RankScaler.h:48
RankScaler & operator=(const RankScaler &source)
assignment operator
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19