.DESLib.RandomLib.Variates.Continuous.Uniform

Information

Uniform

Uniform probability distribution function.

Syntax

Uniform(g,a,b)

Description

Generates a random variate following the Uniform probability distribution function in the interval [a,b].

The pseudo-code algorithm used for this distribution is:

1. Generate u as U(0,1)
2. Return x = a + (b-a)*u

Examples

(u,g) := Uniform(g,2,4);

Interface

function Uniform
  extends Var;
end Uniform;

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos