35 #ifndef OPENMS_FILTERING_TRANSFORMERS_SCALER_H 
   36 #define OPENMS_FILTERING_TRANSFORMERS_SCALER_H 
   72     template <
typename SpectrumType>
 
   75       if (spectrum.empty()) 
return;
 
   77       spectrum.sortByIntensity();
 
   78       typename SpectrumType::size_type count = spectrum.size();
 
   80       typename SpectrumType::PeakType::IntensityType last_int = 0.0;
 
   81       typename SpectrumType::Iterator it = spectrum.end();
 
   85         if (it->getIntensity() != last_int)
 
   89         last_int = it->getIntensity();
 
   90         it->setIntensity(count);
 
   92       while (it != spectrum.begin());
 
   97     void filterPeakMap(
PeakMap & exp);
 
  106 #endif //OPENMS_FILTERING_TRANSFORMERS_SCALER_H 
void filterSpectrum(SpectrumType &spectrum)
Definition: Scaler.h:73
Scaler scales the peak by ranking the peaks and assigning intensity according to rank. 
Definition: Scaler.h:50
A base class for all classes handling default parameters. 
Definition: DefaultParamHandler.h:90