Skip to main content

Module gamma

Module gamma 

Source

Functions§

gamma_distribution
A gamma sample with shape alpha and scale beta (mean αβ, variance αβ²), by the Marsaglia-Tsang method (2000): a squeeze-accelerated rejection from a transformed normal, for α ≥ 1; for α < 1, Gamma(α) = Gamma(α + 1) · U^{1/α}.