You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mi...@apache.org on 2011/03/27 19:07:31 UTC
svn commit: r1085989 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/inference/MannWhitneyUTestImpl.java
Author: mikl
Date: Sun Mar 27 17:07:30 2011
New Revision: 1085989
URL: http://svn.apache.org/viewvc?rev=1085989&view=rev
Log:
Javadoc fixes (added missing parameter documentations, removed documentation for non-existing parameter, and newline cleanup)
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/inference/MannWhitneyUTestImpl.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/inference/MannWhitneyUTestImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/inference/MannWhitneyUTestImpl.java?rev=1085989&r1=1085988&r2=1085989&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/inference/MannWhitneyUTestImpl.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/inference/MannWhitneyUTestImpl.java Sun Mar 27 17:07:30 2011
@@ -104,13 +104,10 @@ public class MannWhitneyUTestImpl implem
/**
* {@inheritDoc}
*
- * @param x
- * the first sample
- * @param y
- * the second sample
+ * @param x the first sample
+ * @param y the second sample
* @return mannWhitneyU statistic U (maximum of U<sup>x</sup> and U<sup>y</sup>)
- * @throws IllegalArgumentException
- * if preconditions are not met
+ * @throws IllegalArgumentException if preconditions are not met
*/
public double mannWhitneyU(final double[] x, final double[] y)
throws IllegalArgumentException {
@@ -145,13 +142,11 @@ public class MannWhitneyUTestImpl implem
}
/**
- * @param Umin
- * smallest Mann-Whitney U value
- * @param N
- * number of subjects (corresponding to x.length)
+ * @param Umin smallest Mann-Whitney U value
+ * @param n1 number of subjects in first sample
+ * @param n2 number of subjects in second sample
* @return two-sided asymptotic p-value
- * @throws MathException
- * if an error occurs computing the p-value
+ * @throws MathException if an error occurs computing the p-value
*/
private double calculateAsymptoticPValue(final double Umin, final int n1,
final int n2) throws MathException {
@@ -177,15 +172,11 @@ public class MannWhitneyUTestImpl implem
*
* {@inheritDoc}
*
- * @param x
- * the first sample
- * @param y
- * the second sample
+ * @param x the first sample
+ * @param y the second sample
* @return asymptotic p-value (biased for samples with ties)
- * @throws IllegalArgumentException
- * if preconditions are not met
- * @throws MathException
- * if an error occurs computing the p-value
+ * @throws IllegalArgumentException if preconditions are not met
+ * @throws MathException if an error occurs computing the p-value
*/
public double mannWhitneyUTest(final double[] x, final double[] y)
throws IllegalArgumentException, MathException {