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 89 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 95 of file Stats.h.
| void openvdb::OPENVDB_VERSION_NAME::math::Extrema::add |
( |
double |
val | ) |
|
|
inline |
Add a single sample.
Definition at line 103 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 111 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 131 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 125 of file Stats.h.
| double openvdb::OPENVDB_VERSION_NAME::math::Extrema::min |
( |
| ) |
const |
|
inline |
Return the minimum value.
Definition at line 122 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 137 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 128 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 119 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: