|
OpenMS
2.5.0
|
Go to the documentation of this file.
55 template <
typename Container = MSSpectrum>
65 typedef typename PeakIterator::value_type
PeakType;
93 if (&source ==
this)
return *
this;
118 virtual void init(
const Container &
c)
181 while (run != scan_last_)
183 m += (*run).getIntensity();
192 while (run != scan_last_)
194 double tmp(m - (*run).getIntensity());
200 GaussianEstimate value = {m, v};
bool is_result_valid_
flag: set to true if SignalToNoise estimates are calculated and none of the params were changed....
Definition: SignalToNoiseEstimator.h:214
SignalToNoiseEstimator()
Constructor.
Definition: SignalToNoiseEstimator.h:71
virtual DefaultParamHandler & operator=(const DefaultParamHandler &rhs)
Assignment operator.
virtual double getSignalToNoise(const PeakIterator &data_point)
Definition: SignalToNoiseEstimator.h:128
std::map< PeakType, double, typename PeakType::PositionLess > stn_estimates_
stores the noise estimate for each peak
Definition: SignalToNoiseEstimator.h:207
SignalToNoiseEstimator(const SignalToNoiseEstimator &source)
Copy constructor.
Definition: SignalToNoiseEstimator.h:81
This class represents the abstract base class of a signal to noise estimator.
Definition: SignalToNoiseEstimator.h:56
virtual void init(const PeakIterator &it_begin, const PeakIterator &it_end)
Set the start and endpoint of the raw data interval, for which signal to noise ratios will be estimat...
Definition: SignalToNoiseEstimator.h:109
double variance
variance of estimated Gaussian
Definition: SignalToNoiseEstimator.h:169
virtual void init(const Container &c)
Set the start and endpoint of the raw data interval, for which signal to noise ratios will be estimat...
Definition: SignalToNoiseEstimator.h:118
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
PeakIterator::value_type PeakType
Definition: SignalToNoiseEstimator.h:65
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
SignalToNoiseEstimator & operator=(const SignalToNoiseEstimator &source)
Assignment operator.
Definition: SignalToNoiseEstimator.h:91
ProgressLogger & operator=(const ProgressLogger &other)
Assignment Operator.
virtual double getSignalToNoise(const PeakType &data_point)
Definition: SignalToNoiseEstimator.h:139
PeakIterator last_
points to the right position next to the last raw data point in the interval
Definition: SignalToNoiseEstimator.h:212
double mean
mean of estimated Gaussian
Definition: SignalToNoiseEstimator.h:168
GaussianEstimate estimate_(const PeakIterator &scan_first_, const PeakIterator &scan_last_) const
calculate mean & stdev of intensities of a spectrum
Definition: SignalToNoiseEstimator.h:174
PeakIterator first_
points to the first raw data point in the interval
Definition: SignalToNoiseEstimator.h:210
virtual void computeSTN_(const PeakIterator &scan_first_, const PeakIterator &scan_last_)=0
computes the S/N values when init() is called
Container::const_iterator PeakIterator
Definition: SignalToNoiseEstimator.h:64
~SignalToNoiseEstimator() override
Destructor.
Definition: SignalToNoiseEstimator.h:104
protected struct to store parameters my, sigma for a Gaussian distribution
Definition: SignalToNoiseEstimator.h:166