The OpenD Programming Language

fLPDF

Computes the F log probability density function (LPDF).

@safe pure nothrow @nogc
T
fLPDF
(
T
)
(
const T x
,
const T df1
,
const T df2
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate LPDF

df1 T

degrees of freedom parameter #1

df2 T

degrees of freedom parameter #2

Examples

import mir.math.common: log;
import mir.test: shouldApprox;

0.50.fLPDF(1, 1).shouldApprox == log(0.3001054);
0.75.fLPDF(1, 2).shouldApprox == log(0.2532039);
0.25.fLPDF(0.5, 4).shouldApprox == log(0.4904035);
0.10.fLPDF(2, 1).shouldApprox == log(0.7607258);
0.00.fLPDF(1, 3).shouldApprox == double.infinity;

See Also

Meta