The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
binomialPMF.binomialPMF
mir
stat
distribution
binomial
binomialPMF
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
)
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
Source
See Implementation
mir
stat
distribution
binomial
binomialPMF
functions
binomialPMF