logPdf

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

Computes the natural logarithm of the probability density at x.

Uses the logarithmic form of the piecewise density to avoid computing the density and then taking its log, which improves numerical stability for values near the boundaries.

Return

the natural log of the density at x, or Double.NEGATIVE_INFINITY if x is outside the support.

Parameters

x

the point at which to evaluate the log-density.