Facility for calculating simple sample statistics without having full sample available.
More...
|
template<class Serializer > |
void | serializeOp (Serializer &serializer) |
| Convert between byte array and object representation.
|
|
bool | operator== (const RunningStatistics &that) const |
| Equality predicate.
|
|
void | reset () |
| Reset internal counters to prepare for calculating a new set of sample statistics.
|
|
void | addSamplePoint (const Scalar x) |
| Include new element into sample.
|
|
std::size_t | sampleSize () const |
| Retrieve current sample size.
|
|
Scalar | min () const |
| Retrieve smallest sample value seen so far.
|
|
Scalar | max () const |
| Retrieve largest sample value seen so far.
|
|
Scalar | mean () const |
| Retrieve arithmetic average of all sample points seen so far.
|
|
std::optional< Scalar > | stdev () const |
| Retrieve unbiased standard deviation of all sample points seen so far.
|
|
template<
typename Scalar>
class Opm::RunningStatistics< Scalar >
Facility for calculating simple sample statistics without having full sample available.
- Template Parameters
-
Scalar | Sample element type. Typically a built-in arithmetic type like float or double . |