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.
Parameters
Section titled “Parameters”parameters
Section titled “parameters”Returns
Section titled “Returns”Throws
Section titled “Throws”With INVALID_PARAMETER for an unsupported alpha or beta shape.