Description Usage Arguments Value Examples
Generate a sample from a dirichlet distribution with parameter
alpha
1 | rdirichlet(n = 1, alpha = 1)
|
n |
The number of Dirichlet samples to draw. |
alpha |
(Optional) A vector of parameters for Dirichlet variable. Defaults to 1. |
A vector of a random sample from Dirichlet distribution with
parameter alpha
1 | rdirichlet(5, sample(1:10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.