[
https://issues.apache.org/jira/browse/RNG-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Herbert resolved RNG-121.
------------------------------
Fix Version/s: 1.3
Resolution: Implemented
In master.
> 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
> Priority: Minor
> Fix For: 1.3
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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)