PPL API Reference |
|
---|
Public Member Functions | |
Modifiers | |
Average & | operator+= (const T &_value) noexcept |
Average & | AddSummedValues (const T &_sum, const size_t _count) noexcept |
Queries | |
T | Get () const noexcept |
Get the average. | |
const T & | Sum () const noexcept |
Get the total sum. | |
size_t | Count () const noexcept |
Get the number of elements included. | |
Keep a running total and count of any type which supports addition and division.
Add an element to the average.
_value | The element to add. |
|
noexcept |
Add one or more elements (pre-summed) to the average.
_sum | The summed elements to add. |
_count | The number of elements. |