dot-sample_from_distribution.Rd
Draw samples from a probability distribution.
.sample_from_distribution(distribution, n)
distribution | list. probability distribution specified in list format
e.g. list(name = "gamma", shape = 2, scale = 4).
The |
---|---|
n | integer. Number of samples to draw. |
vector containing n
samples of distribution