AdvancedNoise.Distributions.Bates.density

# .AdvancedNoise.Distributions.Bates.density

Density of Bates distribution

## 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

Bates.cumulative, Bates.quantile.

#### Interface

>     function density
>       import AdvancedNoise.Math.factorial;
>       import AdvancedNoise.Math.binomial;
>       extends Modelica.Math.Distributions.Interfaces.partialDensity;
>       input Real y_min = 0 "Lower limit of band" annotation(
>         Dialog);
>       input Real y_max = 1 "Upper limit of band" annotation(
>         Dialog);
>       input Integer n = 12 "Number of uniform random values" annotation(
>         Dialog);
>     end density;

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos