A wrapper using the function hesim::rdiricihlet_mat. Maintains the row and column names of mat.

sample_dirichlets(n, mat)

Arguments

n

Number of samples to draw.

mat

A matrix where each row is a separate vector of shape parameters.

Value

An array of matrices representing a sample from the dirichlet distribution for each row.