Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
moab::StatData::Ratio Struct Reference

Public Member Functions

 Ratio ()
void accum (double v)

Public Attributes

double min
double max
double sum
double sqr
int hist [10]

Detailed Description

Definition at line 1739 of file OrientedBoxTreeTool.cpp.


Constructor & Destructor Documentation

Definition at line 1743 of file OrientedBoxTreeTool.cpp.

            : min( std::numeric_limits< double >::max() ), max( -std::numeric_limits< double >::max() ), sum( 0.0 ),
              sqr( 0.0 )
        {
            hist[0] = hist[1] = hist[2] = hist[3] = hist[4] = hist[5] = hist[6] = hist[7] = hist[8] = hist[9] = 0;
        }

Member Function Documentation

void moab::StatData::Ratio::accum ( double  v) [inline]

Definition at line 1749 of file OrientedBoxTreeTool.cpp.

References moab::sum().

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

        {
            if( v < min ) min = v;
            if( v > max ) max = v;
            sum += v;
            sqr += v * v;
            int i = (int)( 10 * v );
            if( i < 0 )
                i = 0;
            else if( i > 9 )
                i = 9;
            ++hist[i];
        }

Member Data Documentation

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