Mean
Calculates the average value of the signal.
Description
The Mean block calculates the average value of the input signal. The average value is calculated using a moving average window over a period defined by the fundamental frequency .
where
-
- input signal;
-
- period, is defined as .
Since this block uses a moving average window, one simulation cycle must pass before the correct value is obtained at the output. For the first simulation cycle, the output value is kept constant and matches the given initial input value.
Parameters
Main group
# Fundamental frequency (Hz) — fundamental frequency
Details
Specify the fundamental frequency in Hz. This value defines the size (1/ ) of the moving average window.
Default value |
|
Program usage name |
|
Evaluatable |
Yes |
# Initial input (DC component) — input value for the first simulation cycle
Details
Specify the input value for the first simulation cycle.
Default value |
|
Program usage name |
|
Evaluatable |
Yes |
# Sample time — sampling period
Details
Specify the sampling period of the block in seconds. Set to 0
to realise a continuous block.
Default value |
|
Program usage name |
|
Evaluatable |
Yes |