[ https://issues.apache.org/jira/browse/MATH-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722346#action_12722346 ]
Eugene Kirpichov commented on MATH-197: --------------------------------------- I have had a look at the source and it looks like the method is already implemented, so the bug should probably be closed? > 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.