Hi Guys,

I heard that there's lots of way to sample from a Gamma distribution.  What
is commons-math using when I call GammaDistribution.sample()?  From the
API, it says that sample() uses the "Inversion method" from:
  http://en.wikipedia.org/wiki/Inverse_transform_sampling

But this function is inherited from AbstractRealDistribution.  Doesn't the
sampling method differ between distributions (e.g. gaussian vs gamma vs
beta vs etc)?

Best Regards,
Paul

Reply via email to