powered by
Returns a function that evaluates the Poisson PMF at given points.
# S3 method for poisson_dist density(x, ...)
A function function(k, log = FALSE, ...) returning the probability mass (or log-probability) at k.
function(k, log = FALSE, ...)
k
A poisson_dist object.
poisson_dist
Additional arguments (not used).
x <- poisson_dist(5) f <- density(x) f(5) f(0)
Run the code above in your browser using DataLab