You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jason McFall (JIRA)" <ji...@apache.org> on 2009/09/11 19:40:57 UTC
[jira] Created: (MATH-295) RandomDataImpl.nextPoisson fails for
means in range 6.0 - 19.99
RandomDataImpl.nextPoisson fails for means in range 6.0 - 19.99
---------------------------------------------------------------
Key: MATH-295
URL: https://issues.apache.org/jira/browse/MATH-295
Project: Commons Math
Issue Type: Bug
Affects Versions: 2.0, 1.2
Environment: Java 1.6 on Mac 0S X
Reporter: Jason McFall
RandomDataImpl.nextPoission(double mean) fails frequently (but not every time) from calls with mean >= 6.0 and < 20.0
Below 6.0 and above 20 it seems fine, as far as I can tell by testing values at random.
When it fails, the exception is as follows - this from calling nextPoisson(6.0)
org.apache.commons.math.MathRuntimeException$4: must have n >= 0 for n!, got n = -2
at org.apache.commons.math.MathRuntimeException.createIllegalArgumentException(MathRuntimeException.java:282)
at org.apache.commons.math.util.MathUtils.factorialLog(MathUtils.java:561)
at org.apache.commons.math.random.RandomDataImpl.nextPoisson(RandomDataImpl.java:434)
ie it's calling MathUtils.factorialLog with a negative argument.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (MATH-295) RandomDataImpl.nextPoisson fails for
means in range 6.0 - 19.99
Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Steitz closed MATH-295.
----------------------------
> RandomDataImpl.nextPoisson fails for means in range 6.0 - 19.99
> ---------------------------------------------------------------
>
> Key: MATH-295
> URL: https://issues.apache.org/jira/browse/MATH-295
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 1.2, 2.0
> Environment: Java 1.6 on Mac 0S X
> Reporter: Jason McFall
>
> RandomDataImpl.nextPoission(double mean) fails frequently (but not every time) from calls with mean >= 6.0 and < 20.0
> Below 6.0 and above 20 it seems fine, as far as I can tell by testing values at random.
> When it fails, the exception is as follows - this from calling nextPoisson(6.0)
> org.apache.commons.math.MathRuntimeException$4: must have n >= 0 for n!, got n = -2
> at org.apache.commons.math.MathRuntimeException.createIllegalArgumentException(MathRuntimeException.java:282)
> at org.apache.commons.math.util.MathUtils.factorialLog(MathUtils.java:561)
> at org.apache.commons.math.random.RandomDataImpl.nextPoisson(RandomDataImpl.java:434)
> ie it's calling MathUtils.factorialLog with a negative argument.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (MATH-295) RandomDataImpl.nextPoisson fails for
means in range 6.0 - 19.99
Posted by "Jason McFall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason McFall resolved MATH-295.
-------------------------------
Resolution: Duplicate
Duplicate of Math 294
> RandomDataImpl.nextPoisson fails for means in range 6.0 - 19.99
> ---------------------------------------------------------------
>
> Key: MATH-295
> URL: https://issues.apache.org/jira/browse/MATH-295
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 1.2, 2.0
> Environment: Java 1.6 on Mac 0S X
> Reporter: Jason McFall
>
> RandomDataImpl.nextPoission(double mean) fails frequently (but not every time) from calls with mean >= 6.0 and < 20.0
> Below 6.0 and above 20 it seems fine, as far as I can tell by testing values at random.
> When it fails, the exception is as follows - this from calling nextPoisson(6.0)
> org.apache.commons.math.MathRuntimeException$4: must have n >= 0 for n!, got n = -2
> at org.apache.commons.math.MathRuntimeException.createIllegalArgumentException(MathRuntimeException.java:282)
> at org.apache.commons.math.util.MathUtils.factorialLog(MathUtils.java:561)
> at org.apache.commons.math.random.RandomDataImpl.nextPoisson(RandomDataImpl.java:434)
> ie it's calling MathUtils.factorialLog with a negative argument.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (MATH-295) RandomDataImpl.nextPoisson fails for
means in range 6.0 - 19.99
Posted by "Jason McFall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason McFall reopened MATH-295:
-------------------------------
> RandomDataImpl.nextPoisson fails for means in range 6.0 - 19.99
> ---------------------------------------------------------------
>
> Key: MATH-295
> URL: https://issues.apache.org/jira/browse/MATH-295
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 1.2, 2.0
> Environment: Java 1.6 on Mac 0S X
> Reporter: Jason McFall
>
> RandomDataImpl.nextPoission(double mean) fails frequently (but not every time) from calls with mean >= 6.0 and < 20.0
> Below 6.0 and above 20 it seems fine, as far as I can tell by testing values at random.
> When it fails, the exception is as follows - this from calling nextPoisson(6.0)
> org.apache.commons.math.MathRuntimeException$4: must have n >= 0 for n!, got n = -2
> at org.apache.commons.math.MathRuntimeException.createIllegalArgumentException(MathRuntimeException.java:282)
> at org.apache.commons.math.util.MathUtils.factorialLog(MathUtils.java:561)
> at org.apache.commons.math.random.RandomDataImpl.nextPoisson(RandomDataImpl.java:434)
> ie it's calling MathUtils.factorialLog with a negative argument.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (MATH-295) RandomDataImpl.nextPoisson fails for
means in range 6.0 - 19.99
Posted by "Jason McFall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MATH-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason McFall closed MATH-295.
-----------------------------
Resolution: Fixed
Sorry, duplicate of Math 294 (got a 'server down for maintenance' error message when raising 294 but obviously it did get stored)
> RandomDataImpl.nextPoisson fails for means in range 6.0 - 19.99
> ---------------------------------------------------------------
>
> Key: MATH-295
> URL: https://issues.apache.org/jira/browse/MATH-295
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 1.2, 2.0
> Environment: Java 1.6 on Mac 0S X
> Reporter: Jason McFall
>
> RandomDataImpl.nextPoission(double mean) fails frequently (but not every time) from calls with mean >= 6.0 and < 20.0
> Below 6.0 and above 20 it seems fine, as far as I can tell by testing values at random.
> When it fails, the exception is as follows - this from calling nextPoisson(6.0)
> org.apache.commons.math.MathRuntimeException$4: must have n >= 0 for n!, got n = -2
> at org.apache.commons.math.MathRuntimeException.createIllegalArgumentException(MathRuntimeException.java:282)
> at org.apache.commons.math.util.MathUtils.factorialLog(MathUtils.java:561)
> at org.apache.commons.math.random.RandomDataImpl.nextPoisson(RandomDataImpl.java:434)
> ie it's calling MathUtils.factorialLog with a negative argument.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.