gammaSim | R Documentation |
Generate n pseudo random numbers from a gamma distribution.
gammaSim(n = 1, shape = 2, scale = 1, seed = as.integer(Sys.time()))
n |
the number of pseudo random gamma numbers to generate. Defaults to 1. |
shape |
Shape parameter. Defaults to 2. |
scale |
scale parameter. Note this is the inverse of the rate parameter used in some implementations of the gamma function Defaults to 1. |
seed |
Seed for pseudo random number generating algorithm. Defaults to a integer generated from the system time |
vector of gamma random variants of length n
gammaSim(n=1e5, shape = 3 , scale = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.