From 84f08fce9f8f5a4e18f1552ec9db132cd9526bf0 Mon Sep 17 00:00:00 2001
From: XenoAmess
diff --git a/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizer.java b/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizer.java
index 2bd188ee3..8714d1555 100644
--- a/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizer.java
+++ b/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizer.java
@@ -108,7 +108,7 @@ public class NonLinearConjugateGradientOptimizer
* find an interval that brackets the optimum in order to perform the
* line search.
*
- * @see LineSearch#LineSearch(MultivariateOptimizer,double,double,double)
+ * @see LineSearch#LineSearch(org.apache.commons.math4.optim.nonlinear.scalar.MultivariateOptimizer,double,double,double)
* @since 3.3
*/
public NonLinearConjugateGradientOptimizer(final Formula updateFormula,
@@ -136,7 +136,7 @@ public class NonLinearConjugateGradientOptimizer
* find an interval that brackets the optimum in order to perform the
* line search.
*
- * @see LineSearch#LineSearch(MultivariateOptimizer,double,double,double)
+ * @see LineSearch#LineSearch(org.apache.commons.math4.optim.nonlinear.scalar.MultivariateOptimizer, double, double, double)
* @since 3.3
*/
public NonLinearConjugateGradientOptimizer(final Formula updateFormula,
diff --git a/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizer.java b/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizer.java
index e4f7ef6cc..76ae42855 100644
--- a/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizer.java
+++ b/src/main/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizer.java
@@ -43,7 +43,7 @@ import org.apache.commons.math4.util.FastMath;
* Line search is performed by the {@link LineSearch} class.
*
* Constraints are not supported: the call to
- * {@link #optimize(OptimizationData[]) optimize} will throw
+ * {@link #optimize(org.apache.commons.math4.optim.OptimizationData...)} will throw
* {@link MathUnsupportedOperationException} if bounds are passed to it.
* In order to impose simple constraints, the objective function must be
* wrapped in an adapter like
@@ -288,7 +288,7 @@ public class PowellOptimizer
/**
* @throws MathUnsupportedOperationException if bounds were passed to the
- * {@link #optimize(OptimizationData[]) optimize} method.
+ * {@link #optimize(org.apache.commons.math4.optim.OptimizationData[]) optimize} method.
*/
private void checkParameters() {
if (getLowerBound() != null ||
diff --git a/src/main/java/org/apache/commons/math4/stat/correlation/Covariance.java b/src/main/java/org/apache/commons/math4/stat/correlation/Covariance.java
index a42d43548..e2699acdc 100644
--- a/src/main/java/org/apache/commons/math4/stat/correlation/Covariance.java
+++ b/src/main/java/org/apache/commons/math4/stat/correlation/Covariance.java
@@ -48,9 +48,7 @@ public class Covariance {
/** covariance matrix */
private final RealMatrix covarianceMatrix;
- /**
- * Create an empty covariance matrix.
- */
+ /* Create an empty covariance matrix. */
/** Number of observations (length of covariate vectors) */
private final int n;
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java
index d2a62cc7c..61c33544a 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java
@@ -61,7 +61,7 @@ public class Median extends Percentile implements Serializable {
}
/**
- * Constructs a Median with the specific {@link EstimationType}, {@link NaNStrategy} and {@link PivotingStrategy}.
+ * Constructs a Median with the specific {@link EstimationType}, {@link NaNStrategy} and {@link KthSelector}.
*
* @param estimationType one of the percentile {@link EstimationType estimation types}
* @param nanStrategy one of {@link NaNStrategy} to handle with NaNs
diff --git a/src/test/java/org/apache/commons/math4/PerfTestUtils.java b/src/test/java/org/apache/commons/math4/PerfTestUtils.java
index f1170a495..f51bf32de 100644
--- a/src/test/java/org/apache/commons/math4/PerfTestUtils.java
+++ b/src/test/java/org/apache/commons/math4/PerfTestUtils.java
@@ -258,8 +258,8 @@ public class PerfTestUtils {
/**
* Timing and report (to standard output).
- * This method calls {@link #timeAndReport(String,int,int,boolean,RunTest[])
- * timeAndReport(title, 1000, 10000, false, methods)}.
+ * This method calls {@link #timeAndReport(String,int,int,int,boolean,RunTest[])
+ * timeAndReport(title, 45, 1000, 10000, false, methods)}.
*
* @param title Title of the test (for the report).
* @param methods Codes being timed.
diff --git a/src/test/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunctionTest.java b/src/test/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunctionTest.java
index f2ccc0be2..008de54a2 100644
--- a/src/test/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunctionTest.java
+++ b/src/test/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunctionTest.java
@@ -287,7 +287,7 @@ public final class TricubicInterpolatingFunctionTest {
* @param d2fdxdy Second partial cross-derivative w.r.t x and y of the function to test.
* @param d2fdxdz Second partial cross-derivative w.r.t x and z of the function to test.
* @param d2fdydz Second partial cross-derivative w.r.t y and z of the function to test.
- * @param d3fdxdy Third partial cross-derivative w.r.t x, y and z of the function to test.
+ * @param d3fdxdydz Third partial cross-derivative w.r.t x, y and z of the function to test.
* @param meanRelativeTolerance Allowed average error (mean error on all interpolated values).
* @param maxRelativeTolerance Allowed error on each interpolated value.
* @param onDataMaxAbsoluteTolerance Allowed error on a data point.
diff --git a/src/test/java/org/apache/commons/math4/distribution/RealDistributionAbstractTest.java b/src/test/java/org/apache/commons/math4/distribution/RealDistributionAbstractTest.java
index 7039efab4..233d66bd3 100644
--- a/src/test/java/org/apache/commons/math4/distribution/RealDistributionAbstractTest.java
+++ b/src/test/java/org/apache/commons/math4/distribution/RealDistributionAbstractTest.java
@@ -67,9 +67,6 @@ import org.junit.Test;
* where possible, and the source of the reference data and/or validation
* should be documented in the test cases. A framework for validating
* distribution data against R is included in the /src/test/R source tree.
- *
- * See {@link NormalDistributionTest} and {@link ChiSquaredDistributionTest} - * for examples. * */ public abstract class RealDistributionAbstractTest { diff --git a/src/test/java/org/apache/commons/math4/random/RandomUtilsDataGeneratorAbstractTest.java b/src/test/java/org/apache/commons/math4/random/RandomUtilsDataGeneratorAbstractTest.java index e27165aed..2b4ced9af 100644 --- a/src/test/java/org/apache/commons/math4/random/RandomUtilsDataGeneratorAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/random/RandomUtilsDataGeneratorAbstractTest.java @@ -27,7 +27,7 @@ import org.junit.Test; import org.junit.runner.RunWith; /** - * Test cases for the {@link RandomUtils#DataGenerator} class. + * Test cases for the {@link RandomUtils.DataGenerator} class. */ @RunWith(RetryRunner.class) public abstract class RandomUtilsDataGeneratorAbstractTest { diff --git a/src/test/java/org/apache/commons/math4/random/RandomUtilsDataGeneratorJDKRandomTest.java b/src/test/java/org/apache/commons/math4/random/RandomUtilsDataGeneratorJDKRandomTest.java index a5118262b..83c8fb325 100644 --- a/src/test/java/org/apache/commons/math4/random/RandomUtilsDataGeneratorJDKRandomTest.java +++ b/src/test/java/org/apache/commons/math4/random/RandomUtilsDataGeneratorJDKRandomTest.java @@ -19,7 +19,7 @@ package org.apache.commons.math4.random; import java.util.Random; /** - * Test cases for the {@link RandomUtils#DataGenerator} class, using + * Test cases for the {@link RandomUtils.DataGenerator} class, using * {@link Random} as the underlying source of randomness. */ public class RandomUtilsDataGeneratorJDKRandomTest diff --git a/src/test/java/org/apache/commons/math4/util/IntegerSequenceTest.java b/src/test/java/org/apache/commons/math4/util/IntegerSequenceTest.java index 857188b20..a15f36f8a 100644 --- a/src/test/java/org/apache/commons/math4/util/IntegerSequenceTest.java +++ b/src/test/java/org/apache/commons/math4/util/IntegerSequenceTest.java @@ -24,7 +24,7 @@ import org.junit.Assert; import org.junit.Test; /** - * Tests for {@link IntegerSequence} and {@link IntegerSequence#Incrementor}. + * Tests for {@link IntegerSequence} and {@link IntegerSequence.Incrementor}. */ public class IntegerSequenceTest { @Test diff --git a/src/test/java/org/apache/commons/math4/util/MathArraysTest.java b/src/test/java/org/apache/commons/math4/util/MathArraysTest.java index 87ab07e84..746a9fc6a 100644 --- a/src/test/java/org/apache/commons/math4/util/MathArraysTest.java +++ b/src/test/java/org/apache/commons/math4/util/MathArraysTest.java @@ -501,8 +501,8 @@ public class MathArraysTest { Assert.assertEquals(125, x3[0], FastMath.ulp(1d)); } - @Test /** Example in javadoc */ + @Test public void testSortInPlaceExample() { final double[] x = {3, 1, 2}; final double[] y = {1, 2, 3};