functiondensity
Density of Bates distribution
Extends from Modelica.Math.Distributions.Interfaces.partialDensity (Common interface of probability density functions).
Information
Syntax
Bates.density(u, y_min=0, y_max=1, n=12);
Description
This function computes the probability density function according to a Bates distribution (= mean of n uniform distributions). Plot of the function:
For more details, see Wikipedia.
Example
density(0, -3, 3, 12) // = 4.7271067821068185
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | u (from partialDensity) | Random number over the real axis (-inf < u < inf) | |
| Real | y_min | 0 | Lower limit of band |
| Real | y_max | 1 | Upper limit of band |
| Integer | n | 12 | Number of uniform random values |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y (from partialDensity) | Density of u |