| sampler.poisson_dist | R Documentation |
Returns a function that draws n independent samples from the
Poisson distribution.
## S3 method for class 'poisson_dist'
sampler(x, ...)
x |
A |
... |
Additional arguments (not used). |
A function function(n = 1, ...) returning an integer vector
of length n.
x <- poisson_dist(5)
s <- sampler(x)
set.seed(42)
s(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.