![]() |
Mesh Oriented datABase
(version 5.4.1)
Array-based unstructured mesh datastructure
|
Public Member Functions | |
Ratio () | |
void | accum (double v) |
Public Attributes | |
double | min |
double | max |
double | sum |
double | sqr |
int | hist [10] |
Definition at line 1739 of file OrientedBoxTreeTool.cpp.
moab::StatData::Ratio::Ratio | ( | ) | [inline] |
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;
}
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];
}
int moab::StatData::Ratio::hist[10] |
Definition at line 1742 of file OrientedBoxTreeTool.cpp.
Referenced by moab::OrientedBoxTreeTool::stats().
double moab::StatData::Ratio::max |
Definition at line 1741 of file OrientedBoxTreeTool.cpp.
Referenced by moab::OrientedBoxTreeTool::stats().
double moab::StatData::Ratio::min |
Definition at line 1741 of file OrientedBoxTreeTool.cpp.
Referenced by moab::OrientedBoxTreeTool::stats().
double moab::StatData::Ratio::sqr |
Definition at line 1741 of file OrientedBoxTreeTool.cpp.
Referenced by moab::OrientedBoxTreeTool::stats().
double moab::StatData::Ratio::sum |
Definition at line 1741 of file OrientedBoxTreeTool.cpp.
Referenced by moab::OrientedBoxTreeTool::stats().