Probabilities::BetaCDFInv Function

Overload List

#SignatureDescription
1double BetaCDFInv(double p, double a, double b);Beta distribution inverse CDF (quantile / point percent function, PPF).
2void BetaCDFInv(TDenseMtxVec *P, double A, double B, TDenseMtxVec *Res);Beta PPF (vectorized).

Overload 1: double BetaCDFInv(double p, double a, double b);

Beta distribution inverse CDF (quantile / point percent function, PPF).

#NameTypeDescription
1pdoubleProbability, real value on the closed interval [0,1].
2adoubleFirst shape parameter, real value > 0.
3bdoubleSecond shape parameter, real value > 0.

Returns: the value x with BetaCDF(x,a,b)=p for shape parameters a and b. Returns NAN when p < 0, p > 1, a <= 0 or b <= 0; returns p itself at p=0 and p=1.

Remarks:

Computes the inverse of the beta CDF (the quantile function)

inverse CDF(p|a,b) = F^(-1)(p|a,b) , p(x)=CDF(x|a,b)

evaluated by a Newton-Raphson iteration on I_x(a,b)-p. Domain: p in [0,1], a > 0, b > 0. Behaviour: at p=0 returns 0 and at p=1 returns 1; for invalid parameters or p not in [0,1] returns NAN.

See Also: Probabilities::BetaPDF, Probabilities::BetaCDF
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler

Overload 2: void BetaCDFInv(TDenseMtxVec *P, double A, double B, TDenseMtxVec *Res);

Beta PPF (vectorized).

#NameTypeDescription
1PTDenseMtxVec *Defines distribution probabilities, real vector or matrix with values within closed interval [0,1].
2AdoubleDistribution scale parameter, real positive value.
3BdoubleDistribution shape parameter, real positive value.
4ResTDenseMtxVec *After calculation stores the PPF calculated from P, A and B. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of X.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler