35 #ifndef OPENMS_FILTERING_TRANSFORMERS_SQRTMOWER_H 36 #define OPENMS_FILTERING_TRANSFORMERS_SQRTMOWER_H 71 template <
typename SpectrumType>
77 double intens = it->getIntensity();
83 it->setIntensity(std::sqrt(intens));
87 std::cerr <<
"Warning negative intensities were set to zero" << std::endl;
94 void filterPeakMap(
PeakMap & exp);
104 #endif // OPENMS_FILTERING_TRANSFORMERS_SQRTMOWER_H
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:102
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
void filterSpectrum(SpectrumType &spectrum)
Definition: SqrtMower.h:72
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:82
Scales the intensity of peaks to the sqrt.
Definition: SqrtMower.h:52
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92