blockContinuousMean
Calculates the empirical expectation (mean) value of its input signal
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This block continuously calculates the mean value of its input signal. It uses the function:
integral( u over time)
y = ------------------------
time - startTime
This can be used to determine the empirical expectation value of a random signal, such as generated by the Noise blocks.
The parameter t_eps is used to avoid large fluctuations but can be set to zero (the mean value computation starts at <simulation start time> but is only returned after an additional t_eps and before that time instant y = u).
See also the Mean block for a sampled implementation.
This block is demonstrated in the examples UniformNoiseProperties and NormalNoiseProperties.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | startTime | -Modelica.Constants.inf | Starting point for mean if after simulation start-point |
| Advanced | |||
| SI.Time | t_eps | 1e-7 | Mean value calculation starts at startTime + t_eps |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Noisy input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y | Expectation (mean) value of the input signal |
Revisions
| Date | Description | ||
|---|---|---|---|
| June 13, 2023 | Hans Olsson. Avoid almost singularity for integrators. | ||
| June 22, 2015 |
|