Moving average-value computation
Simscape / Electrical / Control / General Control
The Moving Average block computes the moving average value of the input signal. Use this block to filter higher frequency signal components and to smooth noisy signals.
The moving average is computed based on a moving time window. The moving average for continuous-time is calculated as
where:
u(t) is the input signal,
f is the fundamental frequency of the signal.
The moving average for discrete-time is calculated as:
The output is initialized with the initial condition in the time interval
[0,
T0]