You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ps...@apache.org on 2004/06/29 04:14:17 UTC
cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment FirstMoment.java FourthMoment.java SecondMoment.java ThirdMoment.java
psteitz 2004/06/28 19:14:17
Modified: math/src/java/org/apache/commons/math/stat/univariate/moment
FirstMoment.java FourthMoment.java
SecondMoment.java ThirdMoment.java
Log:
javadoc
Revision Changes Path
1.17 +3 -1 jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/FirstMoment.java
Index: FirstMoment.java
===================================================================
RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/FirstMoment.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- FirstMoment.java 27 Jun 2004 19:37:51 -0000 1.16
+++ FirstMoment.java 29 Jun 2004 02:14:17 -0000 1.17
@@ -34,6 +34,8 @@
* <li>For each additional value, update using <br>
* <code>m = m + (new value - m) / (number of observations)</code></li>
* </ol>
+ * <p>
+ * Returns <code>Double.NaN</code> if the dataset is empty.
*
* @version $Revision$ $Date$
*/
1.19 +4 -1 jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/FourthMoment.java
Index: FourthMoment.java
===================================================================
RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/FourthMoment.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- FourthMoment.java 27 Jun 2004 19:37:51 -0000 1.18
+++ FourthMoment.java 29 Jun 2004 02:14:17 -0000 1.19
@@ -38,6 +38,9 @@
* <p>
* new value = old value - 4 * (dev/n) * m3 + 6 * (dev/n)^2 * m2 + <br>
* [n^2 - 3 * (n-1)] * dev^4 * (n-1) / n^3
+ * <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.
*
* @version $Revision$ $Date$
*/
1.18 +4 -1 jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/SecondMoment.java
Index: SecondMoment.java
===================================================================
RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/SecondMoment.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- SecondMoment.java 27 Jun 2004 19:37:51 -0000 1.17
+++ SecondMoment.java 29 Jun 2004 02:14:17 -0000 1.18
@@ -30,6 +30,9 @@
* Then
* <p>
* new value = old value + dev^2 * (n -1) / n.
+ * <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.
*
* @version $Revision$ $Date$
*/
1.18 +4 -1 jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/ThirdMoment.java
Index: ThirdMoment.java
===================================================================
RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/moment/ThirdMoment.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ThirdMoment.java 27 Jun 2004 19:37:51 -0000 1.17
+++ ThirdMoment.java 29 Jun 2004 02:14:17 -0000 1.18
@@ -31,6 +31,9 @@
* Then
* <p>
* new value = old value - 3 * (dev/n) * m2 + (n-1) * (n -2) * (dev^3/n^2)
+ * <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.
*
* @version $Revision$ $Date$
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org