Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double UniformDPDF(int x, int N); | Discrete uniform probability mass function (PMF). |
| 2 | void UniformDPDF(TMtxVecInt *X, int N, TDenseMtxVec *Res); | Discrete uniform distribution PDF (vectorized). |
Overload 1: double UniformDPDF(int x, int N);
Discrete uniform probability mass function (PMF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | int | Function domain, integer on the closed interval [1,N]. |
| 2 | N | int | Upper bound of the support; N must be a positive integer (N>=1). |
Returns: the discrete uniform probability mass function (PMF) at x using parameter N. Returns NAN when N<1; 0 outside the support.
Remarks:
The discrete uniform distribution puts equal weight 1/N on the integers 1,2,...,N:
PMF(x| N)=1/N, x=1,2,...,N
Domain: x in {1,...,N}, N >= 1. For N<1 the result is NaN; for x outside the result is 0.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler
Overload 2: void UniformDPDF(TMtxVecInt *X, int N, TDenseMtxVec *Res);
Discrete uniform distribution PDF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt * | Defines distribution domain, vector or matrix with integer values on closed interval [1,N]. |
| 2 | N | int | Distribution parameter, positive integer. |
| 3 | Res | TDenseMtxVec * | After calculation stores the PDF calculated from X and N. 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