Probabilities::MaxwellCDF Function

Overload List

#SignatureDescription
1double MaxwellCDF(double x, double a);Maxwell cumulative distribution function (CDF).
2void MaxwellCDF(TDenseMtxVec *X, double a, TDenseMtxVec *Res);Maxwell CDF (vectorized).

Overload 1: double MaxwellCDF(double x, double a);

Maxwell cumulative distribution function (CDF).

#NameTypeDescription
1xdoubleFunction domain, zero or positive real value.
2adoubleDistribution 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.

See Also: Probabilities::MaxwellPDF, Probabilities::MaxwellCDFInv
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).

#NameTypeDescription
1XTDenseMtxVec *Defines distribution domain, real vector or matrix with positive real values or zeros.
2adoubleDistribution parameter, positive real value.
3ResTDenseMtxVec *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