lpdf#
- Uniform.lpdf(X)[source]#
Log of the Probability Density Function (LPDF).
The log-PDF for the uniform distribution is:
\[\ln f(x | \alpha, \beta) = -\ln(\beta - \alpha)\]where \(\alpha\) is the left_border parameter and \(\beta\) is the right_border parameter. The function is -inf for \(\alpha >= \beta\) or when x not in range.
- Parameters:
X (ArrayLike) – The input data points at which to evaluate the LPDF.
- Returns:
The log-PDF values corresponding to each point in
X.- Return type:
NDArray[np.float64]