The OpenD Programming Language

binomialPMF.binomialPMF

  1. T binomialPMF(size_t k, size_t n, T p)
    template binomialPMF(BinomialAlgo binomialAlgo = BinomialAlgo.direct, PoissonAlgo poissonAlgo = PoissonAlgo.gamma)
    @safe pure nothrow @nogc
    T
    binomialPMF
    (
    T
    )
    (
    const size_t k
    ,
    const size_t n
    ,
    const T p
    )
    if (
    isFloatingPoint!T
    )
  2. template binomialPMF(string binomialAlgo, string poissonAlgo = "gamma")

Parameters

k size_t

value to evaluate PMF (e.g. number of "heads")

n size_t

number of trials

p T

true probability

Meta