.Buildings.Occupants.BaseClasses.logit1DQuadratic

Information

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

The probability of being 1 is calculated from the input x from a quadratic logistic relation with four predefined parameters A, B, C and D. Then a random generator generates the output, which should be a binary variable.

Interface

function logit1DQuadratic
  extends Modelica.Icons.Function;
  input Real x "Continous variable";
  input Real A = 1.0 "Parameter defining the quadratic logistic relation";
  input Real B = 1.0 "Parameter defining the quadratic logistic relation";
  input Real C = 1.0 "Parameter defining the quadratic logistic relation";
  input Real D = 1.0 "Parameter defining the quadratic logistic relation";
  input Integer globalSeed "Seed for the random number generator";
  output Boolean y "Binary variable";
end logit1DQuadratic;

Revisions


Generated at 2024-12-24T19:25:53Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos