Skip to main content

Gamma

Base class: Distribution

Represents the Gamma distribution with shape parameter alpha (with default value 1.0) and scale parameter beta (with default value 1.0).

The probability density function is given by,

f(x∣α,β)=e−xββα\[Gamma](index.md)(α)xα−1.f(x |\alpha,\beta) = \frac{e^{-\frac{x}{\beta}}}{\beta^\alpha \[Gamma](index.md)(\alpha)}x^{\alpha - 1}.

Constructors​

Gamma(const Gamma distribution) -> Gamma​

Copy constructor for Gamma distribution.

Parameters​

  • distribution: Gamma distribution to be copied

Symbols​

NameDescription
=Copy assignment operator for Gamma distribution.

Members​

NameDescription
alphaShape
betaScale
maxReturns the maximum possible value from the distribution
minReturns the minimum possible value from the distribution
sampleSample from distribution.