You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2021/06/05 01:08:00 UTC

[jira] [Created] (RNG-142) Return type of method "withUniformRandomProvider"

Gilles Sadowski created RNG-142:
-----------------------------------

             Summary: Return type of method "withUniformRandomProvider"
                 Key: RNG-142
                 URL: https://issues.apache.org/jira/browse/RNG-142
             Project: Commons RNG
          Issue Type: Improvement
          Components: sampling
            Reporter: Gilles Sadowski


Expected usage:
{code:java}
NormalizedGaussianSampler n01 = ZigguratNormalizedGaussianSampler.of(RandomSource.create(RandomSource.KISS));

GaussianSampler g = GaussianSampler.of(n01.withUniformRandomProvider(RandomSource.create(RandomSource.JSF_64)), 0.43, 2.1);
{code}
Code doesn't compile: Method {{withUniformRandomProvider}} returns a {{SharedStateContinuousSampler}} whereas a {{NormalizedGaussianSampler}} is required.

Am I missing something?



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