Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void UniformDPDF(TMtxVecInt X, Int32 N, TDenseMtxVec Res) | Discrete uniform distribution PDF (vectorized). |
| 2 | Double UniformDPDF(Int32 x, Int32 N) | Discrete uniform probability mass function (PMF). |
Overload 1: void UniformDPDF(TMtxVecInt X, Int32 N, TDenseMtxVec Res)
Discrete uniform distribution PDF (vectorized).
| # | Name | Description |
|---|---|---|
| 1 | X | Defines distribution domain, vector or matrix with integer values on closed interval [1,N]. |
| 2 | N | Distribution parameter, positive integer. |
| 3 | Res | 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. |
Result: stored in self (calling object)
Overload 2: Double UniformDPDF(Int32 x, Int32 N)
Discrete uniform probability mass function (PMF).
| # | Name | Description |
|---|---|---|
| 1 | x | Function domain, integer on the closed interval [1,N]. |
| 2 | N | Upper bound of the support |
| 3 | N must be a positive integer (N>=1). |
Returns: Double - 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.