commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Herbert (Jira)" <j...@apache.org>
Subject [jira] [Created] (RNG-121) Cheng Beta Sampler
Date Wed, 02 Oct 2019 22:11:00 GMT
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)

Mime
View raw message