functioncumulative
Cumulative distribution function of Bates distribution
Extends from Modelica.Math.Distributions.Interfaces.partialCumulative (Common interface of cumulative distribution functions).
Information
Syntax
Bates.cumulative(u, y_min=0, y_max=1, n=12);
Description
This function computes the cumulative distribution function according to a Bates distribution (= mean of n uniform distributions). The returned value y is in the range:
0 ≤ y ≤ 1
Plot of the function:
For more details, see Wikipedia.
Example
cumulative(0,-3,3,12) // = 0.5
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | u (from partialCumulative) | Value 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 partialCumulative) | Value in the range 0 <= y <= 1 |