The OpenD Programming Language

betaCCDF

Computes the beta complementary cumulative distribution function (CCDF).

@safe pure nothrow @nogc
T
betaCCDF
(
T
)
(
const T x
,
const T alpha
,
const T beta
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate CCDF

alpha T

shape parameter #1

beta T

shape parameter #2

Examples

import mir.math.common: approxEqual;

assert(0.5.betaCCDF(1, 1).approxEqual(0.5));
assert(0.75.betaCCDF(1, 2).approxEqual(0.0625));
assert(0.25.betaCCDF(0.5, 4).approxEqual(0.1411133));

See Also

Meta