Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void NormalCDFTwoTail(TDenseMtxVec *X, TDenseMtxVec *Mu, TDenseMtxVec *sigma, TDenseMtxVec *Res); | Normal distribution two-tailed probability (vectorized; vector or matrix Mu, sigma). |
| 2 | void NormalCDFTwoTail(TDenseMtxVec *X, const double Mu, const double sigma, TDenseMtxVec *Res); | Normal distribution two-tailed probability (vectorized; scalar Mu, sigma). |
Overload 1: void NormalCDFTwoTail(TDenseMtxVec *X, TDenseMtxVec *Mu, TDenseMtxVec *sigma, TDenseMtxVec *Res);
Normal distribution two-tailed probability (vectorized; vector or matrix Mu, sigma).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Distribution domain, real vector or matrix. |
| 2 | Mu | TDenseMtxVec * | Distribution location parameter, real vector or matrix (elementwise). |
| 3 | sigma | TDenseMtxVec * | Distribution scale parameter, real positive vector or matrix (elementwise). |
| 4 | Res | TDenseMtxVec * | After calculation stores the two-tail probability computed from X, Mu and sigma. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of X. |
Returns: For each element, the upper two-tail probability of the normal distribution, P(|Z| > |x-mu|/sigma) = 1 - erfbigl(|x-mu|/(sigmasqrt(2))bigr). Elements with the corresponding sigma<=0 are not guarded and divide by zero; supply sigma>0.
Computes elementwise the upper (symmetric) two-tail normal probability
Res = 1 - erf((|x-mu|)/sigmasqrt(2)) = 2(1-Phi((|x-mu|)/sigma)) ,
i.e. the probability that a standard normal deviate falls outside +/-|x-mu|/sigma. The value is 1 at x=mu and decreases toward 0 as |x-mu| grows.
Overload 2: void NormalCDFTwoTail(TDenseMtxVec *X, const double Mu, const double sigma, TDenseMtxVec *Res);
Normal distribution two-tailed probability (vectorized; scalar Mu, sigma).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Distribution domain, real vector or matrix. |
| 2 | Mu | const double | Distribution location parameter, real value. |
| 3 | sigma | const double | Distribution scale parameter, real positive value (sigma>0). |
| 4 | Res | TDenseMtxVec * | After calculation stores the two-tail probability computed from X, Mu and sigma. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of X. |
Returns: For each element of X, the upper two-tail probability of the normal distribution, P(|Z| > |x-mu|/sigma) = 1 - erfbigl(|x-mu|/(sigmasqrt(2))bigr). If sigma<=0 every element of Res is set to NaN.
Computes elementwise the upper (symmetric) two-tail normal probability
Res = 1 - erf((|x-mu|)/sigmasqrt(2)) = 2(1-Phi((|x-mu|)/sigma)) ,
i.e. the probability that a standard normal deviate falls outside +/-|x-mu|/sigma. The value is 1 at x=mu and decreases toward 0 as |x-mu| grows. If sigma<=0 the result is NaN.