dpol | R Documentation |
dpol
returns the PMF at x for the Zipf-polylog distribution with parameters (alpha, theta). The distribution is reduced to the discrete power law when theta = 1.
dpol(x, alpha, theta, x_max = 100000L)
x |
Vector of positive integers |
alpha |
Real number greater than 1 |
theta |
Real number in (0, 1] |
x_max |
Scalar (default 100000), positive integer limit for computing the normalising constant |
The PMF is proportional to x^(-alpha) * theta^x. It is normalised in order to be a proper PMF.
A numeric vector of the same length as x
Spol
for the corresponding survival function, dmix2
and dmix3
for the PMFs of the 2-component and 3-component discrete extreme value mixture distributions, respectively.
dpol(c(1,2,3,4,5), 1.2, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.