OpenMS  2.7.0
Public Types | Public Member Functions | Private Attributes | List of all members
mean_and_stddev Class Reference

functor to compute the mean and stddev of sequence using the std::foreach algorithm More...

#include <OpenMS/OPENSWATHALGO/ALGO/StatsHelpers.h>

Collaboration diagram for mean_and_stddev:
[legend]

Public Types

typedef double argument_type
 
typedef double result_type
 

Public Member Functions

 mean_and_stddev ()
 
void operator() (double sample)
 
double sample_variance () const
 
double standard_variance () const
 
double sample_stddev () const
 
double standard_stddev () const
 
double mean () const
 
unsigned long count () const
 
double variance () const
 
double stddev () const
 
double operator() () const
 

Private Attributes

double m_
 
double q_
 
unsigned long c_
 

Detailed Description

functor to compute the mean and stddev of sequence using the std::foreach algorithm

Member Typedef Documentation

◆ argument_type

typedef double argument_type

◆ result_type

typedef double result_type

Constructor & Destructor Documentation

◆ mean_and_stddev()

mean_and_stddev ( )
inline

Member Function Documentation

◆ count()

unsigned long count ( ) const
inline

◆ mean()

double mean ( ) const
inline

◆ operator()() [1/2]

double operator() ( ) const
inline

◆ operator()() [2/2]

void operator() ( double  sample)
inline

◆ sample_stddev()

double sample_stddev ( ) const
inline

◆ sample_variance()

double sample_variance ( ) const
inline

◆ standard_stddev()

double standard_stddev ( ) const
inline

◆ standard_variance()

double standard_variance ( ) const
inline

◆ stddev()

double stddev ( ) const
inline

◆ variance()

double variance ( ) const
inline

Member Data Documentation

◆ c_

unsigned long c_
private

◆ m_

double m_
private

◆ q_

double q_
private