blockVariance
Calculates the empirical variance of its input signal
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This block calculates the empirical variance of its input signal. It is based on the formula (but implemented in a more reliable numerical way):
y = mean( (u - mean(u))^2 )
The parameter t_eps is used to guard against division by zero (the variance computation starts at <simulation start time> + t_eps and before that time instant y = 0).
The variance of a signal is also equal to its mean power.
This block is demonstrated in the examples UniformNoiseProperties and NormalNoiseProperties.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Advanced | |||
| SI.Time | t_eps | 1e-7 | Variance calculation starts at startTime + t_eps |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Noisy input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y | Variance of the input signal |
Revisions
| Date | Description | ||
|---|---|---|---|
| June 22, 2015 |
|