The OpenD Programming Language

mir.stat.distribution.categorical

This module contains algorithms for the Categorical Distribution.

Members

Functions

categoricalCCDF
sumType!(Slice!(Iterator, 1, kind)) categoricalCCDF(size_t x, Slice!(Iterator, 1, kind) p)
T categoricalCCDF(size_t x, T[] p)

Computes the Categorical complementary cumulative distribution function (CCDF).

categoricalCDF
sumType!(Slice!(Iterator, 1, kind)) categoricalCDF(size_t x, Slice!(Iterator, 1, kind) p)
T categoricalCDF(size_t x, T[] p)

Computes the Categorical cumulative distribution function (CDF).

categoricalInvCDF
size_t categoricalInvCDF(T q, Slice!(Iterator, 1, kind) p)
size_t categoricalInvCDF(T q, T[] p)

Computes the Categorical inverse cumulative distribution function (InvCDF).

categoricalLPMF
elementType!(Slice!(Iterator, 1, kind)) categoricalLPMF(size_t x, Slice!(Iterator, 1, kind) p)
T categoricalLPMF(size_t x, T[] p)

Computes the Categorical log probability mass function (LPMF).

categoricalPMF
elementType!(Slice!(Iterator, 1, kind)) categoricalPMF(size_t x, Slice!(Iterator, 1, kind) p)
T categoricalPMF(size_t x, T[] p)

Computes the Categorical probability mass function (PMF).

Meta

Authors

John Michael Hall