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 |
---|---|
cumulative | Cumulative distribution function of uniform distribution |
density | Density of uniform distribution |
quantile | Quantile 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).
Type | Name | Description |
---|---|---|
Real | u | Random number over the real axis (-inf < u < inf) |
Real | u_min | Lower limit of u |
Real | u_max | Upper limit of u |
Type | Name | Description |
---|---|---|
Real | y | Density of u |
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).
Type | Name | Description |
---|---|---|
Real | u | Value over the real axis (-inf < u < inf) |
Real | u_min | Lower limit of u |
Real | u_max | Upper limit of u |
Type | Name | Description |
---|---|---|
Real | y | Value in the range 0 <= y <= 1 |
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)).
Type | Name | Description |
---|---|---|
Real | u | Random number in the range 0 <= u <= 1 |
Real | y_min | Lower limit of y |
Real | y_max | Upper limit of y |
Type | Name | Description |
---|---|---|
Real | y | Random number u transformed according to the given distribution |
Generated 2018-12-12 12:14:35 EST by MapleSim.