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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | Number of samples over which the input is averaged | |
| Modelica.Units.SI.Time | samplePeriod | Sampling period of component |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u | Continuous input signal | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Discrete averaged signal |
Revisions
-
November 7, 2019, by Kun Zhang:
Moved block to Buildings.Obsolete.Controls.OBC.CDL.Discrete because it is replaced with Buildings.Controls.OBC.CDL.Discrete.TriggeredMovingMean.
This is for issue 1588. -
June 17, 2019, by Kun Zhang:
First implementation.