A wrapper using the function hesim::rdiricihlet_mat. Maintains the row and column names of mat.
sample_dirichlets(n, mat)
| n | Number of samples to draw. |
|---|---|
| mat | A matrix where each row is a separate vector of shape parameters. |
An array of matrices representing a sample from the dirichlet distribution for each row.