Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double NormalPDF(double x, double Mu, double sigma); | Normal (Gaussian) probability density function (PDF). |
| 2 | void NormalPDF(TDenseMtxVec *X, double Mu, double sigma, TDenseMtxVec *Res); | Normal distribution PDF (vectorized). |
| 3 | void NormalPDF(TDenseMtxVec *X, TDenseMtxVec *Mu, TDenseMtxVec *sigma, TDenseMtxVec *Res); | Normal distribution PDF (vectorized). |
Overload 1: double NormalPDF(double x, double Mu, double sigma);
Normal (Gaussian) probability density function (PDF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | double | Function domain, any real value. |
| 2 | Mu | double | Distribution location parameter (mean), any real value. |
| 3 | sigma | double | Distribution scale parameter (standard deviation), real value > 0. |
Returns: the normal probability density function (PDF) at x for mean Mu and standard deviation sigma. Returns NAN when sigma <= 0.
Computes the normal PDF
PDF(x|mu,sigma )= 1/(sigma sqrt(2pi)) exp ( - ((x-mu)^2)/(2sigma ^2))
where mu (Mu) is the mean and sigma (sigma) the standard deviation. The special case mu=0,sigma=1 is the standard normal distribution. Domain: x in R, mu in R, sigma > 0. If sigma <= 0 the result is NAN.
Overloads: a scalar form (this one) and vectorized forms taking a TDenseMtxVec domain (vector or matrix), with the parameters supplied either as scalars or as per-element vectors; the result operand is auto-sized to the domain.
Overload 2: void NormalPDF(TDenseMtxVec *X, double Mu, double sigma, TDenseMtxVec *Res);
Normal distribution PDF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Defines distribution domain, real vector or matrix. |
| 2 | Mu | double | Distribution location parameter, real value. |
| 3 | sigma | double | Distribution scale parameter, real positive value. |
| 4 | Res | TDenseMtxVec * | After calculation stores the PDF calculated from X, Mu and sigma. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of X. |
Overload 3: void NormalPDF(TDenseMtxVec *X, TDenseMtxVec *Mu, TDenseMtxVec *sigma, TDenseMtxVec *Res);
Normal distribution PDF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Defines distribution domain, real vector or matrix. |
| 2 | Mu | TDenseMtxVec * | Distribution location parameter, real vector or matrix. |
| 3 | sigma | TDenseMtxVec * | Distribution scale parameter, real positive vector or matrix. |
| 4 | Res | TDenseMtxVec * | After calculation stores the PDF calculated from X, Mu and sigma. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of X. |