jax.scipy.stats.uniform.pdf — JAX documentation (original) (raw)
jax.scipy.stats.uniform.pdf#
jax.scipy.stats.uniform.pdf(x, loc=0, scale=1)[source]#
Uniform probability distribution function.
JAX implementation of scipy.stats.uniform pdf
.
The uniform distribution pdf is given by
\[\begin{split}f(x) = \begin{cases} 1 & 0 \le x \le 1 \\ 0 & \mathrm{otherwise} \end{cases}\end{split}\]
Parameters:
- x (Array | ndarray | bool | number | bool | int | float | complex) – arraylike, value at which to evaluate the PDF
- loc (Array | ndarray | bool | number | bool | int | float | complex) – arraylike, distribution offset parameter
- scale (Array | ndarray | bool | number | bool | int | float | complex) – arraylike, distribution scale parameter
Returns:
array of pdf values.
Return type:
See also