The OpenD Programming Language

betaProportionPDF

Computes the beta proportion probability density function (PDF).

@safe pure nothrow @nogc
T
betaProportionPDF
(
T
)
(
const T x
,
const T mu
,
const T kappa
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate PDF

mu T

shape parameter #1

kappa T

shape parameter #2

Examples

import mir.math.common: approxEqual;

assert(0.5.betaProportionPDF(0.5, 2) == 1);
assert(0.75.betaProportionPDF((1.0 / 3), 3).approxEqual(0.5));
assert(0.25.betaProportionPDF((1.0 / 9), 4.5).approxEqual(0.9228516));

See Also

Beta Proportion Distribution, $(DISTREF beta, betaPDF)

Meta