Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void NormalPDF(TDenseMtxVec X, TDenseMtxVec Mu, TDenseMtxVec sigma, TDenseMtxVec Res) | Normal distribution PDF (vectorized). |
| 2 | void NormalPDF(TDenseMtxVec X, Double Mu, Double sigma, TDenseMtxVec Res) | Normal distribution PDF (vectorized). |
| 3 | Double NormalPDF(Double x, Double Mu, Double sigma) | Normal (Gaussian) probability density function (PDF). |
Overload 1: void NormalPDF(TDenseMtxVec X, TDenseMtxVec Mu, TDenseMtxVec sigma, TDenseMtxVec Res)
Normal distribution PDF (vectorized).
| # | Name | Description |
|---|---|---|
| 1 | X | Defines distribution domain, real vector or matrix. |
| 2 | Mu | Distribution location parameter, real vector or matrix. |
| 3 | sigma | Distribution scale parameter, real positive vector or matrix. |
| 4 | Res | 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. |
Result: stored in self (calling object)
Overload 2: void NormalPDF(TDenseMtxVec X, Double Mu, Double sigma, TDenseMtxVec Res)
Normal distribution PDF (vectorized).
| # | Name | Description |
|---|---|---|
| 1 | X | Defines distribution domain, real vector or matrix. |
| 2 | Mu | Distribution location parameter, real value. |
| 3 | sigma | Distribution scale parameter, real positive value. |
| 4 | Res | 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. |
Result: stored in self (calling object)
Overload 3: Double NormalPDF(Double x, Double Mu, Double sigma)
Normal (Gaussian) probability density function (PDF).
| # | Name | Description |
|---|---|---|
| 1 | x | Function domain, any real value. |
| 2 | Mu | Distribution location parameter (mean), any real value. |
| 3 | sigma | Distribution scale parameter (standard deviation), real value > 0. |
Returns: Double - 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 Dew.Math.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.