![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <utilities.h>
Public Member Functions | |
| statistics () | |
Public Attributes | |
| double | min |
| double | max |
| double | total |
| double | average |
A simple container for storing basic statistical values.
This class holds the minimum, maximum, total, and average values of a dataset. It is initialized with zeros by default. This small class allows us to agglomerate the statistics instead of returning tuples. For example, this class is used to store the kinetic energy of the particles in the DEM model.
Definition at line 55 of file utilities.h.
|
inline |
| double statistics::average |
The average value of the dataset.
Definition at line 81 of file utilities.h.
| double statistics::max |
The maximum value in the dataset.
Definition at line 75 of file utilities.h.
| double statistics::min |
The minimum value in the dataset.
Definition at line 72 of file utilities.h.
| double statistics::total |
The sum of all values in the dataset.
Definition at line 78 of file utilities.h.