![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
#include <Climate.hpp>
Public Member Functions | |
| void | push (double t_avg, double t_range) |
| Push a new day's values into the buffer. | |
| double | avg_temp () const |
| Current moving average of temperature. | |
| double | avg_range () const |
| Current moving average of temperature range. | |
Public Attributes | |
| double | ta [7] = {} |
| Daily average temps (deg F) | |
| double | tr [7] = {} |
| Daily temp ranges (deg F) | |
| int | front = 0 |
| Circular buffer write index. | |
| int | count = 0 |
| Number of values stored (max 7) | |
| double openswmm::climate::MovingAvg7::avg_range | ( | ) | const |
Current moving average of temperature range.
| double openswmm::climate::MovingAvg7::avg_temp | ( | ) | const |
Current moving average of temperature.
| void openswmm::climate::MovingAvg7::push | ( | double | t_avg, |
| double | t_range | ||
| ) |
Push a new day's values into the buffer.
| int openswmm::climate::MovingAvg7::count = 0 |
Number of values stored (max 7)
| int openswmm::climate::MovingAvg7::front = 0 |
Circular buffer write index.
| double openswmm::climate::MovingAvg7::ta[7] = {} |
Daily average temps (deg F)
| double openswmm::climate::MovingAvg7::tr[7] = {} |
Daily temp ranges (deg F)