Modelica.Math.Distributions.Uniform

Library of uniform distribution functions

Information

This package provides

of the uniform distribution. Examples:

For more details of this distribution see Wikipedia.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

Name Description
Modelica.Math.Distributions.Uniform.density density Density of uniform distribution
Modelica.Math.Distributions.Uniform.cumulative cumulative Cumulative distribution function of uniform distribution
Modelica.Math.Distributions.Uniform.quantile quantile Quantile of uniform distribution

Modelica.Math.Distributions.Uniform.density Modelica.Math.Distributions.Uniform.density

Density of uniform distribution

Information

Syntax

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

Description

This function computes the probability density function according to a uniform distribution in a band. Plot of the function:

For more details, see Wikipedia.

Example

  density(0.5)    // = 1
  density(0,-1,1) // = 0.5

See also

Uniform.cumulative, Uniform.quantile.

Extends from Modelica.Math.Distributions.Interfaces.partialDensity (Common interface of probability density functions).

Inputs

NameDescription
uRandom number over the real axis (-inf < u < inf)
u_minLower limit of u
u_maxUpper limit of u

Outputs

NameDescription
yDensity of u

Modelica.Math.Distributions.Uniform.cumulative Modelica.Math.Distributions.Uniform.cumulative

Cumulative distribution function of uniform distribution

Information

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.

Extends from Modelica.Math.Distributions.Interfaces.partialCumulative (Common interface of cumulative distribution functions).

Inputs

NameDescription
uValue over the real axis (-inf < u < inf)
u_minLower limit of u
u_maxUpper limit of u

Outputs

NameDescription
yValue in the range 0 <= y <= 1

Modelica.Math.Distributions.Uniform.quantile Modelica.Math.Distributions.Uniform.quantile

Quantile of uniform distribution

Information

Syntax

Uniform.quantile(u, y_min=0, y_max=1);

Description

This function computes the inverse cumulative distribution function (= quantile) according to a uniform distribution in a band. Input argument u must be in the range:

0 ≤ u ≤ 1

The returned number y is in the range:

y_min ≤ y ≤ y_max

Plot of the function:

For more details, see Wikipedia.

Example

  quantile(0.5)      // = 0.5
  quantile(0.5,-1,1) // = 0

See also

Uniform.density, Uniform.cumulative.

Extends from Modelica.Math.Distributions.Interfaces.partialQuantile (Common interface of quantile functions (= inverse cumulative distribution functions)).

Inputs

NameDescription
uRandom number in the range 0 <= u <= 1
y_minLower limit of y
y_maxUpper limit of y

Outputs

NameDescription
yRandom number u transformed according to the given distribution
Automatically generated Thu Dec 19 17:20:25 2019.