Description Usage Arguments Details Value See Also
Generate samples from m sources and p parameters, n sample per source. The between-source alpha hyperparameter used to generate the source parameters is mandatory.
1 | rdirdirgamma_beta_cpp(n, m, alpha_0, beta_0, nu_0)
|
n |
number of samples per source |
m |
number of sources |
alpha_0 |
between-source Gamma hyperparameter, a scalar |
beta_0 |
between-source Gamma hyperparameter, a scalar |
nu_0 |
between-source Dirichlet hyperparameter, a numeric vector |
this function uses R's RNG seed.
a matrix with n*m rows
Other RNG functions:
rdirdirgamma_cpp()
,
rdirichlet_beta_cpp()
,
rdirichlet_cpp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.