Description Usage Arguments Value Note See Also
Samples from a Dirichlet distribution given a hyperparameter
1 | sample_dirichlet(num_elements, alpha)
|
num_elements |
the dimention of the Dirichlet distribution |
alpha |
the hyperparameter vector (a column vector) |
returns a Dirichlet sample (a column vector)
Author: Clint P. George
Created on: 2014
Other utils: H
, JSD.matrix
,
JSD
, KLD
,
sample_antoniak
,
sample_multinomial
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.