commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1221507 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java
Date Tue, 20 Dec 2011 22:38:19 GMT
Author: psteitz
Date: Tue Dec 20 22:38:19 2011
New Revision: 1221507

URL: http://svn.apache.org/viewvc?rev=1221507&view=rev
Log:
Javadoc.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java?rev=1221507&r1=1221506&r2=1221507&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java
Tue Dec 20 22:38:19 2011
@@ -107,16 +107,16 @@ public class RandomDataImpl implements R
     /** Serializable version identifier */
     private static final long serialVersionUID = -626730818244969716L;
 
-    /** Used when generating Exponential samples
-     * [1] writes:
-     * One table containing the constants
+    /** 
+     * Used when generating Exponential samples.
+     * Table containing the constants
      * q_i = sum_{j=1}^i (ln 2)^j/j! = ln 2 + (ln 2)^2/2 + ... + (ln 2)^i/i!
      * until the largest representable fraction below 1 is exceeded.
      *
      * Note that
      * 1 = 2 - 1 = exp(ln 2) - 1 = sum_{n=1}^infty (ln 2)^n / n!
      * thus q_i -> 1 as i -> infty,
-     * so the higher 1, the closer to one we get (the series is not alternating).
+     * so the higher i, the closer to one we get (the series is not alternating).
      *
      * By trying, n = 16 in Java is enough to reach 1.0.
      */



Mime
View raw message