modelUniformNoiseProperties

Demonstrates the computation of properties for uniformally distributed noise

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example demonstrates statistical properties of the Blocks.Noise.GenericNoise 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.Statistics. 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.

Parameters

TypeNameDefaultDescription
Realy_min0Minimum value of band
Realy_max6Maximum value of band
RealpMean(y_min + y_max)/2Theoretical mean value of uniform distribution
Realvar(y_max - y_min)^2/12Theoretical variance of uniform distribution
Realstdsqrt(var)Theoretical standard deviation of uniform distribution

Components

TypeNameDefaultDescription
Modelica_Noise.Blocks.Noise.GlobalSeedglobalSeed
Noise.UniformNoisenoise
Math.ContinuousMeanmean
Math.Variancevariance
Modelica.Blocks.Math.MultiProducttheoreticalVariance
Modelica.Blocks.Math.FeedbackmeanError
Modelica.Blocks.Sources.ConstanttheoreticalMean
Modelica.Blocks.Math.FeedbackvarianceError
Modelica.Blocks.Sources.ConstanttheoreticalSigma
Math.StandardDeviationstandardDeviation
Modelica.Blocks.Math.FeedbacksigmaError

Revisions

Date Description
June 22, 2015
Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control