densityDensity of uniform distribution |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
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
u |
Type: Real Description: Random number over the real axis (-inf < u < inf) |
---|---|
u_min |
Default Value: 0 Type: Real Description: Lower limit of u |
u_max |
Default Value: 1 Type: Real Description: Upper limit of u |
y |
Type: Real Description: Density of u |
---|