moab
moab::StatData::Ratio Struct Reference

List of all members.

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 2037 of file OrientedBoxTreeTool.cpp.


Constructor & Destructor Documentation

Definition at line 2040 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 2046 of file OrientedBoxTreeTool.cpp.

                           {
      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

Definition at line 2039 of file OrientedBoxTreeTool.cpp.

Definition at line 2038 of file OrientedBoxTreeTool.cpp.

Definition at line 2038 of file OrientedBoxTreeTool.cpp.

Definition at line 2038 of file OrientedBoxTreeTool.cpp.

Definition at line 2038 of file OrientedBoxTreeTool.cpp.


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