70 template <
typename SpectrumType>
76 double intens = it->getIntensity();
82 it->setIntensity(std::sqrt(intens));
86 std::cerr <<
"Warning negative intensities were set to zero" << std::endl;
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:72
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:134
Scales the intensity of peaks to the sqrt.
Definition: SqrtMower.h:53
SqrtMower()
default constructor
SqrtMower & operator=(const SqrtMower &source)
assignment operator
void filterPeakSpectrum(PeakSpectrum &spectrum)
void filterPeakMap(PeakMap &exp)
SqrtMower(const SqrtMower &source)
copy constructor
void filterSpectrum(SpectrumType &spectrum)
Definition: SqrtMower.h:71
~SqrtMower() override
destructor
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48