Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double GeometricCDF(int x, double p); | Geometric cumulative distribution function (CDF). |
| 2 | void GeometricCDF(TMtxVecInt *X, double p, TDenseMtxVec *Res); | Geometric distribution CDF (vectorized). |
Overload 1: double GeometricCDF(int x, double p);
Geometric cumulative distribution function (CDF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | int | Function domain, non-negative integer. |
| 2 | p | double | Success probability; valid on the half-open interval (0,1]. |
Returns: the geometric cumulative distribution function (CDF) for value x using parameter p. Returns NAN when x<0 or p is outside (0,1].
Remarks:
Computes the geometric CDF P(X <= x) in the failures parameterization:
CDF(x| p)=1-(1-p)^( x+1), x=0,1,2,...
Domain: x >= 0, p in (0,1]. For x<0, p <= 0 or p>1 the result is NaN.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler
Overload 2: void GeometricCDF(TMtxVecInt *X, double p, TDenseMtxVec *Res);
Geometric distribution CDF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt * | Defines distribution domain, real vector or matrix with positive integers. |
| 2 | p | double | Defines success probability. p must lie on the [0,1] closed interval. |
| 3 | Res | TDenseMtxVec * | After calculation stores the CDF calculated from X and p. 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