(PECL stats >= 1.0.0)
stats_dens_uniform — Probability density function of the uniform distribution
stats_dens_uniform(float $x, float $a, float $b): float
Returns the probability density at x, where the random variable follows the uniform distribution of which the lower bound is a and the upper bound is b.
xThe value at which the probability density is calculated
aThe lower bound of the distribution
bThe upper bound of the distribution
The probability density at x or false for failure.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.stats-dens-uniform.php