|
| void | clear () |
| |
| void | add (ValueType value) |
| | Appends a data point to the statistics.
|
| |
| FloatType | favg () |
| |
| int32_t | avg () |
| |
| FloatType | stddev () |
| |
| std::string | debug_string () |
| | Creates a half-a-line printout of this stats object for debug purposes.
|
| |
|
| uint32_t | count_ |
| | Number of samples added.
|
| |
| ValueType | max_ |
| | Maximum value found since the last clear.
|
| |
| int64_t | sum_ |
| | Sum of sample values added.
|
| |
| FloatType | qsum_ |
| | Sum of squares of sample values added.
|
| |
Definition at line 43 of file Stats.hxx.
◆ FloatType
| using Stats::FloatType = double |
◆ ValueType
| using Stats::ValueType = int32_t |
◆ Stats()
◆ add()
| void Stats::add |
( |
ValueType |
value | ) |
|
|
inline |
Appends a data point to the statistics.
- Parameters
-
Definition at line 65 of file Stats.hxx.
◆ avg()
- Returns
- the average (rounded down to nearest integer).
Definition at line 84 of file Stats.hxx.
◆ clear()
◆ debug_string()
| std::string Stats::debug_string |
( |
| ) |
|
Creates a half-a-line printout of this stats object for debug purposes.
Definition at line 39 of file Stats.cxx.
◆ favg()
| FloatType Stats::favg |
( |
| ) |
|
|
inline |
- Returns
- the average
Definition at line 78 of file Stats.hxx.
◆ stddev()
| FloatType Stats::stddev |
( |
| ) |
|
|
inline |
- Returns
- the sample standard deviation (uncorrected).
Definition at line 90 of file Stats.hxx.
◆ count_
Number of samples added.
Definition at line 102 of file Stats.hxx.
◆ max_
Maximum value found since the last clear.
Definition at line 104 of file Stats.hxx.
◆ qsum_
Sum of squares of sample values added.
Definition at line 108 of file Stats.hxx.
◆ sum_
Sum of sample values added.
Definition at line 106 of file Stats.hxx.
The documentation for this class was generated from the following files: