logPdf

abstract fun logPdf(x: Double): Double(source)

Returns the natural logarithm of the probability density at x.

The log-density is useful when working with very small density values that would underflow to zero in regular floating-point arithmetic. Every implementation provides a direct formula rather than computing ln(pdf(x)), which avoids unnecessary precision loss.

Return

the natural log of the probability density at x. Returns Double.NEGATIVE_INFINITY when the density is zero.

Parameters

x

the point at which to evaluate the log-density.