Variable frequency moving average-value computation
Simscape / Electrical / Control / General Control
The Moving Average (Variable Frequency) block computes the moving average value of an input signal of variable frequency. 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.
T0 is equal to
f is the fundamental frequency of the signal.
The moving average for discrete-time is calculated as:
The output is initialized with an initial condition in the time interval
[0, T0]
.