Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void ZipfCDF(TMtxVecInt X, Double s, Int32 N, TDenseMtxVec Res) | Zipf distribution CDF (vectorized). |
| 2 | Double ZipfCDF(Int32 x, Double s, Int32 N) | Zipf (finite/truncated) cumulative distribution function (CDF). |
Overload 1: void ZipfCDF(TMtxVecInt X, Double s, Int32 N, TDenseMtxVec Res)
Zipf distribution CDF (vectorized).
| # | Name | Description |
|---|---|---|
| 1 | X | Defines distribution domain, real vector or matrix with integer values on interval [1,Inf). |
| 2 | s | Distribution parameter, real positive value. |
| 3 | N | Distribution parameter, positive integer. |
| 4 | Res | After calculation stores the CDF calculated from X,s 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 ZipfCDF(Int32 x, Double s, Int32 N)
Zipf (finite/truncated) cumulative distribution function (CDF).
| # | Name | Description |
|---|---|---|
| 1 | x | Function domain, positive integer on the closed interval [1,N]. |
| 2 | s | Exponent (shape) parameter, real positive value. |
| 3 | N | Number of elements (support upper bound), positive integer. |
Returns: Double - the finite Zipf cumulative distribution function (CDF) at x using parameters s and N. Returns NAN when s<=0, N<=0, or x outside [1,N].
Remarks:
Computes the finite (truncated) Zipf CDF P(X <= x):
CDF(x| s,N)=H(x,s)/H(N,s), H(n,s)=sum_(k=1)^n1/k^s
where is the generalized harmonic number. Domain: x in {1,...,N}, s>0, N>0; otherwise the result is NaN.
See Also: Probabilities.ZipfPDF, Probabilities.ZipfCDFInv