NegativeBinomialDistribution constructor

const NegativeBinomialDistribution(
  1. double r,
  2. double p
)

A negative binomial distribution with parameters r and p.

Implementation

const NegativeBinomialDistribution(this.r, this.p)
    : assert(r > 0, 'r > 0'),
      assert(0 <= p && p <= 1, '0 <= p <= 1');