Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double MaxwellCDF(double x, double a); | Maxwell cumulative distribution function (CDF). |
| 2 | void MaxwellCDF(TDenseMtxVec *X, double a, TDenseMtxVec *Res); | Maxwell CDF (vectorized). |
Overload 1: double MaxwellCDF(double x, double a);
Maxwell cumulative distribution function (CDF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | double | Function domain, zero or positive real value. |
| 2 | a | double | Distribution parameter, positive real value. |
Returns: the Maxwell cumulative distribution function (CDF) for value x using the parameter a. a must be positive and x >= 0, otherwise the result is NAN.
Remarks:
The Maxwell cumulative distribution function (standard, scale a) is
CDF(x| a)=erf(x/(sqrt(2) a))-sqrt(2/pi) x/aexp(-x^2/2a^2), x >= 0
equivalently 2 gamma(3/2, x^2/(2a^2)) / sqrt(pi) with the lower incomplete gamma function. It is the probability that a single observation falls in [0, x]. Domain: x >= 0 and a > 0; the result rises monotonically from 0 to 1. For a <= 0 or x < 0 the result is NAN.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler
Overload 2: void MaxwellCDF(TDenseMtxVec *X, double a, TDenseMtxVec *Res);
Maxwell CDF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Defines distribution domain, real vector or matrix with positive real values or zeros. |
| 2 | a | double | Distribution parameter, positive real value. |
| 3 | Res | TDenseMtxVec * | After calculation stores the CDF calculated from X and a. 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