Description Usage Arguments Details Value Examples
Computes the expected value of the Zipf-PE distribution for given values of parameters α and β.
1 | zipfpeMean(alpha, beta, tolerance = 10^(-4))
|
alpha |
Value of the α parameter (α > 2). |
beta |
Value of the β parameter (β \in (-∞, +∞)). |
tolerance |
Tolerance used in the calculations (default = 10^{-4}). |
The mean of the distribution only exists for α strictly greater than 2.
It is computed by calculating the partial sums of the serie, and stopping when two
consecutive partial sums differ less than the tolerance
value.
The value of the last partial sum is returned.
A positive real value corresponding to the mean value of the Zipf-PE distribution.
1 2 | zipfpeMean(2.5, 1.3)
zipfpeMean(2.5, 1.3, 10^(-3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.