powered by
Returns a function that draws n independent samples from the Poisson distribution.
n
# S3 method for poisson_dist sampler(x, ...)
A function function(n = 1, ...) returning an integer vector of length n.
function(n = 1, ...)
A poisson_dist object.
poisson_dist
Additional arguments (not used).
x <- poisson_dist(5) s <- sampler(x) set.seed(42) s(5)
Run the code above in your browser using DataLab