simulate_compound_gamma

function simulate_compound_gamma(k:Real, α:Real, β:Real) -> Real

Simulate a compound-gamma distribution.

  • k: Shape.
  • α: Prior shape.
  • β: Prior scale.