.Buildings.Occupants.BaseClasses.exponentialVariableGeneration

Random variable generator from the exponential distribution

Information

This function generates a random variable, from a exponentuial distribution with the input of mean mu. The random variable might be the duration of a specific event, for instance the time to keep the HVAC on.

The input mu denotes the mean value of the exponential distribution. Higher mu indicates a higher chance to generate a larger output y.

Interface

function exponentialVariableGeneration
  extends Modelica.Icons.Function;
  input Real mu "Mean exponential distribution";
  input Integer stateIn[Modelica.Math.Random.Generators.Xorshift1024star.nState] "State of the random number generator";
  output Real y "Random number";
  output Integer stateOut[Modelica.Math.Random.Generators.Xorshift1024star.nState] "New state of the random number generator";
end exponentialVariableGeneration;

Revisions


Generated at 2025-04-19T18:20:10Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos