Base class for rolling counter implementations.
More...
#include <RollingCounter.h>
Base class for rolling counter implementations.
Provides common functionality for managing rolling history buffers, handling timestamps, calculating time-based aggregates with quality metrics.
◆ RollingCounter()
| RollingCounter::RollingCounter |
( |
const float |
quality_threshold = DEFAULT_QUALITY_THRESHOLD | ) |
|
|
inline |
Constructor
- Parameters
-
| quality_threshold | fraction of valid entries required for valid result |
◆ ~RollingCounter()
| virtual RollingCounter::~RollingCounter |
( |
| ) |
|
|
virtualdefault |
Virtual destructor for proper cleanup in derived classes
◆ getLastUpdate()
| time_t RollingCounter::getLastUpdate |
( |
| ) |
const |
|
inline |
Get last update timestamp
- Returns
- last update timestamp
◆ getUpdateRate()
| uint8_t RollingCounter::getUpdateRate |
( |
| ) |
const |
|
inline |
Get update rate
- Returns
- update rate in minutes
The documentation for this class was generated from the following files: