GumbelDistribution
class GumbelDistribution(val mu: Double = 0.0, val beta: Double = 1.0) : ContinuousDistribution(source)
The Gumbel distribution (extreme value type I, right-skewed), defined by its location mu and scale beta parameters.
The Gumbel distribution models the distribution of the maximum of a number of samples of various distributions. It is widely used in hydrology (flood analysis), meteorology (extreme weather events), and reliability engineering (failure analysis). Unlike symmetric distributions, the Gumbel has a longer right tail, reflecting the tendency for extreme maxima to be farther from the center than extreme minima.
This implementation corresponds to scipy.stats.gumbel_r (right-skewed Gumbel).
Example:
val dist = GumbelDistribution(mu = 0.0, beta = 1.0)
dist.pdf(0.0) // 0.3679... (peak density at the mode)
dist.cdf(0.0) // 0.3679...
dist.quantile(0.5) // 0.3665... (median)
dist.mean // 0.5772... (Euler-Mascheroni constant)Content copied to clipboard