You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/04/25 16:03:53 UTC

[GitHub] [commons-rng] aherbert opened a new pull request #39: RNG-96: Fix parameter interpretation in the

aherbert opened a new pull request #39: RNG-96: Fix parameter interpretation in the
URL: https://github.com/apache/commons-rng/pull/39
 
 
   AhrensDieterMarsagliaTsangGammaSampler.
   
   This modifies the algorithm so that alpha is interpreted as a 'shape'
   parameter and theta is a 'scale' parameter. This effectively reverses
   the function of the parameters (alpha => theta and theta => alpha). The
   algorithm parameter names match those defined on MathWorld and
   Wikipedia. The sampler output matches the reference definition in the
   tests when the same parameters for shape and scale are used.
   
   `alpha` is a shape parameter and defines the shape of the distribution and the algorithm used.
   
   `theta` is a scale parameter and just stretches the distribution.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services