![]() |
Parasol Planning Library (PPL)
|
#include <Average.h>
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. More... | |
| const T & | Sum () const noexcept |
| Get the total sum. More... | |
| size_t | Count () const noexcept |
| Get the number of elements included. More... | |
Keep a running total and count of any type which supports addition and division.
|
inlinenoexcept |
Add one or more elements (pre-summed) to the average.
| _sum | The summed elements to add. |
| _count | The number of elements. |
|
inlinenoexcept |
Get the number of elements included.
|
inlinenoexcept |
Get the average.
Add an element to the average.
| _value | The element to add. |
|
inlinenoexcept |
Get the total sum.