Skip to content

gammaDistribution(parameters): GammaDistribution

Defined in: packages/distribution/src/gamma-distribution.ts:30

Create a gamma distribution with the given shape and rate. Each rejection draw consumes a variable number of 32-bit words. Shapes below one use a log-space boost. A positive draw beneath binary64’s range rounds to the smallest positive double.

GammaDistributionParameters

GammaDistribution

With INVALID_PARAMETER for an unsupported shape or rate.