Uploaded image for project: 'Commons RNG'
  1. Commons RNG
  2. RNG-142

Return type of method "withUniformRandomProvider"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • sampling
    • None

    Description

      Expected usage:

      NormalizedGaussianSampler n01 = ZigguratNormalizedGaussianSampler.of(RandomSource.create(RandomSource.KISS));
      
      GaussianSampler g = GaussianSampler.of(n01.withUniformRandomProvider(RandomSource.create(RandomSource.JSF_64)), 0.43, 2.1);
      

      Code doesn't compile: Method withUniformRandomProvider returns a SharedStateContinuousSampler whereas a NormalizedGaussianSampler is required.

      Am I missing something?

      Attachments

        Activity

          People

            Unassigned Unassigned
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: