Function to draw from a Dirichlet distribution.
Arguments
- delta
A vector, the concentration parameter.
Value
A vector, the sample from the Dirichlet distribution of the same length as delta
.
Examples
rdirichlet(delta = 1:3)
#> [,1]
#> [1,] 0.01462974
#> [2,] 0.18676501
#> [3,] 0.79860525