modelLogit1D
Test model for 1D binary variable generation function
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model tests the implementation of Buildings.Occupants.BaseClasses.logit1D.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | localSeed | 10 | Local seed to be used to generate the initial state of the random number generator |
| Integer | globalSeed | 30129 | Global seed to be combined with the local seed |
| Real | A | 0.9 | Parameter A |
| Real | B | 0 | Parameter B |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Time-varying real number as input | |
| Real | y | Output |
Revisions
-
December 6, 2024, by Michael Wetter:
Refactored implementation of random number calculations, transfering the local state of the random number generator from one call to the next.
This is for #4069. -
September 5, 2018 by Zhe Wang:
First implementation.