CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
count_t Class Reference

#include <ErrorPropogationTypes.h>

Inheritance diagram for count_t:

Public Member Functions

 count_t ()
 
 count_t (unsigned long n)
 
double error () const
 
unsigned long error2 () const
 
unsigned long operator() () const
 
count_t operator++ ()
 
count_t operator+= (const count_t &R)
 
bool operator< (const count_t &R) const
 
double relative_error () const
 

Private Attributes

unsigned long count
 

Detailed Description

Definition at line 7 of file ErrorPropogationTypes.h.

Constructor & Destructor Documentation

◆ count_t() [1/2]

count_t::count_t ( )
inline

Definition at line 14 of file ErrorPropogationTypes.h.

14 : count(0) {}

◆ count_t() [2/2]

count_t::count_t ( unsigned long  n)
inline

Definition at line 15 of file ErrorPropogationTypes.h.

15 : count(n) {}

Member Function Documentation

◆ error()

double count_t::error ( ) const
inline

Definition at line 27 of file ErrorPropogationTypes.h.

27 { return sqrt(count); }

References count, and mathSSE::sqrt().

Referenced by Page1Parser.Page1Parser::check_for_whole_start_tag().

◆ error2()

unsigned long count_t::error2 ( ) const
inline

Definition at line 26 of file ErrorPropogationTypes.h.

26 { return count; }

References count.

◆ operator()()

unsigned long count_t::operator() ( ) const
inline

Definition at line 25 of file ErrorPropogationTypes.h.

25 { return count; }

References count.

◆ operator++()

count_t count_t::operator++ ( void  )
inline

Definition at line 17 of file ErrorPropogationTypes.h.

17  {
18  ++count;
19  return *this;
20  }

References count.

◆ operator+=()

count_t count_t::operator+= ( const count_t R)
inline

Definition at line 21 of file ErrorPropogationTypes.h.

21  {
22  count += R.count;
23  return *this;
24  }

References count, and dttmaxenums::R.

◆ operator<()

bool count_t::operator< ( const count_t R) const
inline

Definition at line 16 of file ErrorPropogationTypes.h.

16 { return count < R.count; }

References count, and dttmaxenums::R.

◆ relative_error()

double count_t::relative_error ( ) const
inline

Definition at line 28 of file ErrorPropogationTypes.h.

28 { return 1 / sqrt(count); }

References count, and mathSSE::sqrt().

Member Data Documentation

◆ count

unsigned long count_t::count
private
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
count_t::count
unsigned long count
Definition: ErrorPropogationTypes.h:11
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
dttmaxenums::R
Definition: DTTMax.h:29