Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1124

Instances of AbstractRealDistribution require a random generator.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Labels:
      None

      Description

      A couple of observations:
      ... The default random generator takes a while to instantiate.
      ... Many functions of these distributions don't require a random generator. Generally speaking only sampling requires it.
      So, why force the default constructor to initialize with a new random generator ... why not use a global generic or simple generator?

      Or do away with random generator except for sampling?

      This issue was observed with the TDistribution class , but it is probably applicable to many classes as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ajo.fod Ajo Fod
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: