blockMovingMean

Discrete moving mean of a sampled input signal

Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).

Information

Block that outputs the sampled moving mean value of an input signal. At each sampling instant, the block outputs the average value of the past n samples including the current sample.

At the first sample, the block outputs the first sampled input. At the next sample, it outputs the average of the past two samples, then the past three samples and so on up to n samples.

Parameters

TypeNameDefaultDescription
IntegernNumber of samples over which the input is averaged
Modelica.Units.SI.TimesamplePeriodSampling period of component

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputuContinuous input signal
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyDiscrete averaged signal

Revisions