.Buildings.Occupants.BaseClasses.weibull1DOFF

Information

This function generates a random binary variable with a continuous inputs x from a Weibull Distribution relation.

The probability of being 1 is calculated from the input x from a Weibull Distribution relation with three predefined parameters u (threshold, the output would be 0 if x is bigger than u), L (normalization faction) and k (shape factor). Then a random generator generates the output, which should be a binary variable.

Interface

function weibull1DOFF
  input Real x "Continous variable";
  input Real u = 1.0 "Parameter defining the Weibull distribution threshold";
  input Real L = 1.0 "Parameter defining the Weibull distribution normalization factor";
  input Real k = 1.0 "Parameter defining the Weibull distribution shape factor";
  input Real dt = 60 "Time step length";
  input Integer globalSeed "Seed for the random number generator";
  output Boolean y "Binary variable 0/1";
end weibull1DOFF;

Revisions


Generated at 2021-04-18T01:03:03Z by OpenModelicaOpenModelica 1.18.0~dev-228-gf450566 using GenerateDoc.mos