WOLFRAM SYSTEM MODELER
UniformNoisePropertiesDemonstrates the computation of properties for uniformly distributed noise |
SystemModel["Modelica.Blocks.Examples.Noise.UniformNoiseProperties"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This example demonstrates statistical properties of the Blocks.Noise.UniformNoise block using a uniform random number distribution. Block "noise" defines a band of 0 .. 6 and from the generated noise the mean and the variance is computed with blocks of package Blocks.Math. Simulation results are shown in the next diagram:
The mean value of a uniform noise in the range 0 .. 6 is 3 and its variance is 3 as well. The simulation results above show good agreement (after a short initial phase). This demonstrates that the random number generator and the mapping to a uniform distribution have good statistical properties.
y_min |
Value: 0 Type: Real Description: Minimum value of band |
---|---|
y_max |
Value: 6 Type: Real Description: Maximum value of band |
pMean |
Value: (y_min + y_max) / 2 Type: Real Description: Theoretical mean value of uniform distribution |
var |
Value: (y_max - y_min) ^ 2 / 12 Type: Real Description: Theoretical variance of uniform distribution |
std |
Value: sqrt(var) Type: Real Description: Theoretical standard deviation of uniform distribution |
meanError_y |
Default Value: meanError.y Type: Real |
---|---|
sigmaError_y |
Default Value: sigmaError.y Type: Real |
globalSeed |
Type: GlobalSeed Description: Defines global settings for the blocks of sublibrary Noise, especially a global seed value is defined |
|
---|---|---|
noise |
Type: UniformNoise Description: Noise generator with uniform distribution |
|
mean |
Type: ContinuousMean Description: Calculates the empirical expectation (mean) value of its input signal |
|
variance |
Type: Variance Description: Calculates the empirical variance of its input signal |
|
theoreticalVariance |
Type: MultiProduct Description: Product of Reals: y = u[1]*u[2]* ... *u[n] |
|
meanError |
Type: Feedback Description: Output difference between commanded and feedback input |
|
theoreticalMean |
Type: Constant Description: Generate constant signal of type Real |
|
varianceError |
Type: Feedback Description: Output difference between commanded and feedback input |
|
theoreticalSigma |
Type: Constant Description: Generate constant signal of type Real |
|
standardDeviation |
Type: StandardDeviation Description: Calculates the empirical standard deviation of its input signal |
|
sigmaError |
Type: Feedback Description: Output difference between commanded and feedback input |
Date | Description | ||
---|---|---|---|
June 22, 2015 |
|