Digital Filters
When an Embedded system reads data from sensor, someting
High-Pass Filter
..
PID Filter
Your text...
EMA Algorithm
The Exponential Moving Average (EMA) is one of the most used indicators in technical analysis today.
Formula
\({S_t} = \left\{ \begin{array}{l}
{m_1}, & \to t = 1\\
\alpha \cdot {m_t} + (1 - \alpha ) \cdot {m_{t - 1}} & \to t > 1
\end{array} \right.\)
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