commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tolja Zubow (JIRA)" <j...@apache.org>
Subject [jira] Created: (MATH-197) RandomDataImpl.nextPoisson() is extreme slow for large lambdas
Date Mon, 17 Mar 2008 11:57:24 GMT
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.2
         Environment: jdk1.6.0_04, windows xp
            Reporter: Tolja Zubow


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