This class computes the minimum and maximum values of a population of floating-point values.
More...
#include <Stats.h>
This class computes the minimum and maximum values of a population of floating-point values.
Definition at line 88 of file Stats.h.
openvdb::OPENVDB_VERSION_NAME::math::Extrema::Extrema |
( |
| ) |
|
|
inline |
Constructor.
- Warning
- The min/max values are initiated to extreme values
Definition at line 94 of file Stats.h.
void openvdb::OPENVDB_VERSION_NAME::math::Extrema::add |
( |
double |
val | ) |
|
|
inline |
Add a single sample.
Definition at line 102 of file Stats.h.
void openvdb::OPENVDB_VERSION_NAME::math::Extrema::add |
( |
double |
val, |
|
|
uint64_t |
n |
|
) |
| |
|
inline |
Add n samples with constant value val.
Definition at line 110 of file Stats.h.
void openvdb::OPENVDB_VERSION_NAME::math::Extrema::add |
( |
const Extrema & |
other | ) |
|
|
inline |
Add the samples from the other Stats instance.
Definition at line 130 of file Stats.h.
void openvdb::OPENVDB_VERSION_NAME::math::Extrema::join |
( |
const Extrema & |
other | ) |
|
|
inlineprotected |
double openvdb::OPENVDB_VERSION_NAME::math::Extrema::max |
( |
| ) |
const |
|
inline |
Return the maximum value.
Definition at line 124 of file Stats.h.
double openvdb::OPENVDB_VERSION_NAME::math::Extrema::min |
( |
| ) |
const |
|
inline |
Return the minimum value.
Definition at line 121 of file Stats.h.
void openvdb::OPENVDB_VERSION_NAME::math::Extrema::print |
( |
const std::string & |
name = "" , |
|
|
std::ostream & |
strm = std::cout , |
|
|
int |
precision = 3 |
|
) |
| const |
|
inline |
Print extrema to the specified output stream.
Definition at line 136 of file Stats.h.
double openvdb::OPENVDB_VERSION_NAME::math::Extrema::range |
( |
| ) |
const |
|
inline |
Return the range defined as the maximum value minus the minimum value.
Definition at line 127 of file Stats.h.
uint64_t openvdb::OPENVDB_VERSION_NAME::math::Extrema::size |
( |
void |
| ) |
const |
|
inline |
Return the size of the population, i.e., the total number of samples.
Definition at line 118 of file Stats.h.
double openvdb::OPENVDB_VERSION_NAME::math::Extrema::mMax |
|
protected |
double openvdb::OPENVDB_VERSION_NAME::math::Extrema::mMin |
|
protected |
uint64_t openvdb::OPENVDB_VERSION_NAME::math::Extrema::mSize |
|
protected |
The documentation for this class was generated from the following file: