Alex Herbert created RNG-121:
--------------------------------

             Summary: Cheng Beta Sampler
                 Key: RNG-121
                 URL: https://issues.apache.org/jira/browse/RNG-121
             Project: Commons RNG
          Issue Type: Improvement
          Components: sampling
    Affects Versions: 1.3
            Reporter: Alex Herbert


The ChengBetaSampler chooses between two algorithms on each call to the 
sample() method. Each algorithm has several constants that are computed on each 
call. The choice and these constants will always be the same.

Extract the two algorithms into private classes that can precompute the 
constants. The main sample method can delegate to the appropriately chosen 
private class implementation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to