commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <j...@apache.org>
Subject [jira] Closed: (MATH-197) RandomDataImpl.nextPoisson() is extreme slow for large lambdas
Date Fri, 07 Aug 2009 09:21:14 GMT

     [ https://issues.apache.org/jira/browse/MATH-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luc Maisonobe closed MATH-197.
------------------------------


closing resolved issue for 2.0 release

> RandomDataImpl.nextPoisson() is extreme slow for large lambdas
> --------------------------------------------------------------
>
>                 Key: MATH-197
>                 URL: https://issues.apache.org/jira/browse/MATH-197
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.1, 1.2
>         Environment: jdk1.6.0_04, windows xp
>            Reporter: Tolja Zubow
>            Assignee: Brent Worden
>             Fix For: 2.0
>
>
> The RandomDataImpl.nextPoisson() is extreme slow for large lambdas:
> E.g. drawing 100 random numbers with lambda = 1000 takes around 10s on my dual core with
2.2GHz.
> With lambda smaller than 500 everything is fine. Any ideas?
>     RandomDataImpl r = new RandomDataImpl();
>     r.reSeed(101);
>     int d = 100;
>     long poissonLambda = 1000;
>     long st = System.currentTimeMillis();
>     for (int row = 0; row < d; row++) {
>       long nxtRnd = r.nextPoisson(poissonLambda);
>     }
>     System.out.println("delta " + (System.currentTimeMillis() - st));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message