You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ra...@apache.org on 2017/05/12 22:06:00 UTC

[1/5] [math] Fix invalid HTML entity in javadoc

Repository: commons-math
Updated Branches:
  refs/heads/master 7a59c0af2 -> 44b2b2c1b


Fix invalid HTML entity in javadoc


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

Branch: refs/heads/master
Commit: 6440b7f64877b80fed0fc226843d158f0c865805
Parents: 7a59c0a
Author: Ray DeCampo <ra...@decampo.org>
Authored: Fri May 12 17:38:42 2017 -0400
Committer: Ray DeCampo <ra...@decampo.org>
Committed: Fri May 12 17:38:42 2017 -0400

----------------------------------------------------------------------
 .../org/apache/commons/math4/ml/distance/EarthMoversDistance.java  | 2 +-
 .../apache/commons/math4/stat/correlation/KendallsCorrelation.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/6440b7f6/src/main/java/org/apache/commons/math4/ml/distance/EarthMoversDistance.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/ml/distance/EarthMoversDistance.java b/src/main/java/org/apache/commons/math4/ml/distance/EarthMoversDistance.java
index c5df780..77b0479 100644
--- a/src/main/java/org/apache/commons/math4/ml/distance/EarthMoversDistance.java
+++ b/src/main/java/org/apache/commons/math4/ml/distance/EarthMoversDistance.java
@@ -23,7 +23,7 @@ import org.apache.commons.math4.util.MathArrays;
 /**
  * Calculates the Earh Mover's distance (also known as Wasserstein metric) between two distributions.
  *
- * @see <a href="http://en.wikipedia.org/wiki/Earth_mover's_distance">Earth Mover&apos;s distance (Wikipedia)</a>
+ * @see <a href="http://en.wikipedia.org/wiki/Earth_mover's_distance">Earth Mover's distance (Wikipedia)</a>
  *
  * @since 3.3
  */

http://git-wip-us.apache.org/repos/asf/commons-math/blob/6440b7f6/src/main/java/org/apache/commons/math4/stat/correlation/KendallsCorrelation.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/correlation/KendallsCorrelation.java b/src/main/java/org/apache/commons/math4/stat/correlation/KendallsCorrelation.java
index c6bccb7..1fdb155 100644
--- a/src/main/java/org/apache/commons/math4/stat/correlation/KendallsCorrelation.java
+++ b/src/main/java/org/apache/commons/math4/stat/correlation/KendallsCorrelation.java
@@ -63,7 +63,7 @@ import org.apache.commons.math4.util.Pair;
  * @see <a href="http://en.wikipedia.org/wiki/Kendall_tau_rank_correlation_coefficient">
  * Kendall tau rank correlation coefficient (Wikipedia)</a>
  * @see <a href="http://www.jstor.org/stable/2282833">A Computer
- * Method for Calculating Kendall&apos;s Tau with Ungrouped Data</a>
+ * Method for Calculating Kendall's Tau with Ungrouped Data</a>
  *
  * @since 3.3
  */


[3/5] [math] Fix javadoc issues

Posted by ra...@apache.org.
Fix javadoc issues

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

Branch: refs/heads/master
Commit: b6bcbff8dc79a509855bdd570c9d8ee3f967bce6
Parents: 53d9d65
Author: Ray DeCampo <ra...@decampo.org>
Authored: Fri May 12 17:55:33 2017 -0400
Committer: Ray DeCampo <ra...@decampo.org>
Committed: Fri May 12 17:55:33 2017 -0400

----------------------------------------------------------------------
 .../commons/math4/stat/descriptive/summary/Product.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/b6bcbff8/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
index 58609f8..46340c0 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
@@ -146,10 +146,10 @@ public class Product extends AbstractStorelessUnivariateStatistic implements Ser
      *     <li>the start and length arguments do not determine a valid array</li>
      * </ul>
      *
-     * <p>Uses the formula, <pre>
+     * <p>Uses the formula, <div style="white-space: pre"><code>
      *    weighted product = &prod;values[i]<sup>weights[i]</sup>
-     * </pre>
-     * that is, the weights are applied as exponents when computing the weighted product.</p>
+     * </code></div>
+     * that is, the weights are applied as exponents when computing the weighted product.
      *
      * @param values the input array
      * @param weights the weights array
@@ -185,10 +185,10 @@ public class Product extends AbstractStorelessUnivariateStatistic implements Ser
      * </ul>
      *
      * <p>Uses the formula,
-     * <pre>
+     * <div style="white-space: pre"><code>
      *    weighted product = &prod;values[i]<sup>weights[i]</sup>
-     * </pre>
-     * that is, the weights are applied as exponents when computing the weighted product.</p>
+     * </code></div>
+     * that is, the weights are applied as exponents when computing the weighted product.
      *
      * @param values the input array
      * @param weights the weights array


[5/5] [math] Fix javadoc issues

Posted by ra...@apache.org.
Fix javadoc issues

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

Branch: refs/heads/master
Commit: 44b2b2c1b465113bb1718e864dd928d1eaeb13de
Parents: 69f13ae
Author: Ray DeCampo <ra...@decampo.org>
Authored: Fri May 12 18:05:11 2017 -0400
Committer: Ray DeCampo <ra...@decampo.org>
Committed: Fri May 12 18:05:11 2017 -0400

----------------------------------------------------------------------
 .../apache/commons/math4/geometry/euclidean/oned/Vector1D.java | 2 +-
 .../commons/math4/geometry/euclidean/threed/Cartesian3D.java   | 2 +-
 .../commons/math4/geometry/euclidean/threed/Vector3D.java      | 6 +++---
 .../apache/commons/math4/geometry/euclidean/twod/Vector2D.java | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/44b2b2c1/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/Vector1D.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/Vector1D.java b/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/Vector1D.java
index ceeea08..8a9742b 100644
--- a/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/Vector1D.java
+++ b/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/Vector1D.java
@@ -26,7 +26,7 @@ public abstract class Vector1D implements Vector<Euclidean1D> {
 
     /** Get the abscissa of the vector.
      * @return abscissa of the vector
-     * @see #Cartesian1D(double)
+     * @see Cartesian1D#Cartesian1D(double)
      */
     public abstract double getX();
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/44b2b2c1/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Cartesian3D.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Cartesian3D.java b/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Cartesian3D.java
index 3880edf..a1468b9 100644
--- a/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Cartesian3D.java
+++ b/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Cartesian3D.java
@@ -327,7 +327,7 @@ public class Cartesian3D extends Vector3D implements Serializable, Point<Euclide
      *   Cartesian3D k = u.normalize();
      *   Cartesian3D i = k.orthogonal();
      *   Cartesian3D j = Cartesian3D.crossProduct(k, i);
-     * </code></pre></p>
+     * </code></pre>
      * @return a new normalized vector orthogonal to the instance
      * @exception MathArithmeticException if the norm of the instance is null
      */

http://git-wip-us.apache.org/repos/asf/commons-math/blob/44b2b2c1/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Vector3D.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Vector3D.java b/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Vector3D.java
index 23d644a..15400f7 100644
--- a/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Vector3D.java
+++ b/src/main/java/org/apache/commons/math4/geometry/euclidean/threed/Vector3D.java
@@ -27,19 +27,19 @@ public abstract class Vector3D implements Vector<Euclidean3D> {
 
     /** Get the abscissa of the vector.
      * @return abscissa of the vector
-     * @see #Cartesian3D(double, double, double)
+     * @see Cartesian3D#Cartesian3D(double, double, double)
      */
     public abstract double getX();
 
     /** Get the ordinate of the vector.
      * @return ordinate of the vector
-     * @see #Cartesian3D(double, double, double)
+     * @see Cartesian3D#Cartesian3D(double, double, double)
      */
     public abstract double getY();
 
     /** Get the height of the vector.
      * @return height of the vector
-     * @see #Cartesian3D(double, double, double)
+     * @see Cartesian3D#Cartesian3D(double, double, double)
      */
     public abstract double getZ();
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/44b2b2c1/src/main/java/org/apache/commons/math4/geometry/euclidean/twod/Vector2D.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/geometry/euclidean/twod/Vector2D.java b/src/main/java/org/apache/commons/math4/geometry/euclidean/twod/Vector2D.java
index a43c8a0..dbe98d7 100644
--- a/src/main/java/org/apache/commons/math4/geometry/euclidean/twod/Vector2D.java
+++ b/src/main/java/org/apache/commons/math4/geometry/euclidean/twod/Vector2D.java
@@ -25,13 +25,13 @@ public abstract class Vector2D implements Vector<Euclidean2D> {
 
     /** Get the abscissa of the vector.
      * @return abscissa of the vector
-     * @see #Cartesian2D(double, double)
+     * @see Cartesian2D#Cartesian2D(double, double)
      */
     public abstract double getX();
 
     /** Get the ordinate of the vector.
      * @return ordinate of the vector
-     * @see #Cartesian2D(double, double)
+     * @see Cartesian2D#Cartesian2D(double, double)
      */
     public abstract double getY();
 


[2/5] [math] Fix javadoc issues

Posted by ra...@apache.org.
Fix javadoc issues

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

Branch: refs/heads/master
Commit: 53d9d652f2af8dd93b1a79c692f4b1fecbc7ea37
Parents: 6440b7f
Author: Ray DeCampo <ra...@decampo.org>
Authored: Fri May 12 17:52:09 2017 -0400
Committer: Ray DeCampo <ra...@decampo.org>
Committed: Fri May 12 17:52:09 2017 -0400

----------------------------------------------------------------------
 .../commons/math4/stat/descriptive/moment/GeometricMean.java   | 2 +-
 .../apache/commons/math4/stat/descriptive/moment/Kurtosis.java | 2 +-
 .../commons/math4/stat/descriptive/moment/SemiVariance.java    | 2 +-
 .../apache/commons/math4/stat/descriptive/moment/Skewness.java | 2 +-
 .../apache/commons/math4/stat/descriptive/moment/Variance.java | 6 +++---
 5 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/53d9d652/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java
index aaeffe6..8742748 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java
@@ -35,7 +35,7 @@ import org.apache.commons.math4.util.MathUtils;
  * Uses a {@link SumOfLogs} instance to compute sum of logs and returns
  * <code> exp( 1/n  (sum of logs) ).</code>  Therefore, </p>
  * <ul>
- * <li>If any of values are < 0, the result is <code>NaN.</code></li>
+ * <li>If any of values are {@code < 0}, the result is <code>NaN.</code></li>
  * <li>If all values are non-negative and less than
  * <code>Double.POSITIVE_INFINITY</code>,  but at least one value is 0, the
  * result is <code>0.</code></li>

http://git-wip-us.apache.org/repos/asf/commons-math/blob/53d9d652/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java
index 8e5f280..a9a0cc5 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java
@@ -36,7 +36,7 @@ import org.apache.commons.math4.util.MathUtils;
  * where n is the number of values, mean is the {@link Mean} and std is the
  * {@link StandardDeviation}</p>
  * <p>
- * Note that this statistic is undefined for n < 4.  <code>Double.Nan</code>
+ * Note that this statistic is undefined for {@code n < 4}.  <code>Double.Nan</code>
  * is returned when there is not sufficient data to compute the statistic.
  * Note that Double.NaN may also be returned if the input includes NaN
  * and / or infinite values.</p>

http://git-wip-us.apache.org/repos/asf/commons-math/blob/53d9d652/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java
index b1427b8..33c0c8e 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java
@@ -30,7 +30,7 @@ import org.apache.commons.math4.util.MathUtils;
  * We define the <i>downside semivariance</i> of a set of values <code>x</code>
  * against the <i>cutoff value</i> <code>cutoff</code> to be <br>
  * <code>&Sigma; (x[i] - target)<sup>2</sup> / df</code> <br>
- * where the sum is taken over all <code>i</code> such that <code>x[i] < cutoff</code>
+ * where the sum is taken over all <code>i</code> such that {@code x[i] < cutoff}
  * and <code>df</code> is the length of <code>x</code> (non-bias-corrected) or
  * one less than this number (bias corrected).  The <i>upside semivariance</i>
  * is defined similarly, with the sum taken over values of <code>x</code> that

http://git-wip-us.apache.org/repos/asf/commons-math/blob/53d9d652/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
index 93a7f7f..3fcd4be 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
@@ -35,7 +35,7 @@ import org.apache.commons.math4.util.MathUtils;
  * where n is the number of values, mean is the {@link Mean} and std is the
  * {@link StandardDeviation} </p>
  * <p>
- * Note that this statistic is undefined for n < 3.  <code>Double.Nan</code>
+ * Note that this statistic is undefined for {@code n < 3}.  <code>Double.Nan</code>
  * is returned when there is not sufficient data to compute the statistic.
  * Double.NaN may also be returned if the input includes NaN and / or
  * infinite values.</p>

http://git-wip-us.apache.org/repos/asf/commons-math/blob/53d9d652/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
index 7ed06bc..ebed82f 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
@@ -276,10 +276,10 @@ public class Variance extends AbstractStorelessUnivariateStatistic implements Se
      * the input array, or <code>Double.NaN</code> if the designated subarray
      * is empty.</p>
      * <p>
-     * Uses the formula <pre>
+     * Uses the formula <div style="white-space: pre"><code>
      *   &Sigma;(weights[i]*(values[i] - weightedMean)<sup>2</sup>)/(&Sigma;(weights[i]) - 1)
-     * </pre>
-     * where weightedMean is the weighted mean</p>
+     * </code></div>
+     * where weightedMean is the weighted mean
      * <p>
      * This formula will not return the same result as the unweighted variance when all
      * weights are equal, unless all weights are equal to 1. The formula assumes that


[4/5] [math] Fix javadoc issues

Posted by ra...@apache.org.
Fix javadoc issues

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

Branch: refs/heads/master
Commit: 69f13aed99c256eb5f9a4b1f293836f37b52402f
Parents: b6bcbff
Author: Ray DeCampo <ra...@decampo.org>
Authored: Fri May 12 18:00:58 2017 -0400
Committer: Ray DeCampo <ra...@decampo.org>
Committed: Fri May 12 18:00:58 2017 -0400

----------------------------------------------------------------------
 .../stat/regression/AbstractMultipleLinearRegression.java |  4 ++--
 .../math4/stat/regression/MillerUpdatingRegression.java   |  2 +-
 .../stat/regression/OLSMultipleLinearRegression.java      | 10 +++++-----
 .../commons/math4/stat/regression/RegressionResults.java  |  6 +++---
 .../commons/math4/stat/regression/SimpleRegression.java   |  6 +++---
 5 files changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/69f13aed/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java b/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
index d7036e3..78b9460 100644
--- a/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
+++ b/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
@@ -90,7 +90,7 @@ public abstract class AbstractMultipleLinearRegression implements
      *   4     5     6
      *   7     8     9
      * </pre>
-     * </p>
+     * 
      * <p>Note that there is no need to add an initial unitary column (column of 1's) when
      * specifying a model including an intercept term.  If {@link #isNoIntercept()} is <code>true</code>,
      * the X matrix will be created without an initial column of "1"s; otherwise this column will
@@ -99,7 +99,7 @@ public abstract class AbstractMultipleLinearRegression implements
      * <p>Throws IllegalArgumentException if any of the following preconditions fail:
      * <ul><li><code>data</code> cannot be null</li>
      * <li><code>data.length = nobs * (nvars + 1)</code></li>
-     * <li><code>nobs > nvars</code></li></ul>
+     * <li>{@code nobs > nvars}</li></ul>
      *
      * @param data input data array
      * @param nobs number of observations (rows)

http://git-wip-us.apache.org/repos/asf/commons-math/blob/69f13aed/src/main/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegression.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegression.java b/src/main/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegression.java
index abc8fea..0558719 100644
--- a/src/main/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegression.java
+++ b/src/main/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegression.java
@@ -595,7 +595,7 @@ public class MillerUpdatingRegression implements UpdatingMultipleLinearRegressio
      * model, then the usual simple correlations are returned.</p>
      *
      * <p>If IN = 0, the value returned in array CORMAT for the correlation
-     * of variables Xi & Xj is: <pre>
+     * of variables Xi &amp; Xj is: <pre>
      * sum ( Xi.Xj ) / Sqrt ( sum (Xi^2) . sum (Xj^2) )</pre>
      *
      * <p>On return, array CORMAT contains the upper triangle of the matrix of

http://git-wip-us.apache.org/repos/asf/commons-math/blob/69f13aed/src/main/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegression.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegression.java b/src/main/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegression.java
index 113a04f..637e4fe 100644
--- a/src/main/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegression.java
+++ b/src/main/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegression.java
@@ -183,9 +183,9 @@ public class OLSMultipleLinearRegression extends AbstractMultipleLinearRegressio
     }
 
     /**
-     * Returns the R-Squared statistic, defined by the formula <pre>
+     * Returns the R-Squared statistic, defined by the formula <div style="white-space: pre"><code>
      * R<sup>2</sup> = 1 - SSR / SSTO
-     * </pre>
+     * </code></div>
      * where SSR is the {@link #calculateResidualSumOfSquares() sum of squared residuals}
      * and SSTO is the {@link #calculateTotalSumOfSquares() total sum of squares}
      *
@@ -201,12 +201,12 @@ public class OLSMultipleLinearRegression extends AbstractMultipleLinearRegressio
     }
 
     /**
-     * <p>Returns the adjusted R-squared statistic, defined by the formula <pre>
+     * <p>Returns the adjusted R-squared statistic, defined by the formula <div style="white-space: pre"><code>
      * R<sup>2</sup><sub>adj</sub> = 1 - [SSR (n - 1)] / [SSTO (n - p)]
-     * </pre>
+     * </code></div>
      * where SSR is the {@link #calculateResidualSumOfSquares() sum of squared residuals},
      * SSTO is the {@link #calculateTotalSumOfSquares() total sum of squares}, n is the number
-     * of observations and p is the number of parameters estimated (including the intercept).</p>
+     * of observations and p is the number of parameters estimated (including the intercept).
      *
      * <p>If the regression is estimated without an intercept term, what is returned is <pre>
      * <code> 1 - (1 - {@link #calculateRSquared()}) * (n / (n - p)) </code>

http://git-wip-us.apache.org/repos/asf/commons-math/blob/69f13aed/src/main/java/org/apache/commons/math4/stat/regression/RegressionResults.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/regression/RegressionResults.java b/src/main/java/org/apache/commons/math4/stat/regression/RegressionResults.java
index 8d15d49..8a2a7fa 100644
--- a/src/main/java/org/apache/commons/math4/stat/regression/RegressionResults.java
+++ b/src/main/java/org/apache/commons/math4/stat/regression/RegressionResults.java
@@ -363,12 +363,12 @@ public class RegressionResults implements Serializable {
     }
 
     /**
-     * <p>Returns the adjusted R-squared statistic, defined by the formula <pre>
+     * <p>Returns the adjusted R-squared statistic, defined by the formula <div style="white-space: pre"><code>
      * R<sup>2</sup><sub>adj</sub> = 1 - [SSR (n - 1)] / [SSTO (n - p)]
-     * </pre>
+     * </code></div>
      * where SSR is the sum of squared residuals},
      * SSTO is the total sum of squares}, n is the number
-     * of observations and p is the number of parameters estimated (including the intercept).</p>
+     * of observations and p is the number of parameters estimated (including the intercept).
      *
      * <p>If the regression is estimated without an intercept term, what is returned is <pre>
      * <code> 1 - (1 - {@link #getRSquared()} ) * (n / (n - p)) </code>

http://git-wip-us.apache.org/repos/asf/commons-math/blob/69f13aed/src/main/java/org/apache/commons/math4/stat/regression/SimpleRegression.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/regression/SimpleRegression.java b/src/main/java/org/apache/commons/math4/stat/regression/SimpleRegression.java
index 201c172..1940c02 100644
--- a/src/main/java/org/apache/commons/math4/stat/regression/SimpleRegression.java
+++ b/src/main/java/org/apache/commons/math4/stat/regression/SimpleRegression.java
@@ -482,7 +482,7 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
      * This is defined as SSTO
      * <a href="http://www.xycoon.com/SumOfSquares.htm">here</a>.</p>
      * <p>
-     * If <code>n < 2</code>, this returns <code>Double.NaN</code>.</p>
+     * If {@code n < 2}, this returns <code>Double.NaN</code>.</p>
      *
      * @return sum of squared deviations of y values
      */
@@ -679,7 +679,7 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
      * model, or if there is no variation in x, this returns
      * <code>Double.NaN</code>.
      * </li>
-     * <li><code>(0 < alpha < 1)</code>; otherwise an
+     * <li>{@code (0 < alpha < 1)}; otherwise an
      * <code>OutOfRangeException</code> is thrown.
      * </li></ul>
      *
@@ -708,7 +708,7 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
      * Specifically, the returned value is the smallest <code>alpha</code>
      * such that the slope confidence interval with significance level
      * equal to <code>alpha</code> does not include <code>0</code>.
-     * On regression output, this is often denoted <code>Prob(|t| > 0)</code>
+     * On regression output, this is often denoted {@code Prob(|t| > 0)}
      * </p><p>
      * <strong>Usage Note</strong>:<br>
      * The validity of this statistic depends on the assumption that the