Digital Filters
When an Embedded system reads data from sensor, someting
EMA Algorithm
The Exponential Moving Average (EMA) is one of the most used indicators in technical analysis today.
Formula
Where
- St is the result of the EMA at time t
- mt is the measurement from the sensor at time t,
- α is a coefficient in the range <0,1> that decides how many samples the EMA algorithm should take into account.
- A low α will be very slow to rapid input changes and takes many samples into account.
- A high α will be fast, but the average over fewer samples.
The most common way to initialize
Reference
- Wikipedia - Moving Average: https://en.wikipedia.org/wiki/Moving_average