modelVaryingDistribution

Shows how distributions can vary in time

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

Information

This example shows, how the distribution parameters can vary during the simulation. Noise is generated with a discrete distribution: 1 will be drawn 80 % of the time and 0 will be drawn 20 % of the time. After 1 s of simulation, the probabilities are exchanged. This can be seen in the random numbers generated, as well as in the mean estimation:

Diagram VaryingDistribution.png

Components

TypeNameDefaultDescription
Modelica.Blocks.Noise.GlobalSeedglobalSeed
Realttime
Sources.TimeBasedNoisediscreteNoise
Modelica.Blocks.Math.ContinuousMeancontinuousMean

Revisions

DLR logo Copyright © DLR Institute of System Dynamics and Control
Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control