The OpenD Programming Language

mir.stat.distribution.hypergeometric

This module contains algorithms for the Hypergeometric Distribution.

There are multiple alternative parameterizations of the Hypergeometric Distribution. The formulation in this module measures the number of draws (k) with a specific feature in n total draws without replacement from a population of size N such that K of these have the feature of interest.

Hypergeometric distribution functions can utilize different algorithms. The default is HypergeometricAlgo.direct, which can be more time-consuming for large values of the parameters. Additional algorithms are provided to the user to choose the trade-off between running time and accuracy.

Members

Enums

HypergeometricAlgo
enum HypergeometricAlgo

Algorithms used to calculate hypergeometric distribution.

Functions

fp_hypergeometricPMF
T fp_hypergeometricPMF(size_t k, size_t N, size_t K, size_t n)

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

hypergeometricCCDF
T hypergeometricCCDF(size_t k, size_t N, size_t K, size_t n)

Computes the hypergeometric complementary cumulative distribution function (CCDF).

hypergeometricCDF
T hypergeometricCDF(size_t k, size_t N, size_t K, size_t n)

Computes the hypergeometric cumulative distribution function (CDF).

hypergeometricInvCDF
size_t hypergeometricInvCDF(T p, size_t N, size_t K, size_t n)

Computes the hypergeometric inverse cumulative distribution function (InvCDF).

hypergeometricLPMF
T hypergeometricLPMF(size_t k, size_t N, size_t K, size_t n)

Computes the hypergeometric log probability mass function (LPMF).

hypergeometricPMF
T hypergeometricPMF(size_t k, size_t N, size_t K, size_t n)

Computes the hypergeometric probability mass function (PMF).

Templates

hypergeometricCCDF
template hypergeometricCCDF(HypergeometricAlgo hypergeometricAlgo = HypergeometricAlgo.direct)
template hypergeometricCCDF(T, string hypergeometricAlgo)
template hypergeometricCCDF(string hypergeometricAlgo)

Computes the hypergeometric complementary cumulative distribution function (CCDF).

hypergeometricCDF
template hypergeometricCDF(HypergeometricAlgo hypergeometricAlgo = HypergeometricAlgo.direct)
template hypergeometricCDF(T, string hypergeometricAlgo)
template hypergeometricCDF(string hypergeometricAlgo)

Computes the hypergeometric cumulative distribution function (CDF).

hypergeometricInvCDF
template hypergeometricInvCDF(T, string hypergeometricAlgo)
template hypergeometricInvCDF(string hypergeometricAlgo)

Computes the hypergeometric inverse cumulative distribution function (InvCDF).

hypergeometricPMF
template hypergeometricPMF(HypergeometricAlgo hypergeometricAlgo = HypergeometricAlgo.direct)
template hypergeometricPMF(T, string hypergeometricAlgo)
template hypergeometricPMF(string hypergeometricAlgo)

Computes the hypergeometric probability mass function (PMF).

Meta

Authors

John Michael Hall