simulate_dirichlet

function simulate_dirichlet(α:Real[_]) -> Real[_]

Simulate a Dirichlet distribution.

  • α: Concentrations.

function simulate_dirichlet(α:Real, D:Integer) -> Real[_]

Simulate a Dirichlet distribution.

  • α: Concentration.
  • D: Number of dimensions.