You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex Herbert (Jira)" <ji...@apache.org> on 2019/10/02 22:11:00 UTC

[jira] [Created] (RNG-121) Cheng Beta Sampler

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)