Library of uniform distribution functions
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).
| Name | Description |
|---|---|
| Density of uniform distribution | |
| Cumulative distribution function of uniform distribution | |
| Quantile of uniform distribution |
Modelica.Math.Distributions.Uniform.densityDensity of uniform distribution
Uniform.density(u, u_min=0, u_max=1);
This function computes the probability density function according to a uniform distribution in a band. Plot of the function:
For more details, see Wikipedia.
density(0.5) // = 1 density(0,-1,1) // = 0.5
Uniform.cumulative, Uniform.quantile.
Extends from Modelica.Math.Distributions.Interfaces.partialDensity (Common interface of probability density functions).
| Name | Description |
|---|---|
| u | Random number over the real axis (-inf < u < inf) |
| u_min | Lower limit of u |
| u_max | Upper limit of u |
| Name | Description |
|---|---|
| y | Density of u |
Modelica.Math.Distributions.Uniform.cumulativeCumulative distribution function of uniform distribution
Uniform.cumulative(u, u_min=0, u_max=1);
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.
cumulative(0.5) // = 0.5 cumulative(0,-1,1) // = 0.5
Uniform.density, Uniform.quantile.
Extends from Modelica.Math.Distributions.Interfaces.partialCumulative (Common interface of cumulative distribution functions).
| Name | Description |
|---|---|
| u | Value over the real axis (-inf < u < inf) |
| u_min | Lower limit of u |
| u_max | Upper limit of u |
| Name | Description |
|---|---|
| y | Value in the range 0 <= y <= 1 |
Modelica.Math.Distributions.Uniform.quantileQuantile of uniform distribution
Uniform.quantile(u, y_min=0, y_max=1);
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.
quantile(0.5) // = 0.5 quantile(0.5,-1,1) // = 0
Uniform.density, Uniform.cumulative.
Extends from Modelica.Math.Distributions.Interfaces.partialQuantile (Common interface of quantile functions (= inverse cumulative distribution functions)).
| Name | Description |
|---|---|
| u | Random number in the range 0 <= u <= 1 |
| y_min | Lower limit of y |
| y_max | Upper limit of y |
| Name | Description |
|---|---|
| y | Random number u transformed according to the given distribution |