The OpenD Programming Language

mir.stat.distribution.negative_binomial

This module contains algorithms for the Negative Binomial Distribution.

There are multiple alternative formulations of the Negative Binomial Distribution. The formulation in this module uses the number of Bernoulli trials until r successes.

Members

Functions

fp_negativeBinomialPMF
T fp_negativeBinomialPMF(size_t k, size_t r, T p)

Computes the negative binomial probability mass function (PMF) directly with extended floating point types (e.g. Fp!128), which provides additional accuracy for extreme values of k, r, or p.

negativeBinomialCCDF
T negativeBinomialCCDF(size_t k, size_t r, T p)

Computes the negative binomial complementary cumulative distribution function (CCDF).

negativeBinomialCDF
T negativeBinomialCDF(size_t k, size_t r, T p)

Computes the negative binomial cumulative distribution function (CDF).

negativeBinomialInvCDF
size_t negativeBinomialInvCDF(T q, size_t r, T p)

Computes the negative binomial inverse cumulative distribution function (InvCDF).

negativeBinomialLPMF
T negativeBinomialLPMF(size_t k, size_t r, T p)

Computes the negative binomial log probability mass function (LPMF).

negativeBinomialPMF
T negativeBinomialPMF(size_t k, size_t r, T p)

Computes the negative binomial probability mass function (PMF).

Meta

Authors

John Michael Hall