[ 
https://issues.apache.org/jira/browse/MATH-1124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162367#comment-14162367
 ] 

Otmar Ertl commented on MATH-1124:
----------------------------------

@Ole Ersoy: For some distributions it is quite common to use multiple uniform 
distributed random numbers to generate a single random number following the 
given distributions (e.g normal distribution). Therefore, passing the random 
number generator is a much better design choice.

> Instances of AbstractRealDistribution require a random generator.
> -----------------------------------------------------------------
>
>                 Key: MATH-1124
>                 URL: https://issues.apache.org/jira/browse/MATH-1124
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Ajo Fod
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to