powered by
Density, distribution function and random generation for the hyper-Poisson distribution with parameters gamma and lambda.
gamma
lambda
dhP(x, gamma, lambda)phP(q, gamma, lambda, lower.tail = TRUE)rhP(n, gamma, lambda)
phP(q, gamma, lambda, lower.tail = TRUE)
rhP(n, gamma, lambda)
dhP gives the density, phP gives the distribution function and rhP generates random deviates.
dhP
phP
rhP
Invalid gamma or lambda will result in return value
NaN, with a warning.
NaN
The length of the result is determined by n for rhP, and is the maximum of the lengths of the numerical arguments for the other functions.
The numerical arguments other than n are recycled to the length of the result. Only the first element of the logical arguments is used.
n
vector of (non-negative integer) quantiles.
dispersion parameter. Must be strictly positive.
location parameter. Must be strictly positive.
vector of quantiles.
logical; if TRUE (default), probabilities are \(P[X \le x]\), otherwise, \(P[X > x]\).
TRUE
number of random values to return.
## density function for hyper-Poisson dhP(3, 15, 2) ## distribution function for hyper-Poisson phP(3, 15, 2) ## random generation for the hyper-Poisson rhP(10, 15, 2)
Run the code above in your browser using DataLab