logPdf

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

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

Computed directly in log-space as -ln(beta) - z - exp(-z), avoiding the 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.