Public Member Functions | Private Attributes | List of all members
cet::simple_stats Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/cetlib/v3_06_01/source/cetlib/simple_stats.h"

Public Member Functions

 simple_stats () noexcept
 
 simple_stats (double x) noexcept
 
std::size_t size () const noexcept
 
double max () const noexcept
 
double min () const noexcept
 
double small () const noexcept
 
double sum () const noexcept
 
double sumsq () const noexcept
 
double mean () const noexcept
 
double range () const noexcept
 
double err_mean (std::size_t nparams=1u) const noexcept
 
double rms (std::size_t nparams=1u) const noexcept
 
double rms0 (std::size_t nparams=0u) const noexcept
 
double err_rms (std::size_t nparams=1u) const noexcept
 
void reset () noexcept
 
void sample (double) noexcept
 
template<class Iter >
void sample (Iter begin, Iter end) noexcept
 

Private Attributes

std::size_t n_
 
double min_
 
double max_
 
double small_
 
double sum_
 
double sumsq_
 

Detailed Description

Definition at line 25 of file simple_stats.h.

Constructor & Destructor Documentation

cet::simple_stats::simple_stats ( )
noexcept
cet::simple_stats::simple_stats ( double  x)
noexcept

Member Function Documentation

double cet::simple_stats::err_mean ( std::size_t  nparams = 1u) const
noexcept

Referenced by sumsq().

double cet::simple_stats::err_rms ( std::size_t  nparams = 1u) const
noexcept

Referenced by sumsq().

double cet::simple_stats::max ( ) const
inlinenoexcept

Definition at line 40 of file simple_stats.h.

References max_.

41  {
42  return max_;
43  }
double cet::simple_stats::mean ( ) const
noexcept

Referenced by sumsq().

double cet::simple_stats::min ( ) const
inlinenoexcept

Definition at line 45 of file simple_stats.h.

References min_.

46  {
47  return min_;
48  }
double cet::simple_stats::range ( ) const
noexcept

Referenced by sumsq().

void cet::simple_stats::reset ( )
noexcept

Referenced by sumsq().

double cet::simple_stats::rms ( std::size_t  nparams = 1u) const
noexcept

Referenced by sumsq().

double cet::simple_stats::rms0 ( std::size_t  nparams = 0u) const
noexcept

Referenced by sumsq().

void cet::simple_stats::sample ( double  )
noexcept

Referenced by sample(), and sumsq().

template<class Iter >
void cet::simple_stats::sample ( Iter  begin,
Iter  end 
)
inlinenoexcept

Definition at line 78 of file simple_stats.h.

References febshutoff_auto::end, and sample().

79  {
80  for (; begin != end; ++begin)
81  sample(*begin);
82  }
void sample(double) noexcept
std::size_t cet::simple_stats::size ( void  ) const
inlinenoexcept

Definition at line 35 of file simple_stats.h.

References n_.

36  {
37  return n_;
38  }
std::size_t n_
Definition: simple_stats.h:85
double cet::simple_stats::small ( ) const
inlinenoexcept

Definition at line 50 of file simple_stats.h.

References small_.

51  {
52  return small_;
53  }
double cet::simple_stats::sum ( ) const
inlinenoexcept

Definition at line 55 of file simple_stats.h.

References sum_.

56  {
57  return sum_;
58  }
double cet::simple_stats::sumsq ( ) const
inlinenoexcept

Definition at line 60 of file simple_stats.h.

References err_mean(), err_rms(), mean(), range(), reset(), rms(), rms0(), sample(), sumsq_, and submit_hadd::u.

61  {
62  return sumsq_;
63  }

Member Data Documentation

double cet::simple_stats::max_
private

Definition at line 86 of file simple_stats.h.

Referenced by max().

double cet::simple_stats::min_
private

Definition at line 86 of file simple_stats.h.

Referenced by min().

std::size_t cet::simple_stats::n_
private

Definition at line 85 of file simple_stats.h.

Referenced by size().

double cet::simple_stats::small_
private

Definition at line 86 of file simple_stats.h.

Referenced by small().

double cet::simple_stats::sum_
private

Definition at line 87 of file simple_stats.h.

Referenced by sum().

double cet::simple_stats::sumsq_
private

Definition at line 87 of file simple_stats.h.

Referenced by sumsq().


The documentation for this class was generated from the following file: