Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double NegBinomCDF(int x, double R, double p); | Negative binomial cumulative distribution function (CDF). |
| 2 | void NegBinomCDF(TMtxVecInt *X, double R, double P, TDenseMtxVec *Res); | Negative binomial distribution CDF (vectorized). |
Overload 1: double NegBinomCDF(int x, double R, double p);
Negative binomial cumulative distribution function (CDF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | int | Function domain, non-negative integer. |
| 2 | R | double | Number of successes, real positive value (R>0). |
| 3 | p | double | Success probability of each trial, real value on the closed interval [0,1]. |
Returns: the negative binomial cumulative distribution function (CDF) at x using parameters R and p. Returns NAN when x<0, p is outside [0,1] or R<=0.
Remarks:
Computes the negative binomial CDF P(X <= x):
CDF(x| R,p)=sum_(j=0)^x(Gamma(R+j))/(Gamma(j+1) Gamma(R)) p^R (1-p)^j
Domain: x >= 0, R>0, p in [0,1]. For x<0, R <= 0 or p not in [0,1] the result is NaN.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler
Overload 2: void NegBinomCDF(TMtxVecInt *X, double R, double P, TDenseMtxVec *Res);
Negative binomial distribution CDF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt * | Defines distribution domain, vector or matrix with integer values. |
| 2 | R | double | Defines number of successes, positive integer. |
| 3 | P | double | Defines probability of each trial, real value on closed interval [0,1]. |
| 4 | Res | TDenseMtxVec * | After calculation stores the CDF calculated from X, R 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