Skip to content

negativeBinomial

negativeBinomial(options): NumberSampler

Defined in: src/distribution/discrete/waiting.ts:64

Negative binomial: failures before the r-th success.

NegativeBinomialOptions

NumberSampler

negativeBinomial({ r: 3, p: 0.5 }).sample(); // 4