


In the following example when which=3, calculate A from (P, X, B). In the following example when which=2, calculate X from (P, A, B). X is the upper limit of integration of the uniform-density.Ī is the first parameter of uniform-density.ī is the second parameter of uniform-density. P is the integral from 0 to X of the uniform distribution. In the following example when which=1, calculate P from (X, A, B). We have used latest release of stats-2.0.3 (PHP 7.0.0 or newer and PEAR 1.4.0 or newer) for this tutorial. This function was first introduced in statistics extension (PHP 4.0.0 and PEAR 1.4.0). X denotes the value of the random variable.Ī denotes the lower bound of the uniform distribution.ī denotes the higher bound of the uniform distribution. The following table lists the return value and parameters by which.ĬDF denotes cumulative distribution function.

The kind of return value and parameters (par1, par2, and par3) have determined by which. The stats_cdf_uniform() function can return the cumulative distribution function, its inverse, or one of its parameters of the uniform distribution. The flag to determine what to be calculated Syntaxįloat stats_cdf_uniform( float $par1, float $par2, float $par3, int $which ) The stats_cdf_uniform() function can calculate any one parameter of uniform distribution given values for the others.
