diff --git a/src/main/java/org/apache/commons/math4/fitting/leastsquares/GaussNewtonOptimizer.java b/src/main/java/org/apache/commons/math4/fitting/leastsquares/GaussNewtonOptimizer.java index 24589ab20..8ef5c89e2 100644 --- a/src/main/java/org/apache/commons/math4/fitting/leastsquares/GaussNewtonOptimizer.java +++ b/src/main/java/org/apache/commons/math4/fitting/leastsquares/GaussNewtonOptimizer.java @@ -279,7 +279,7 @@ public class GaussNewtonOptimizer implements LeastSquaresOptimizer { residuals.getEntry(i) * jacobian.getEntry(i, j)); } - // add the the contribution to the normal matrix for measurement i + // add the contribution to the normal matrix for measurement i for (int k = 0; k < nC; ++k) { //only compute the upper triangular part for (int l = k; l < nC; ++l) { diff --git a/src/main/java/org/apache/commons/math4/geometry/spherical/oned/ArcsSet.java b/src/main/java/org/apache/commons/math4/geometry/spherical/oned/ArcsSet.java index 3db15a3e5..295509001 100644 --- a/src/main/java/org/apache/commons/math4/geometry/spherical/oned/ArcsSet.java +++ b/src/main/java/org/apache/commons/math4/geometry/spherical/oned/ArcsSet.java @@ -838,7 +838,7 @@ public class ArcsSet extends AbstractRegion implements Itera limits.remove(i); i = i - 1; } else { - // special case, i the the last entry and j is the first entry + // special case, i the last entry and j is the first entry // we have wrapped around list end final double lEnd = limits.remove(limits.size() - 1); final double lStart = limits.remove(0); diff --git a/src/main/java/org/apache/commons/math4/geometry/spherical/twod/Circle.java b/src/main/java/org/apache/commons/math4/geometry/spherical/twod/Circle.java index 38059672c..07b8c5f66 100644 --- a/src/main/java/org/apache/commons/math4/geometry/spherical/twod/Circle.java +++ b/src/main/java/org/apache/commons/math4/geometry/spherical/twod/Circle.java @@ -32,7 +32,7 @@ import org.apache.commons.math4.util.FastMath; /** This class represents an oriented great circle on the 2-sphere. *

An oriented circle can be defined by a center point. The circle - * is the the set of points that are in the normal plan the center.

+ * is the set of points that are in the normal plan the center.

*

Since it is oriented the two spherical caps at its two sides are * unambiguously identified as a left cap and a right cap. This can be diff --git a/src/main/java/org/apache/commons/math4/linear/MatrixUtils.java b/src/main/java/org/apache/commons/math4/linear/MatrixUtils.java index 1f97a5e0d..04daf9432 100644 --- a/src/main/java/org/apache/commons/math4/linear/MatrixUtils.java +++ b/src/main/java/org/apache/commons/math4/linear/MatrixUtils.java @@ -105,7 +105,7 @@ public class MatrixUtils { } /** - * Returns a {@link RealMatrix} whose entries are the the values in the + * Returns a {@link RealMatrix} whose entries are the values in the * the input array. *

The type of matrix returned depends on the dimension. Below * 212 elements (i.e. 4096 elements or 64×64 for a @@ -136,7 +136,7 @@ public class MatrixUtils { } /** - * Returns a {@link FieldMatrix} whose entries are the the values in the + * Returns a {@link FieldMatrix} whose entries are the values in the * the input array. *

The type of matrix returned depends on the dimension. Below * 212 elements (i.e. 4096 elements or 64×64 for a diff --git a/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java b/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java index 4366b1528..26f6be1cc 100644 --- a/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java +++ b/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java @@ -1913,7 +1913,7 @@ public class BOBYQAOptimizer // Multiply the search direction by the second derivative matrix of Q and // calculate some scalars for the choice of steplength. Then set BLEN to - // the length of the the step to the trust region boundary and STPLEN to + // the length of the step to the trust region boundary and STPLEN to // the steplength, ignoring the simple bounds. state = 210; break; 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 ebed82f6d..7dfab7d73 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 @@ -333,7 +333,7 @@ public class Variance extends AbstractStorelessUnivariateStatistic implements Se /** *

- * Returns the weighted variance of the entries in the the input array.

+ * Returns the weighted variance of the entries in the input array.

*

* Uses the formula

* Σ(weights[i]*(values[i] - weightedMean)2)/(Σ(weights[i]) - 1) diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java index e112b5e0f..19e859c0e 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java @@ -170,7 +170,7 @@ public class Sum extends AbstractStorelessUnivariateStatistic implements Seriali } /** - * The weighted sum of the entries in the the input array. + * The weighted sum of the entries in the input array. *

* Throws MathIllegalArgumentException if any of the following are true: *

  • the values array is null
  • diff --git a/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java b/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java index d8649d16f..bdcac6606 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java @@ -399,7 +399,7 @@ public class ChiSquareTest { * @param observed1 array of observed frequency counts of the first data set * @param observed2 array of observed frequency counts of the second data set * @return chiSquare test statistic - * @throws DimensionMismatchException the the length of the arrays does not match + * @throws DimensionMismatchException the length of the arrays does not match * @throws NotPositiveException if any entries in observed1 or * observed2 are negative * @throws ZeroException if either all counts of observed1 or @@ -495,7 +495,7 @@ public class ChiSquareTest { * @param observed1 array of observed frequency counts of the first data set * @param observed2 array of observed frequency counts of the second data set * @return p-value - * @throws DimensionMismatchException the the length of the arrays does not match + * @throws DimensionMismatchException the length of the arrays does not match * @throws NotPositiveException if any entries in observed1 or * observed2 are negative * @throws ZeroException if either all counts of observed1 or @@ -548,7 +548,7 @@ public class ChiSquareTest { * @param alpha significance level of the test * @return true iff null hypothesis can be rejected with confidence * 1 - alpha - * @throws DimensionMismatchException the the length of the arrays does not match + * @throws DimensionMismatchException the length of the arrays does not match * @throws NotPositiveException if any entries in observed1 or * observed2 are negative * @throws ZeroException if either all counts of observed1 or diff --git a/src/main/java/org/apache/commons/math4/stat/inference/GTest.java b/src/main/java/org/apache/commons/math4/stat/inference/GTest.java index 57d559522..28d42ce4a 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/GTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/GTest.java @@ -336,7 +336,7 @@ public class GTest { * @param observed2 array of observed frequency counts of the second data * set * @return G-Test statistic - * @throws DimensionMismatchException the the lengths of the arrays do not + * @throws DimensionMismatchException the lengths of the arrays do not * match or their common length is less than 2 * @throws NotPositiveException if any entry in {@code observed1} or * {@code observed2} is negative @@ -458,7 +458,7 @@ public class GTest { * @param observed2 array of observed frequency counts of the second data * set * @return p-value - * @throws DimensionMismatchException the the length of the arrays does not + * @throws DimensionMismatchException the length of the arrays does not * match or their common length is less than 2 * @throws NotPositiveException if any of the entries in {@code observed1} or * {@code observed2} are negative @@ -511,7 +511,7 @@ public class GTest { * @param alpha significance level of the test * @return true iff null hypothesis can be rejected with confidence 1 - * alpha - * @throws DimensionMismatchException the the length of the arrays does not + * @throws DimensionMismatchException the length of the arrays does not * match * @throws NotPositiveException if any of the entries in {@code observed1} or * {@code observed2} are negative diff --git a/src/main/java/org/apache/commons/math4/util/FastMath.java b/src/main/java/org/apache/commons/math4/util/FastMath.java index aaa69bee6..4d0568a32 100644 --- a/src/main/java/org/apache/commons/math4/util/FastMath.java +++ b/src/main/java/org/apache/commons/math4/util/FastMath.java @@ -41,7 +41,7 @@ import org.apache.commons.math4.exception.util.LocalizedFormats; *

    * Note that FastMath is * extensively used inside Apache Commons Math, so by calling some algorithms, - * the overhead when the the tables need to be initialized will occur + * the overhead when the tables need to be initialized will occur * regardless of the end-user calling FastMath methods directly or not. * Performance figures for a specific JVM and hardware can be evaluated by * running the FastMathTestPerformance tests in the test directory of the source