Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes

SignalToNoiseEstimator< Container > Class Template Reference

This class represents the abstract base class of a signal to noise estimator. More...

#include <OpenMS/FILTERING/NOISEESTIMATION/SignalToNoiseEstimator.h>

Inheritance diagram for SignalToNoiseEstimator< Container >:
DefaultParamHandler ProgressLogger SignalToNoiseEstimatorMeanIterative< Container > SignalToNoiseEstimatorMedian< Container >

List of all members.

Classes

struct  GaussianEstimate
 protected struct to store parameters my, sigma for a Gaussian distribution More...

Public Types

Type definitions

typedef Container::const_iterator PeakIterator
typedef PeakIterator::value_type PeakType

Public Member Functions

 SignalToNoiseEstimator ()
 Constructor.
 SignalToNoiseEstimator (const SignalToNoiseEstimator &source)
 Copy constructor.
SignalToNoiseEstimatoroperator= (const SignalToNoiseEstimator &source)
 Assignment operator.
virtual ~SignalToNoiseEstimator ()
 Destructor.
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 estimated immediately.
virtual void init (const Container &c)
 Set the start and endpoint of the raw data interval, for which signal to noise ratios will be estimated immediately.
virtual double getSignalToNoise (const PeakIterator &data_point)
virtual double getSignalToNoise (const PeakType &data_point)

Protected Member Functions

virtual void computeSTN_ (const PeakIterator &scan_first_, const PeakIterator &scan_last_)=0
 computes the S/N values when init() is called
GaussianEstimate estimate_ (const PeakIterator &scan_first_, const PeakIterator &scan_last_) const
 calculate mean & stdev of intensities of a spectrum

Protected Attributes

std::map< PeakType, double,
typename
PeakType::PositionLess
stn_estimates_
 stores the noise estimate for each peak
PeakIterator first_
 points to the first raw data point in the interval
PeakIterator last_
 points to the right position next to the last raw data point in the interval
bool is_result_valid_
 flag: set to true if SignalToNoise estimates are calculated and none of the params were changed. otherwise false.

Detailed Description

template<typename Container = MSSpectrum<>>
class OpenMS::SignalToNoiseEstimator< Container >

This class represents the abstract base class of a signal to noise estimator.

A signal to noise estimator should provide the signal to noise ratio of all raw data points in a given interval [first_,last_).


Member Typedef Documentation


Constructor & Destructor Documentation

SignalToNoiseEstimator (  )  [inline]

Constructor.

SignalToNoiseEstimator ( const SignalToNoiseEstimator< Container > &  source  )  [inline]

Copy constructor.

virtual ~SignalToNoiseEstimator (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual void computeSTN_ ( const PeakIterator scan_first_,
const PeakIterator scan_last_ 
) [protected, pure virtual]
GaussianEstimate estimate_ ( const PeakIterator scan_first_,
const PeakIterator scan_last_ 
) const [inline, protected]
virtual double getSignalToNoise ( const PeakType data_point  )  [inline, virtual]
virtual double getSignalToNoise ( const PeakIterator data_point  )  [inline, virtual]

Return to signal/noise estimate for data point data_point

Note:
the first query to this function will take longer, as all SignalToNoise values are calculated
you will get a warning to stderr if more than 20% of the noise estimates used sparse windows

Referenced by SimpleSeeder< PeakType, FeatureType >::initialize_(), PeakPickerHiRes::pick(), and FeatureFinderAlgorithmMRM< PeakType, FeatureType >::run().

virtual void init ( const Container &  c  )  [inline, virtual]

Set the start and endpoint of the raw data interval, for which signal to noise ratios will be estimated immediately.

virtual void init ( const PeakIterator it_begin,
const PeakIterator it_end 
) [inline, virtual]
SignalToNoiseEstimator& operator= ( const SignalToNoiseEstimator< Container > &  source  )  [inline]

Member Data Documentation


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:53 using doxygen 1.7.1