The OpenD Programming Language

dirichletPDF

The Dirichlet probability density.

double
dirichletPDF
(
X
A
)
(
X x
,)
if (
is(ElementType!X : double)
&&
is(ElementType!A : double)
)

Parameters

x X

An input range of observed values. All must be between [0, 1]. They must also sum to 1, though this is not checked because small deviations from this may result due to numerical error.

alpha A

A forward range of parameters. This must have the same length as x.

Meta