| sampler.lognormal | R Documentation |
Returns a function that draws n independent samples from the
log-normal distribution.
## S3 method for class 'lognormal'
sampler(x, ...)
x |
A |
... |
Additional arguments (not used). |
A function function(n = 1, ...) returning a numeric vector
of length n.
x <- lognormal(0, 1)
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.