Skip to content

negativeBinomial

negativeBinomial(r, p): number

Defined in: src/global/distributions.ts:338

The number of failures before the r-th success.

number

number

number

negativeBinomial(3, 0.5); // 4