commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <phil.ste...@gmail.com>
Subject [math] Re: binomial random generator
Date Sun, 23 Oct 2011 03:29:41 GMT
On 10/22/11 8:15 PM, Ahmed Abdeen Hamed wrote:
> Hello friends,
>
> I am using the following code in a program I am writing:
>     private static JDKRandomGenerator rg = new JDKRandomGenerator();
>     private static RandomDataImpl randBinomial = new RandomDataImpl(rg);
>
> However, it is slowing down things very much. When I replace generator with
> a java.util.Random object it works fine without the performance issues. Is
> that expected with this library? Is there any work around? My programs are
> very time consuming and I have been repeatedly running them. I really need
> some tips if there is anything I can do to enhance the performance.

That depends on how you are using randBinomial above.  Can you share
the code that uses randBinomial and what you mean by "replace
generator with a java.util.Random object?"  It will also help to
describe what exactly you are trying to accomplish with the code.

Phil
>
> Thanks very much!
> Ahmed
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message