commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Herbert (Jira)" <>
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
             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

View raw message