Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
moab::StatData::Stat< T > Struct Template Reference
+ Inheritance diagram for moab::StatData::Stat< T >:
+ Collaboration diagram for moab::StatData::Stat< T >:

Public Member Functions

 Stat ()
void accum (T v)

Public Attributes

T min
T max
double sum
double sqr

Detailed Description

template<typename T>
struct moab::StatData::Stat< T >

Definition at line 1765 of file OrientedBoxTreeTool.cpp.


Constructor & Destructor Documentation

template<typename T>
moab::StatData::Stat< T >::Stat ( ) [inline]

Definition at line 1769 of file OrientedBoxTreeTool.cpp.

               : sum( 0.0 ), sqr( 0.0 )
        {
            std::numeric_limits< T > lim;
            min = lim.max();
            if( lim.is_integer )
                max = lim.min();
            else
                max = -lim.max();
        }

Member Function Documentation

template<typename T>
void moab::StatData::Stat< T >::accum ( T  v) [inline]

Definition at line 1778 of file OrientedBoxTreeTool.cpp.

Referenced by moab::OrientedBoxTreeTool::recursive_stats().

        {
            if( v < min ) min = v;
            if( v > max ) max = v;
            sum += v;
            sqr += (double)v * v;
        }

Member Data Documentation

template<typename T>
T moab::StatData::Stat< T >::max

Definition at line 1767 of file OrientedBoxTreeTool.cpp.

Referenced by moab::OrientedBoxTreeTool::stats().

template<typename T>
T moab::StatData::Stat< T >::min

Definition at line 1767 of file OrientedBoxTreeTool.cpp.

Referenced by moab::OrientedBoxTreeTool::stats().

template<typename T>
double moab::StatData::Stat< T >::sqr

Definition at line 1768 of file OrientedBoxTreeTool.cpp.

Referenced by moab::OrientedBoxTreeTool::stats().

template<typename T>
double moab::StatData::Stat< T >::sum

Definition at line 1768 of file OrientedBoxTreeTool.cpp.

Referenced by moab::OrientedBoxTreeTool::stats().

List of all members.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines