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
14double EMAvg(double lastVal, double newVal, int memCount) {
15 return (1.0 - (1.0 / memCount)) * lastVal + (1.0 / memCount) * newVal;
16}
double EMAvg(double lastVal, double newVal, int memCount)
Exponential moving average.
Definition Util.cpp:14
Various utility functions.