Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0, 1.1, 1.2, 2.0
-
None
-
None
-
Ubuntu 9.04
Description
Index: src/main/java/org/apache/commons/math/random/RandomDataImpl.java
===================================================================
— src/main/java/org/apache/commons/math/random/RandomDataImpl.java (revision 830102)
+++ src/main/java/org/apache/commons/math/random/RandomDataImpl.java (working copy)
@@ -462,7 +462,7 @@
- @return the random Exponential value
*/
public double nextExponential(double mean) {
- if (mean < 0.0) {
+ if (mean <= 0.0)Unknown macro: { throw MathRuntimeException.createIllegalArgumentException( "mean must be positive ({0})", mean); }