functionquantileNormalSimple
Test quantile of normal distribution with reduced precision
Extends from Modelica.Icons.Function (Icon for functions).
Information
This function returns a random number according to a normal distribution. This means that 99.7 % of the returned random numbers are in the range:
mu-3*sigma ≤ y ≤ mu+3*sigma
This function is only for test purposes. It computes the quantile (= inverse cumulative distribution function) of a normal distribution with a reduced precision of about 1e-7.
For more details of this distribution see Wikipedia.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | u | Random number in the range 0 <= u <= 1 | |
| Real | mu | 0 | Expectation (mean) value of the normal distribution |
| Real | sigma | 1 | Standard deviation of the normal distribution |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Random number u transformed according to the given distribution |
Revisions
| Date | Description | ||
|---|---|---|---|
| June 22, 2015 |
|