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

TypeNameDefaultDescription
IntegerlocalSeed10Local seed to be used to generate the initial state of the random number generator
IntegerglobalSeed30129Global seed to be combined with the local seed
RealA0.9Parameter A
RealB0Parameter B

Components

TypeNameDefaultDescription
RealxTime-varying real number as input
RealyOutput

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.