Exponential Moving Average.
More...
#include <pulse_monitor.hpp>
|
| | EMA (float factor) |
| | Constructor.
|
| |
|
void | clear () |
| | Clear the stored value.
|
| |
| float | update (float new_value) |
| | Update with a new value and return the smoothed result.
|
| |
Exponential Moving Average.
◆ EMA()
| m5::heart::EMA::EMA |
( |
float | factor | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
| factor | Smoothing factor (0.0 - 1.0) |
◆ update()
| float m5::heart::EMA::update |
( |
float | new_value | ) |
|
|
inline |
Update with a new value and return the smoothed result.
- Parameters
-
- Returns
- Smoothed value