cumulative

Cumulative distribution function of uniform distribution

Information

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

Syntax

Uniform.cumulative(u, u_min=0, u_max=1);

Description

This function computes the cumulative distribution function according to a uniform distribution in a band. 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.5
cumulative(0,-1,1) // = 0.5

See also

Uniform.density, Uniform.quantile.

Syntax

y = cumulative(u, u_min, u_max)

Inputs (3)

u

Type: Real

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

u_min

Default Value: 0

Type: Real

Description: Lower limit of u

u_max

Default Value: 1

Type: Real

Description: Upper limit of u

Outputs (1)

y

Type: Real

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