CMS 3D CMS Logo

Public Member Functions | Private Attributes

count_t Class Reference

#include <ErrorPropogationTypes.h>

List of all members.

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::count_t ( ) [inline]

Definition at line 16 of file ErrorPropogationTypes.h.

: count(0) {}
count_t::count_t ( unsigned long  n) [inline]

Definition at line 17 of file ErrorPropogationTypes.h.

: count(n) {}

Member Function Documentation

double count_t::error ( ) const [inline]

Definition at line 23 of file ErrorPropogationTypes.h.

References count, and mathSSE::sqrt().

{return sqrt(count);}                       
unsigned long count_t::error2 ( ) const [inline]

Definition at line 22 of file ErrorPropogationTypes.h.

References count.

Referenced by stats_t< T >::operator==().

{return count;}                     
unsigned long count_t::operator() ( ) const [inline]

Definition at line 21 of file ErrorPropogationTypes.h.

References count.

{return count;}                 
count_t count_t::operator++ ( void  ) [inline]

Definition at line 19 of file ErrorPropogationTypes.h.

References count.

{++count; return *this;}                    
count_t count_t::operator+= ( const count_t R) [inline]

Definition at line 20 of file ErrorPropogationTypes.h.

References count.

{count += R.count; return *this;}
bool count_t::operator< ( const count_t R) const [inline]

Definition at line 18 of file ErrorPropogationTypes.h.

References count.

{ return count < R.count;}
double count_t::relative_error ( ) const [inline]

Definition at line 24 of file ErrorPropogationTypes.h.

References count, and mathSSE::sqrt().

{return 1/sqrt(count);}            

Member Data Documentation

unsigned long count_t::count [private]