Repository: commons-math
Updated Branches:
  refs/heads/master c93cc818f -> e42ab0ec6


Javadoc (a few missed updates re: MATH-1146)


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/e42ab0ec
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/e42ab0ec
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/e42ab0ec

Branch: refs/heads/master
Commit: e42ab0ec6c4a1b7838ec9f14143126d4b6cad548
Parents: c93cc81
Author: Phil Steitz <phil.ste...@gmail.com>
Authored: Sat Jan 10 15:41:51 2015 -0700
Committer: Phil Steitz <phil.ste...@gmail.com>
Committed: Sat Jan 10 15:41:51 2015 -0700

----------------------------------------------------------------------
 .../commons/math3/stat/descriptive/moment/FirstMoment.java       | 4 +++-
 .../commons/math3/stat/descriptive/moment/SecondMoment.java      | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/e42ab0ec/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java
 
b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java
index eaf9788..5f2b95a 100644
--- 
a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java
+++ 
b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java
@@ -38,7 +38,9 @@ import org.apache.commons.math3.util.MathUtils;
  *   <code>m = m + (new value - m) / (number of observations)</code></li>
  * </ol></p>
  * <p>
- *  Returns <code>Double.NaN</code> if the dataset is empty.</p>
+ *  Returns <code>Double.NaN</code> if the dataset is empty. Note that
+ *  Double.NaN may also be returned if the input includes NaN and / or infinite
+ *  values.</p>
  * <p>
  * <strong>Note that this implementation is not synchronized.</strong> If
  * multiple threads access an instance of this class concurrently, and at least

http://git-wip-us.apache.org/repos/asf/commons-math/blob/e42ab0ec/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SecondMoment.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SecondMoment.java
 
b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SecondMoment.java
index 5caeca3..12715c0 100644
--- 
a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SecondMoment.java
+++ 
b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SecondMoment.java
@@ -36,7 +36,9 @@ import org.apache.commons.math3.util.MathUtils;
  * new value = old value + dev^2 * (n -1) / n.</p>
  * <p>
  * Returns <code>Double.NaN</code> if no data values have been added and
- * returns <code>0</code> if there is just one value in the data set.</p>
+ * returns <code>0</code> if there is just one value in the data set.
+ * Note that Double.NaN may also be returned if the input includes NaN
+ * and / or infinite values.</p>
  * <p>
  * <strong>Note that this implementation is not synchronized.</strong> If
  * multiple threads access an instance of this class concurrently, and at least

Reply via email to