cumulative

Cumulative distribution function of Weibull distribution

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

Weibull.cumulative(u, lambda=1, k=1);

Description

This function computes the cumulative distribution function according to a Weibull distribution with scale parameter lambda and shape parameter k. Equation:

y := if u >= 0 then 1 - exp(-(u/lambda)^k) else 0.0;

The returned value y is in the range:

0 ≤ y ≤ 1

Plot of the function:

For more details, see Wikipedia.

Example

  cumulative(0.5)       // = 0.3934693402873666
  cumulative(0.5,0.5,1) // = 0.6321205588285577

See also

Weibull.density, Weibull.quantile.

Syntax

y = cumulative(u, lambda, k)

Inputs (3)

u

Type: Real

Description: Value over the real axis (-inf < u < inf)

lambda

Default Value: 1

Type: Real

Description: Scale parameter of the Weibull distribution

k

Type: Real

Description: Shape parameter of the Weibull distribution

Outputs (1)

y

Type: Real

Description: Value in the range 0 <= y <= 1