Introduction
The emavg can be used to perform exponential moving average calculation.
Features Supported
EMAVG module includes:
- setting of multiplier value for setting weightage of present value.
Features Not Supported
N/A
Benchmark Results
A benchmark on R5F core has been conducted to observe the following results when running the following functions:
EMAVG Function | Cpu Cycles |
EMAVG_reset | 15 |
EMAVG_config | 15 |
EMAVG_run | 26
|
- Ran with TI Clang Compiler v3.2.1.LTS, with -Os flag and functions force-inlined onto the benchmarking function placed in TCM memory. Obtained the average result from 500 consecutive loops of running emavg functions with DPL CycleCountP, mimicking the usage of a control loop.
- Actual result may vary depending on provided datasets and memory configuration. For R5F, it is recommended for users to map control loops to TCM for the best performance.
Provided Examples
The following examples has been provided to demonstrate emavg module:
Additional References
N/A
API
APIs for Exponential Moving Average Library