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:
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Noise.GlobalSeed | globalSeed | ||
| Real | t | time | |
| Sources.TimeBasedNoise | discreteNoise | ||
| Modelica.Blocks.Math.ContinuousMean | continuousMean |
Revisions
|
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 |