.Buildings.Occupants.BaseClasses.logit1D

Information

This function generates a random binary variable with the input of a continuous variable x from a logistic relation.

The probability of being 1 is calculated from the input x from a logistic relation with the slope A and the intercept B. Then a random generator generates the output, which should be a binary variable.

Interface

function logit1D
  extends Modelica.Icons.Function;
  input Real x "Continuous variable";
  input Real A = 1.0 "Logistic relation: Slope";
  input Real B = 1.0 "Logistic relation: Intercept";
  input Integer globalSeed "Seed for the random number generator";
  output Boolean y "Binary variable";
end logit1D;

Revisions


Generated at 2024-04-25T18:15:59Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos