Skip to content

betaDistribution(parameters): BetaDistribution

Defined in: packages/distribution/src/beta-distribution.ts:33

Create a beta distribution with the given shapes. Each draw normalizes two gamma draws and consumes a variable number of 32-bit words. Small-shape pairs use log-space normalization. Rounding at an endpoint keeps the result interior.

BetaDistributionParameters

BetaDistribution

With INVALID_PARAMETER for an unsupported alpha or beta shape.