Moving Average
Purpose
Continuously average input signal over specified time period
Library
Control / Filters
Description
The Moving Average filter averages a continuous input signal over the
specified averaging time
. The output
is continuously updated in every
simulation step:
The implementation of this block avoids accumulating numerical integration errors typically associated with continuous-time implementations of FIR filters. However, the Moving Average filter is computationally more expensive and less accurate than the similar Periodic Average.
Parameters
- Averaging time
- The length of the averaging period in sec.
- Initial buffer size
- Size of the internal ring buffer at simulation start. The buffer size will be increased during the simulation if required.
Probe Signals
- Input
- The input signal.
- Output
- The filtered output signal.