36 #ifndef OPENMS_FILTERING_NOISEESTIMATION_SIGNALTONOISEESTIMATOR_H 
   37 #define OPENMS_FILTERING_NOISEESTIMATION_SIGNALTONOISEESTIMATOR_H 
   57   template <
typename Container = MSSpectrum<> >
 
   67     typedef typename PeakIterator::value_type 
PeakType;
 
   95       if (&source == 
this) 
return *
this;
 
   98       ProgressLogger::operator=(source);
 
  120     virtual void init(
const Container & 
c)
 
  122       init(c.begin(), c.end());
 
  183       while (run != scan_last_)
 
  185         m += (*run).getIntensity();
 
  194       while (run != scan_last_)
 
  202       GaussianEstimate value = {m, v};
 
  221 #endif //OPENMS_FILTERING_NOISEESTIMATION_SIGNALTONOISEESTIMATOR_H 
virtual double getSignalToNoise(const PeakIterator &data_point)
Definition: SignalToNoiseEstimator.h:130
virtual void computeSTN_(const PeakIterator &scan_first_, const PeakIterator &scan_last_)=0
computes the S/N values when init() is called 
SignalToNoiseEstimator & operator=(const SignalToNoiseEstimator &source)
Assignment operator. 
Definition: SignalToNoiseEstimator.h:93
Container::const_iterator PeakIterator
Definition: SignalToNoiseEstimator.h:66
double variance
mean of estimated Gaussian 
Definition: SignalToNoiseEstimator.h:171
double mean
Definition: SignalToNoiseEstimator.h:170
GaussianEstimate estimate_(const PeakIterator &scan_first_, const PeakIterator &scan_last_) const 
calculate mean & stdev of intensities of a spectrum 
Definition: SignalToNoiseEstimator.h:176
bool is_result_valid_
flag: set to true if SignalToNoise estimates are calculated and none of the params were changed...
Definition: SignalToNoiseEstimator.h:216
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:120
protected struct to store parameters my, sigma for a Gaussian distribution 
Definition: SignalToNoiseEstimator.h:168
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:111
PeakIterator last_
points to the right position next to the last raw data point in the interval 
Definition: SignalToNoiseEstimator.h:214
PeakIterator first_
points to the first raw data point in the interval 
Definition: SignalToNoiseEstimator.h:212
virtual ~SignalToNoiseEstimator()
Destructor. 
Definition: SignalToNoiseEstimator.h:106
PeakIterator::value_type PeakType
Definition: SignalToNoiseEstimator.h:67
SignalToNoiseEstimator()
Constructor. 
Definition: SignalToNoiseEstimator.h:73
virtual double getSignalToNoise(const PeakType &data_point)
Definition: SignalToNoiseEstimator.h:141
This class represents the abstract base class of a signal to noise estimator. 
Definition: SignalToNoiseEstimator.h:58
std::map< PeakType, double, typename PeakType::PositionLess > stn_estimates_
stores the noise estimate for each peak 
Definition: SignalToNoiseEstimator.h:209
Base class for all classes that want to report their progess. 
Definition: ProgressLogger.h:56
virtual DefaultParamHandler & operator=(const DefaultParamHandler &rhs)
Assignment operator. 
A base class for all classes handling default parameters. 
Definition: DefaultParamHandler.h:90
SignalToNoiseEstimator(const SignalToNoiseEstimator &source)
Copy constructor. 
Definition: SignalToNoiseEstimator.h:83