SAE Teensy ECU
IIT SAE Microcontroller programming
|
Variable that automaticaly averages itself out when it is set to a value. More...
#include <Util.h>
Public Member Functions | |
AvgVar (int samples) | |
Construct a new AvgVar given the number of samples to average the value over. | |
operator T () const | |
Cast to the internal average to type T. | |
T | operator= (T val) |
Update the internal average value given the next value. | |
Variable that automaticaly averages itself out when it is set to a value.
T | The primitive data type of this variable |
|
inline |
|
inline |