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:

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

Generated at 2023-11-20T01:32:44Z by OpenModelicaOpenModelica 1.22.0 using GenerateDoc.mos