Probabilities::NormalCDFInv Function

Overload List

#SignatureDescription
1double NormalCDFInv(double p, double Mu, double sigma);Normal distribution inverse CDF (quantile / point percent function, PPF).
2void NormalCDFInv(TDenseMtxVec *P, double Mu, double sigma, TDenseMtxVec *Res);Normal distribution PPF (vectorized).

Overload 1: double NormalCDFInv(double p, double Mu, double sigma);

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

#NameTypeDescription
1pdoubleProbability, real value on the closed interval [0,1].
2MudoubleDistribution location parameter (mean), any real value.
3sigmadoubleDistribution scale parameter (standard deviation), real value > 0.

Returns: the value x such that NormalCDF(x,Mu,sigma)=p. Returns NAN when p < 0, p > 1 or sigma <= 0; returns +INF at both p=0 and p=1.

Remarks:

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

inverse CDF(p| mu,sigma ) = F^(-1)(p| mu,sigma) = mu + sigma Phi^(-1)(p) , p(x)=CDF(x|mu,sigma)

where Phi^(-1) is the standard-normal quantile. The implementation evaluates Phi^(-1) with the AS 241 (PPND16) rational approximation (accurate to about 1 part in 10^(16)). Domain: p in [0,1], sigma > 0. Behaviour: for interior p in (0,1) the finite quantile is returned; at the boundaries p=0 and p=1 the result is +inf; if p not in [0,1] or sigma <= 0 the result is NAN.

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

Overload 2: void NormalCDFInv(TDenseMtxVec *P, double Mu, double sigma, TDenseMtxVec *Res);

Normal distribution PPF (vectorized).

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