logPdf

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

Returns the natural logarithm of the probability density at x for this Laplace distribution.

Computed directly in log-space as -|x - mu| / scale - ln(2 * scale), avoiding intermediate exponentiation and providing better precision for extreme values where the density is very small.

Return

the natural log of the probability density at x.

Parameters

x

the point at which to evaluate the log-density.