Handle a rolling window of values for statistics.
More...
Detailed Description
Handle a rolling window of values for statistics.
- Author:
- Didier Barvaux <didier@barvaux.org>
Function Documentation
Add a new value in the given statistics context.
- Parameters:
-
stats | The statistics context |
value | The value to add |
Compute the mean of all the recorded values.
- Parameters:
-
stats | The statistics context |
- Returns:
- The mean of the recorded values
Compute the sum of all the recorded values.
This function is used for statistics.
- Parameters:
-
stats | The statistics context |
- Returns:
- The sum of the recorded values