.DESLib.RandomLib.Variates.Continuous.Weibull

Information

Weibull

Weibull probability distribution function.

Syntax

Weibull(g,alpha,beta)

Description

Generates a random variate following the Weibull probability distribution, with parameters alpha and beta.

The pseudo-code algorithm used for this distribution is:

1. Generate u as U(0,1)
2. Return x = alpha*((-ln(1-u))^(1/beta))

Examples


(u,g) := Weibull(g,0.4,0.8);

Interface

function Weibull
  extends Var;
end Weibull;

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