PLECS 3.3 Online Help

Moving Average

Purpose

Continuously average input signal over specified time period

Library

Control / Filters

Description

pict

The Moving Average filter averages a continuous input signal u   over the specified averaging time T  . The output y   is continuously updated in every simulation step:

       ∫ t
y(t) =-1     u(τ)dτ
     T  t-T

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.