logPdf

open override fun logPdf(x: Double): Double(source)

Returns the natural logarithm of the probability density at x.

Computed directly rather than as ln(pdf(x)) to avoid precision loss with very small density values. Returns negative infinity for non-positive inputs.

Return

the natural log of the probability density, or Double.NEGATIVE_INFINITY when x is non-positive.

Parameters

x

the point at which to evaluate the log-density.