negativeBinomial
negativeBinomial(
options):NumberSampler
Defined in: src/distribution/discrete/waiting.ts:64
Negative binomial: failures before the r-th success.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Example
Section titled “Example”negativeBinomial({ r: 3, p: 0.5 }).sample(); // 4