The OpenD Programming Language

mir.stat.distribution.binomial

This module contains algorithms for the Binomial Distribution.

Members

Enums

BinomialAlgo
enum BinomialAlgo

Algorithms used to calculate binomial distribution.

Functions

binomialLPMF
T binomialLPMF(size_t k, size_t n, T p)

Computes the binomial log probability mass function (LPMF)

fp_binomialPMF
T fp_binomialPMF(size_t k, size_t n, T p)

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

Templates

binomialCCDF
template binomialCCDF(BinomialAlgo binomialAlgo = BinomialAlgo.direct, PoissonAlgo poissonAlgo = PoissonAlgo.gamma)
template binomialCCDF(string binomialAlgo, string poissonAlgo = "gamma")

Computes the binomial complementary cumulative distribution function (CCDF).

binomialCDF
template binomialCDF(BinomialAlgo binomialAlgo = BinomialAlgo.direct, PoissonAlgo poissonAlgo = PoissonAlgo.gamma)
template binomialCDF(string binomialAlgo, string poissonAlgo = "gamma")

Computes the binomial cumulative distribution function (CDF).

binomialInvCDF
template binomialInvCDF(BinomialAlgo binomialAlgo = BinomialAlgo.direct, PoissonAlgo poissonAlgo = PoissonAlgo.direct)
template binomialInvCDF(string binomialAlgo, string poissonAlgo = "direct")

Computes the binomial inverse cumulative distribution function (InvCDF).

binomialPMF
template binomialPMF(BinomialAlgo binomialAlgo = BinomialAlgo.direct, PoissonAlgo poissonAlgo = PoissonAlgo.gamma)
template binomialPMF(string binomialAlgo, string poissonAlgo = "gamma")

Computes the binomial probability mass function (PMF).

Meta

Authors

John Michael Hall