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: [email protected] With regards, Apache Git Services
