Skip to content

gammaDistribution

gammaDistribution(shape, rate?): Distribution

Defined in: gamma-distribution.ts:24

The gamma distribution, parameterised by shape and rate.

Rate rather than scale, so that gammaDistribution(1, r) is the same distribution as exponentialDistribution(r) and the two agree on what their second argument means. Scale is its reciprocal.

number

Shape parameter k; must be positive.

number = 1

Rate parameter λ; must be positive.

Distribution

The distribution.

When either parameter is not positive.