SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
Util.cpp
Go to the documentation of this file.
1
12
#include "
Util.h
"
13
14
double
EMAvg
(
double
lastVal,
double
newVal,
int
memCount) {
15
return
(1.0 - (1.0 / memCount)) * lastVal + (1.0 / memCount) * newVal;
16
}
EMAvg
double EMAvg(double lastVal, double newVal, int memCount)
Exponential moving average.
Definition
Util.cpp:14
Util.h
Various utility functions.
libraries
Util
Util.cpp
Generated by
1.9.8