35 #ifndef OPENMS_FILTERING_TRANSFORMERS_SQRTMOWER_H
36 #define OPENMS_FILTERING_TRANSFORMERS_SQRTMOWER_H
69 template <
typename SpectrumType>
73 for (
typename SpectrumType::Iterator it = spectrum.begin(); it != spectrum.end(); ++it)
81 it->setIntensity(std::sqrt(intens));
85 std::cerr <<
"Warning negative intensities were set to zero" << std::endl;
92 void filterPeakMap(
PeakMap & exp);
102 #endif // OPENMS_FILTERING_TRANSFORMERS_SQRTMOWER_H
void filterSpectrum(SpectrumType &spectrum)
Definition: SqrtMower.h:70
Scales the intensity of peaks to the sqrt.
Definition: SqrtMower.h:50
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:90