OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::climate::MovingAvg7 Struct Reference

#include <Climate.hpp>

Collaboration diagram for openswmm::climate::MovingAvg7:

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)
 

Member Function Documentation

◆ avg_range()

double openswmm::climate::MovingAvg7::avg_range ( ) const

Current moving average of temperature range.

Here is the caller graph for this function:

◆ avg_temp()

double openswmm::climate::MovingAvg7::avg_temp ( ) const

Current moving average of temperature.

Here is the caller graph for this function:

◆ push()

void openswmm::climate::MovingAvg7::push ( double  t_avg,
double  t_range 
)

Push a new day's values into the buffer.

Here is the caller graph for this function:

Member Data Documentation

◆ count

int openswmm::climate::MovingAvg7::count = 0

Number of values stored (max 7)

◆ front

int openswmm::climate::MovingAvg7::front = 0

Circular buffer write index.

◆ ta

double openswmm::climate::MovingAvg7::ta[7] = {}

Daily average temps (deg F)

◆ tr

double openswmm::climate::MovingAvg7::tr[7] = {}

Daily temp ranges (deg F)


The documentation for this struct was generated from the following files: