commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [4/4] [math] Fixed @Override checkstyle warnings.
Date Fri, 10 Apr 2015 15:46:00 GMT
Fixed @Override checkstyle warnings.

@Override was forbidden at some places in Java 5, but is now mandatory
at the same places in Java 7.

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

Branch: refs/heads/master
Commit: 8d9ddbca5f9aacf8e2aeb7b2ea0f100ac1b058ff
Parents: a06a158
Author: Luc Maisonobe <luc@apache.org>
Authored: Fri Apr 10 17:45:37 2015 +0200
Committer: Luc Maisonobe <luc@apache.org>
Committed: Fri Apr 10 17:45:37 2015 +0200

----------------------------------------------------------------------
 .../commons/math4/analysis/FunctionUtils.java   | 37 ++++++++++++
 .../differentiation/DerivativeStructure.java    | 59 ++++++++++++++++++++
 .../FiniteDifferencesDifferentiator.java        |  9 +++
 .../differentiation/GradientFunction.java       |  1 +
 .../differentiation/JacobianFunction.java       |  1 +
 .../differentiation/SparseGradient.java         | 59 ++++++++++++++++++++
 .../commons/math4/analysis/function/Abs.java    |  1 +
 .../commons/math4/analysis/function/Acos.java   |  3 +
 .../commons/math4/analysis/function/Acosh.java  |  3 +
 .../commons/math4/analysis/function/Add.java    |  1 +
 .../commons/math4/analysis/function/Asin.java   |  3 +
 .../commons/math4/analysis/function/Asinh.java  |  3 +
 .../commons/math4/analysis/function/Atan.java   |  3 +
 .../commons/math4/analysis/function/Atan2.java  |  1 +
 .../commons/math4/analysis/function/Atanh.java  |  3 +
 .../commons/math4/analysis/function/Cbrt.java   |  3 +
 .../commons/math4/analysis/function/Ceil.java   |  1 +
 .../math4/analysis/function/Constant.java       |  3 +
 .../commons/math4/analysis/function/Cos.java    |  3 +
 .../commons/math4/analysis/function/Cosh.java   |  3 +
 .../commons/math4/analysis/function/Divide.java |  1 +
 .../commons/math4/analysis/function/Exp.java    |  3 +
 .../commons/math4/analysis/function/Expm1.java  |  3 +
 .../commons/math4/analysis/function/Floor.java  |  1 +
 .../math4/analysis/function/Gaussian.java       |  3 +
 .../analysis/function/HarmonicOscillator.java   |  3 +
 .../math4/analysis/function/Identity.java       |  3 +
 .../math4/analysis/function/Inverse.java        |  3 +
 .../commons/math4/analysis/function/Log.java    |  3 +
 .../commons/math4/analysis/function/Log10.java  |  3 +
 .../commons/math4/analysis/function/Log1p.java  |  3 +
 .../math4/analysis/function/Logistic.java       |  3 +
 .../commons/math4/analysis/function/Logit.java  |  3 +
 .../commons/math4/analysis/function/Max.java    |  1 +
 .../commons/math4/analysis/function/Min.java    |  1 +
 .../commons/math4/analysis/function/Minus.java  |  3 +
 .../math4/analysis/function/Multiply.java       |  1 +
 .../commons/math4/analysis/function/Pow.java    |  1 +
 .../commons/math4/analysis/function/Power.java  |  3 +
 .../commons/math4/analysis/function/Rint.java   |  1 +
 .../math4/analysis/function/Sigmoid.java        |  3 +
 .../commons/math4/analysis/function/Signum.java |  1 +
 .../commons/math4/analysis/function/Sin.java    |  3 +
 .../commons/math4/analysis/function/Sinc.java   |  3 +
 .../commons/math4/analysis/function/Sinh.java   |  3 +
 .../commons/math4/analysis/function/Sqrt.java   |  3 +
 .../math4/analysis/function/StepFunction.java   |  1 +
 .../math4/analysis/function/Subtract.java       |  1 +
 .../commons/math4/analysis/function/Tan.java    |  3 +
 .../commons/math4/analysis/function/Tanh.java   |  3 +
 .../commons/math4/analysis/function/Ulp.java    |  1 +
 .../BaseAbstractUnivariateIntegrator.java       |  7 +++
 .../BicubicInterpolatingFunction.java           |  2 +
 .../interpolation/BicubicInterpolator.java      |  1 +
 .../interpolation/MicrosphereInterpolator.java  |  1 +
 ...ewiseBicubicSplineInterpolatingFunction.java |  1 +
 .../PiecewiseBicubicSplineInterpolator.java     |  1 +
 .../TricubicInterpolatingFunction.java          |  1 +
 .../interpolation/TricubicInterpolator.java     |  1 +
 .../UnivariatePeriodicInterpolator.java         |  1 +
 .../polynomials/PolynomialFunction.java         |  3 +
 .../PolynomialFunctionNewtonForm.java           |  1 +
 .../polynomials/PolynomialSplineFunction.java   |  1 +
 .../analysis/polynomials/PolynomialsUtils.java  |  5 ++
 .../solvers/BaseAbstractUnivariateSolver.java   |  8 +++
 .../analysis/solvers/BaseSecantSolver.java      |  2 +
 .../solvers/BracketingNthOrderBrentSolver.java  |  2 +
 .../math4/fitting/AbstractCurveFitter.java      |  1 +
 .../leastsquares/AbstractEvaluation.java        |  6 ++
 .../leastsquares/DenseWeightedEvaluation.java   |  3 +
 .../leastsquares/EvaluationRmsChecker.java      |  1 +
 .../leastsquares/GaussNewtonOptimizer.java      |  1 +
 .../leastsquares/LeastSquaresAdapter.java       |  7 +++
 .../leastsquares/LeastSquaresFactory.java       | 13 +++++
 .../LevenbergMarquardtOptimizer.java            |  1 +
 .../math4/fitting/leastsquares/OptimumImpl.java | 11 ++++
 .../math4/linear/AbstractFieldMatrix.java       | 53 ++++++++++++++++++
 .../math4/linear/AbstractRealMatrix.java        | 57 +++++++++++++++++++
 .../commons/math4/linear/ArrayFieldVector.java  | 28 ++++++++++
 .../math4/linear/CholeskyDecomposition.java     |  3 +
 .../DefaultFieldMatrixChangingVisitor.java      |  3 +
 .../DefaultFieldMatrixPreservingVisitor.java    |  3 +
 .../DefaultRealMatrixChangingVisitor.java       |  3 +
 .../DefaultRealMatrixPreservingVisitor.java     |  3 +
 .../math4/linear/EigenDecomposition.java        |  1 +
 .../math4/linear/FieldLUDecomposition.java      |  4 ++
 .../commons/math4/linear/LUDecomposition.java   |  3 +
 .../commons/math4/linear/OpenMapRealVector.java |  3 +
 .../commons/math4/linear/RRQRDecomposition.java |  4 ++
 .../apache/commons/math4/linear/RealVector.java | 12 ++++
 .../commons/math4/linear/SparseFieldVector.java | 28 ++++++++++
 .../ml/neuralnet/FeatureInitializerFactory.java |  2 +
 .../commons/math4/ml/neuralnet/Network.java     |  2 +
 .../ml/neuralnet/sofm/KohonenTrainingTask.java  |  1 +
 .../ml/neuralnet/sofm/KohonenUpdateAction.java  |  1 +
 .../sofm/LearningFactorFunctionFactory.java     |  2 +
 .../sofm/NeighbourhoodSizeFunctionFactory.java  |  2 +
 .../commons/math4/ode/AbstractIntegrator.java   | 15 +++++
 .../math4/ode/AbstractParameterizable.java      |  2 +
 .../math4/ode/ContinuousOutputModel.java        |  1 +
 .../commons/math4/ode/JacobianMatrices.java     |  5 ++
 .../commons/math4/ode/MultistepIntegrator.java  |  4 ++
 .../math4/ode/ParameterJacobianWrapper.java     |  3 +
 .../commons/math4/ode/ParameterizedWrapper.java |  4 ++
 .../commons/math4/ode/events/EventFilter.java   |  4 ++
 .../ode/nonstiff/AdamsMoultonIntegrator.java    |  2 +
 .../ode/sampling/AbstractStepInterpolator.java  | 10 ++++
 .../math4/ode/sampling/DummyStepHandler.java    |  1 +
 .../math4/ode/sampling/StepNormalizer.java      |  1 +
 .../math4/optim/AbstractConvergenceChecker.java |  1 +
 .../optim/AbstractOptimizationProblem.java      |  5 ++
 .../commons/math4/optim/BaseOptimizer.java      |  2 +
 .../nonlinear/scalar/LeastSquaresConverter.java |  1 +
 .../MultivariateFunctionMappingAdapter.java     |  8 +++
 .../NonLinearConjugateGradientOptimizer.java    |  1 +
 .../scalar/noderiv/CMAESOptimizer.java          |  1 +
 .../AbstractStorelessUnivariateStatistic.java   |  3 +
 .../AbstractUnivariateStatistic.java            |  3 +
 .../descriptive/AggregateSummaryStatistics.java |  7 +++
 .../stat/descriptive/moment/FirstMoment.java    |  1 +
 .../stat/descriptive/moment/GeometricMean.java  |  1 +
 .../math4/stat/descriptive/moment/Kurtosis.java |  1 +
 .../math4/stat/descriptive/moment/Mean.java     |  1 +
 .../math4/stat/descriptive/moment/Skewness.java |  1 +
 .../descriptive/moment/StandardDeviation.java   |  1 +
 .../math4/stat/descriptive/moment/Variance.java |  1 +
 .../math4/stat/descriptive/rank/Max.java        |  1 +
 .../math4/stat/descriptive/rank/Min.java        |  1 +
 .../descriptive/rank/PSquarePercentile.java     |  2 +
 .../math4/stat/descriptive/summary/Product.java |  1 +
 .../math4/stat/descriptive/summary/Sum.java     |  1 +
 .../stat/descriptive/summary/SumOfLogs.java     |  1 +
 .../stat/descriptive/summary/SumOfSquares.java  |  1 +
 .../stat/interval/AgrestiCoullInterval.java     |  1 +
 .../stat/interval/ClopperPearsonInterval.java   |  1 +
 .../interval/NormalApproximationInterval.java   |  1 +
 .../stat/interval/WilsonScoreInterval.java      |  1 +
 .../AbstractMultipleLinearRegression.java       |  5 ++
 138 files changed, 679 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java b/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java
index ecb816d..77555d3 100644
--- a/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java
+++ b/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java
@@ -50,6 +50,7 @@ public class FunctionUtils {
     public static UnivariateFunction compose(final UnivariateFunction ... f) {
         return new UnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 double r = x;
                 for (int i = f.length - 1; i >= 0; i--) {
@@ -74,6 +75,7 @@ public class FunctionUtils {
         return new UnivariateDifferentiableFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double value(final double t) {
                 double r = t;
                 for (int i = f.length - 1; i >= 0; i--) {
@@ -83,6 +85,7 @@ public class FunctionUtils {
             }
 
             /** {@inheritDoc} */
+            @Override
             public DerivativeStructure value(final DerivativeStructure t) {
                 DerivativeStructure r = t;
                 for (int i = f.length - 1; i >= 0; i--) {
@@ -108,6 +111,7 @@ public class FunctionUtils {
     public static DifferentiableUnivariateFunction compose(final DifferentiableUnivariateFunction ... f) {
         return new DifferentiableUnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 double r = x;
                 for (int i = f.length - 1; i >= 0; i--) {
@@ -117,9 +121,11 @@ public class FunctionUtils {
             }
 
             /** {@inheritDoc} */
+            @Override
             public UnivariateFunction derivative() {
                 return new UnivariateFunction() {
                     /** {@inheritDoc} */
+                    @Override
                     public double value(double x) {
                         double p = 1;
                         double r = x;
@@ -143,6 +149,7 @@ public class FunctionUtils {
     public static UnivariateFunction add(final UnivariateFunction ... f) {
         return new UnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 double r = f[0].value(x);
                 for (int i = 1; i < f.length; i++) {
@@ -164,6 +171,7 @@ public class FunctionUtils {
         return new UnivariateDifferentiableFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double value(final double t) {
                 double r = f[0].value(t);
                 for (int i = 1; i < f.length; i++) {
@@ -175,6 +183,7 @@ public class FunctionUtils {
             /** {@inheritDoc}
              * @throws DimensionMismatchException if functions are not consistent with each other
              */
+            @Override
             public DerivativeStructure value(final DerivativeStructure t)
                 throws DimensionMismatchException {
                 DerivativeStructure r = f[0].value(t);
@@ -198,6 +207,7 @@ public class FunctionUtils {
     public static DifferentiableUnivariateFunction add(final DifferentiableUnivariateFunction ... f) {
         return new DifferentiableUnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 double r = f[0].value(x);
                 for (int i = 1; i < f.length; i++) {
@@ -207,9 +217,11 @@ public class FunctionUtils {
             }
 
             /** {@inheritDoc} */
+            @Override
             public UnivariateFunction derivative() {
                 return new UnivariateFunction() {
                     /** {@inheritDoc} */
+                    @Override
                     public double value(double x) {
                         double r = f[0].derivative().value(x);
                         for (int i = 1; i < f.length; i++) {
@@ -231,6 +243,7 @@ public class FunctionUtils {
     public static UnivariateFunction multiply(final UnivariateFunction ... f) {
         return new UnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 double r = f[0].value(x);
                 for (int i = 1; i < f.length; i++) {
@@ -252,6 +265,7 @@ public class FunctionUtils {
         return new UnivariateDifferentiableFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double value(final double t) {
                 double r = f[0].value(t);
                 for (int i = 1; i < f.length; i++) {
@@ -261,6 +275,7 @@ public class FunctionUtils {
             }
 
             /** {@inheritDoc} */
+            @Override
             public DerivativeStructure value(final DerivativeStructure t) {
                 DerivativeStructure r = f[0].value(t);
                 for (int i = 1; i < f.length; i++) {
@@ -283,6 +298,7 @@ public class FunctionUtils {
     public static DifferentiableUnivariateFunction multiply(final DifferentiableUnivariateFunction ... f) {
         return new DifferentiableUnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 double r = f[0].value(x);
                 for (int i = 1; i < f.length; i++) {
@@ -292,9 +308,11 @@ public class FunctionUtils {
             }
 
             /** {@inheritDoc} */
+            @Override
             public UnivariateFunction derivative() {
                 return new UnivariateFunction() {
                     /** {@inheritDoc} */
+                    @Override
                     public double value(double x) {
                         double sum = 0;
                         for (int i = 0; i < f.length; i++) {
@@ -327,6 +345,7 @@ public class FunctionUtils {
                                              final UnivariateFunction g) {
         return new UnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 return combiner.value(f.value(x), g.value(x));
             }
@@ -348,6 +367,7 @@ public class FunctionUtils {
                                                  final double initialValue) {
         return new MultivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double[] point) {
                 double result = combiner.value(initialValue, f.value(point[0]));
                 for (int i = 1; i < point.length; i++) {
@@ -383,6 +403,7 @@ public class FunctionUtils {
                                                     final double fixed) {
         return new UnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 return f.value(fixed, x);
             }
@@ -399,6 +420,7 @@ public class FunctionUtils {
                                                     final double fixed) {
         return new UnivariateFunction() {
             /** {@inheritDoc} */
+            @Override
             public double value(double x) {
                 return f.value(x, fixed);
             }
@@ -453,14 +475,17 @@ public class FunctionUtils {
         return new DifferentiableUnivariateFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double value(final double x) {
                 return f.value(x);
             }
 
             /** {@inheritDoc} */
+            @Override
             public UnivariateFunction derivative() {
                 return new UnivariateFunction() {
                     /** {@inheritDoc} */
+                    @Override
                     public double value(final double x) {
                         return f.value(new DerivativeStructure(1, 1, 0, x)).getPartialDerivative(1);
                     }
@@ -485,6 +510,7 @@ public class FunctionUtils {
         return new UnivariateDifferentiableFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double value(final double x) {
                 return f.value(x);
             }
@@ -492,6 +518,7 @@ public class FunctionUtils {
             /** {@inheritDoc}
              * @exception NumberIsTooLargeException if derivation order is greater than 1
              */
+            @Override
             public DerivativeStructure value(final DerivativeStructure t)
                 throws NumberIsTooLargeException {
                 switch (t.getOrder()) {
@@ -529,14 +556,17 @@ public class FunctionUtils {
         return new DifferentiableMultivariateFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double value(final double[] x) {
                 return f.value(x);
             }
 
             /** {@inheritDoc} */
+            @Override
             public MultivariateFunction partialDerivative(final int k) {
                 return new MultivariateFunction() {
                     /** {@inheritDoc} */
+                    @Override
                     public double value(final double[] x) {
 
                         final int n = x.length;
@@ -562,6 +592,7 @@ public class FunctionUtils {
             public MultivariateVectorFunction gradient() {
                 return new MultivariateVectorFunction() {
                     /** {@inheritDoc} */
+                    @Override
                     public double[] value(final double[] x) {
 
                         final int n = x.length;
@@ -608,6 +639,7 @@ public class FunctionUtils {
         return new MultivariateDifferentiableFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double value(final double[] x) {
                 return f.value(x);
             }
@@ -616,6 +648,7 @@ public class FunctionUtils {
              * @exception NumberIsTooLargeException if derivation order is higher than 1
              * @exception DimensionMismatchException if numbers of free parameters are inconsistent
              */
+            @Override
             public DerivativeStructure value(final DerivativeStructure[] t)
                 throws DimensionMismatchException, NumberIsTooLargeException {
 
@@ -676,6 +709,7 @@ public class FunctionUtils {
         return new DifferentiableMultivariateVectorFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double[] value(final double[] x) {
                 return f.value(x);
             }
@@ -683,6 +717,7 @@ public class FunctionUtils {
             public MultivariateMatrixFunction jacobian() {
                 return new MultivariateMatrixFunction() {
                     /** {@inheritDoc} */
+                    @Override
                     public double[][] value(final double[] x) {
 
                         final int n = x.length;
@@ -731,6 +766,7 @@ public class FunctionUtils {
         return new MultivariateDifferentiableVectorFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double[] value(final double[] x) {
                 return f.value(x);
             }
@@ -739,6 +775,7 @@ public class FunctionUtils {
              * @exception NumberIsTooLargeException if derivation order is higher than 1
              * @exception DimensionMismatchException if numbers of free parameters are inconsistent
              */
+            @Override
             public DerivativeStructure[] value(final DerivativeStructure[] t)
                 throws DimensionMismatchException, NumberIsTooLargeException {
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java
index a179eba..3c9a48c 100644
--- a/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java
+++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java
@@ -248,6 +248,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public double getReal() {
         return data[0];
     }
@@ -286,6 +287,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure add(final double a) {
         final DerivativeStructure ds = new DerivativeStructure(this);
         ds.data[0] += a;
@@ -296,6 +298,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * @exception DimensionMismatchException if number of free parameters
      * or orders do not match
      */
+    @Override
     public DerivativeStructure add(final DerivativeStructure a)
         throws DimensionMismatchException {
         compiler.checkCompatibility(a.compiler);
@@ -307,6 +310,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure subtract(final double a) {
         return add(-a);
     }
@@ -315,6 +319,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * @exception DimensionMismatchException if number of free parameters
      * or orders do not match
      */
+    @Override
     public DerivativeStructure subtract(final DerivativeStructure a)
         throws DimensionMismatchException {
         compiler.checkCompatibility(a.compiler);
@@ -324,6 +329,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     }
 
     /** {@inheritDoc} */
+    @Override
     public DerivativeStructure multiply(final int n) {
         return multiply((double) n);
     }
@@ -331,6 +337,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure multiply(final double a) {
         final DerivativeStructure ds = new DerivativeStructure(this);
         for (int i = 0; i < ds.data.length; ++i) {
@@ -343,6 +350,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * @exception DimensionMismatchException if number of free parameters
      * or orders do not match
      */
+    @Override
     public DerivativeStructure multiply(final DerivativeStructure a)
         throws DimensionMismatchException {
         compiler.checkCompatibility(a.compiler);
@@ -354,6 +362,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure divide(final double a) {
         final DerivativeStructure ds = new DerivativeStructure(this);
         for (int i = 0; i < ds.data.length; ++i) {
@@ -366,6 +375,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * @exception DimensionMismatchException if number of free parameters
      * or orders do not match
      */
+    @Override
     public DerivativeStructure divide(final DerivativeStructure a)
         throws DimensionMismatchException {
         compiler.checkCompatibility(a.compiler);
@@ -375,6 +385,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     }
 
     /** {@inheritDoc} */
+    @Override
     public DerivativeStructure remainder(final double a) {
         final DerivativeStructure ds = new DerivativeStructure(this);
         ds.data[0] = FastMath.IEEEremainder(ds.data[0], a);
@@ -386,6 +397,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure remainder(final DerivativeStructure a)
         throws DimensionMismatchException {
         compiler.checkCompatibility(a.compiler);
@@ -395,6 +407,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     }
 
     /** {@inheritDoc} */
+    @Override
     public DerivativeStructure negate() {
         final DerivativeStructure ds = new DerivativeStructure(compiler);
         for (int i = 0; i < ds.data.length; ++i) {
@@ -406,6 +419,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure abs() {
         if (Double.doubleToLongBits(data[0]) < 0) {
             // we use the bits representation to also handle -0.0
@@ -418,6 +432,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure ceil() {
         return new DerivativeStructure(compiler.getFreeParameters(),
                                        compiler.getOrder(),
@@ -427,6 +442,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure floor() {
         return new DerivativeStructure(compiler.getFreeParameters(),
                                        compiler.getOrder(),
@@ -436,6 +452,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure rint() {
         return new DerivativeStructure(compiler.getFreeParameters(),
                                        compiler.getOrder(),
@@ -443,6 +460,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     }
 
     /** {@inheritDoc} */
+    @Override
     public long round() {
         return FastMath.round(data[0]);
     }
@@ -450,6 +468,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure signum() {
         return new DerivativeStructure(compiler.getFreeParameters(),
                                        compiler.getOrder(),
@@ -459,6 +478,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure copySign(final DerivativeStructure sign){
         long m = Double.doubleToLongBits(data[0]);
         long s = Double.doubleToLongBits(sign.data[0]);
@@ -471,6 +491,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure copySign(final double sign) {
         long m = Double.doubleToLongBits(data[0]);
         long s = Double.doubleToLongBits(sign);
@@ -495,6 +516,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure scalb(final int n) {
         final DerivativeStructure ds = new DerivativeStructure(compiler);
         for (int i = 0; i < ds.data.length; ++i) {
@@ -508,6 +530,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure hypot(final DerivativeStructure y)
         throws DimensionMismatchException {
 
@@ -593,6 +616,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     }
 
     /** {@inheritDoc} */
+    @Override
     public DerivativeStructure reciprocal() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.pow(data, 0, -1, result.data, 0);
@@ -602,6 +626,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure sqrt() {
         return rootN(2);
     }
@@ -609,6 +634,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure cbrt() {
         return rootN(3);
     }
@@ -616,6 +642,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure rootN(final int n) {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.rootN(data, 0, n, result.data, 0);
@@ -623,20 +650,24 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     }
 
     /** {@inheritDoc} */
+    @Override
     public Field<DerivativeStructure> getField() {
         return new Field<DerivativeStructure>() {
 
             /** {@inheritDoc} */
+            @Override
             public DerivativeStructure getZero() {
                 return new DerivativeStructure(compiler.getFreeParameters(), compiler.getOrder(), 0.0);
             }
 
             /** {@inheritDoc} */
+            @Override
             public DerivativeStructure getOne() {
                 return new DerivativeStructure(compiler.getFreeParameters(), compiler.getOrder(), 1.0);
             }
 
             /** {@inheritDoc} */
+            @Override
             public Class<? extends FieldElement<DerivativeStructure>> getRuntimeClass() {
                 return DerivativeStructure.class;
             }
@@ -659,6 +690,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure pow(final double p) {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.pow(data, 0, p, result.data, 0);
@@ -668,6 +700,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure pow(final int n) {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.pow(data, 0, n, result.data, 0);
@@ -679,6 +712,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure pow(final DerivativeStructure e)
         throws DimensionMismatchException {
         compiler.checkCompatibility(e.compiler);
@@ -690,6 +724,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure exp() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.exp(data, 0, result.data, 0);
@@ -699,6 +734,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure expm1() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.expm1(data, 0, result.data, 0);
@@ -708,6 +744,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure log() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.log(data, 0, result.data, 0);
@@ -717,6 +754,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure log1p() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.log1p(data, 0, result.data, 0);
@@ -735,6 +773,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure cos() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.cos(data, 0, result.data, 0);
@@ -744,6 +783,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure sin() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.sin(data, 0, result.data, 0);
@@ -753,6 +793,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure tan() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.tan(data, 0, result.data, 0);
@@ -762,6 +803,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure acos() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.acos(data, 0, result.data, 0);
@@ -771,6 +813,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure asin() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.asin(data, 0, result.data, 0);
@@ -780,6 +823,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure atan() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.atan(data, 0, result.data, 0);
@@ -789,6 +833,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure atan2(final DerivativeStructure x)
         throws DimensionMismatchException {
         compiler.checkCompatibility(x.compiler);
@@ -813,6 +858,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure cosh() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.cosh(data, 0, result.data, 0);
@@ -822,6 +868,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure sinh() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.sinh(data, 0, result.data, 0);
@@ -831,6 +878,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure tanh() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.tanh(data, 0, result.data, 0);
@@ -840,6 +888,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure acosh() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.acosh(data, 0, result.data, 0);
@@ -849,6 +898,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure asinh() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.asinh(data, 0, result.data, 0);
@@ -858,6 +908,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
     /** {@inheritDoc}
      * @since 3.2
      */
+    @Override
     public DerivativeStructure atanh() {
         final DerivativeStructure result = new DerivativeStructure(compiler);
         compiler.atanh(data, 0, result.data, 0);
@@ -900,6 +951,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure linearCombination(final DerivativeStructure[] a, final DerivativeStructure[] b)
         throws DimensionMismatchException {
 
@@ -932,6 +984,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure linearCombination(final double[] a, final DerivativeStructure[] b)
         throws DimensionMismatchException {
 
@@ -960,6 +1013,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure linearCombination(final DerivativeStructure a1, final DerivativeStructure b1,
                                                  final DerivativeStructure a2, final DerivativeStructure b2)
         throws DimensionMismatchException {
@@ -983,6 +1037,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure linearCombination(final double a1, final DerivativeStructure b1,
                                                  final double a2, final DerivativeStructure b2)
         throws DimensionMismatchException {
@@ -1006,6 +1061,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure linearCombination(final DerivativeStructure a1, final DerivativeStructure b1,
                                                  final DerivativeStructure a2, final DerivativeStructure b2,
                                                  final DerivativeStructure a3, final DerivativeStructure b3)
@@ -1031,6 +1087,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure linearCombination(final double a1, final DerivativeStructure b1,
                                                  final double a2, final DerivativeStructure b2,
                                                  final double a3, final DerivativeStructure b3)
@@ -1056,6 +1113,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure linearCombination(final DerivativeStructure a1, final DerivativeStructure b1,
                                                  final DerivativeStructure a2, final DerivativeStructure b2,
                                                  final DerivativeStructure a3, final DerivativeStructure b3,
@@ -1083,6 +1141,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
      * or orders do not match
      * @since 3.2
      */
+    @Override
     public DerivativeStructure linearCombination(final double a1, final DerivativeStructure b1,
                                                  final double a2, final DerivativeStructure b2,
                                                  final double a3, final DerivativeStructure b3,

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java
index 42e01ac..f1ca1da 100644
--- a/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java
+++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java
@@ -240,15 +240,18 @@ public class FiniteDifferencesDifferentiator
      * derivation order is larger or equal to the number of points.
      * </p>
      */
+    @Override
     public UnivariateDifferentiableFunction differentiate(final UnivariateFunction function) {
         return new UnivariateDifferentiableFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double value(final double x) throws MathIllegalArgumentException {
                 return function.value(x);
             }
 
             /** {@inheritDoc} */
+            @Override
             public DerivativeStructure value(final DerivativeStructure t)
                 throws MathIllegalArgumentException {
 
@@ -280,15 +283,18 @@ public class FiniteDifferencesDifferentiator
      * derivation order is larger or equal to the number of points.
      * </p>
      */
+    @Override
     public UnivariateDifferentiableVectorFunction differentiate(final UnivariateVectorFunction function) {
         return new UnivariateDifferentiableVectorFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double[]value(final double x) throws MathIllegalArgumentException {
                 return function.value(x);
             }
 
             /** {@inheritDoc} */
+            @Override
             public DerivativeStructure[] value(final DerivativeStructure t)
                 throws MathIllegalArgumentException {
 
@@ -331,15 +337,18 @@ public class FiniteDifferencesDifferentiator
      * derivation order is larger or equal to the number of points.
      * </p>
      */
+    @Override
     public UnivariateDifferentiableMatrixFunction differentiate(final UnivariateMatrixFunction function) {
         return new UnivariateDifferentiableMatrixFunction() {
 
             /** {@inheritDoc} */
+            @Override
             public double[][]  value(final double x) throws MathIllegalArgumentException {
                 return function.value(x);
             }
 
             /** {@inheritDoc} */
+            @Override
             public DerivativeStructure[][]  value(final DerivativeStructure t)
                 throws MathIllegalArgumentException {
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java
index 0b75ae8..665a1f8 100644
--- a/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java
+++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java
@@ -38,6 +38,7 @@ public class GradientFunction implements MultivariateVectorFunction {
     }
 
     /** {@inheritDoc} */
+    @Override
     public double[] value(double[] point) {
 
         // set up parameters

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java
index f7b8082..16e338c 100644
--- a/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java
+++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java
@@ -40,6 +40,7 @@ public class JacobianFunction implements MultivariateMatrixFunction {
     }
 
     /** {@inheritDoc} */
+    @Override
     public double[][] value(double[] point) {
 
         // set up parameters

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java
index adff345..4e82d08 100644
--- a/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java
+++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java
@@ -130,11 +130,13 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public double getReal() {
         return value;
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient add(final SparseGradient a) {
         final SparseGradient out = new SparseGradient(value + a.value, derivatives);
         for (Map.Entry<Integer, Double> entry : a.derivatives.entrySet()) {
@@ -176,12 +178,14 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient add(final double c) {
         final SparseGradient out = new SparseGradient(value + c, derivatives);
         return out;
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient subtract(final SparseGradient a) {
         final SparseGradient out = new SparseGradient(value - a.value, derivatives);
         for (Map.Entry<Integer, Double> entry : a.derivatives.entrySet()) {
@@ -197,11 +201,13 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient subtract(double c) {
         return new SparseGradient(value - c, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient multiply(final SparseGradient a) {
         final SparseGradient out =
             new SparseGradient(value * a.value, Collections.<Integer, Double> emptyMap());
@@ -252,16 +258,19 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient multiply(final double c) {
         return new SparseGradient(value * c, c, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient multiply(final int n) {
         return new SparseGradient(value * n, n, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient divide(final SparseGradient a) {
         final SparseGradient out = new SparseGradient(value / a.value, Collections.<Integer, Double> emptyMap());
 
@@ -282,30 +291,36 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient divide(final double c) {
         return new SparseGradient(value / c, 1.0 / c, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient negate() {
         return new SparseGradient(-value, -1.0, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public Field<SparseGradient> getField() {
         return new Field<SparseGradient>() {
 
             /** {@inheritDoc} */
+            @Override
             public SparseGradient getZero() {
                 return createConstant(0);
             }
 
             /** {@inheritDoc} */
+            @Override
             public SparseGradient getOne() {
                 return createConstant(1);
             }
 
             /** {@inheritDoc} */
+            @Override
             public Class<? extends FieldElement<SparseGradient>> getRuntimeClass() {
                 return SparseGradient.class;
             }
@@ -314,11 +329,13 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient remainder(final double a) {
         return new SparseGradient(FastMath.IEEEremainder(value, a), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient remainder(final SparseGradient a) {
 
         // compute k such that lhs % rhs = lhs - k rhs
@@ -330,6 +347,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient abs() {
         if (Double.doubleToLongBits(value) < 0) {
             // we use the bits representation to also handle -0.0
@@ -340,31 +358,37 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient ceil() {
         return createConstant(FastMath.ceil(value));
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient floor() {
         return createConstant(FastMath.floor(value));
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient rint() {
         return createConstant(FastMath.rint(value));
     }
 
     /** {@inheritDoc} */
+    @Override
     public long round() {
         return FastMath.round(value);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient signum() {
         return createConstant(FastMath.signum(value));
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient copySign(final SparseGradient sign) {
         final long m = Double.doubleToLongBits(value);
         final long s = Double.doubleToLongBits(sign.value);
@@ -375,6 +399,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient copySign(final double sign) {
         final long m = Double.doubleToLongBits(value);
         final long s = Double.doubleToLongBits(sign);
@@ -385,6 +410,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient scalb(final int n) {
         final SparseGradient out = new SparseGradient(FastMath.scalb(value, n), Collections.<Integer, Double> emptyMap());
         for (Map.Entry<Integer, Double> entry : derivatives.entrySet()) {
@@ -394,6 +420,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient hypot(final SparseGradient y) {
         if (Double.isInfinite(value) || Double.isInfinite(y.value)) {
             return createConstant(Double.POSITIVE_INFINITY);
@@ -449,23 +476,27 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient reciprocal() {
         return new SparseGradient(1.0 / value, -1.0 / (value * value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient sqrt() {
         final double sqrt = FastMath.sqrt(value);
         return new SparseGradient(sqrt, 0.5 / sqrt, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient cbrt() {
         final double cbrt = FastMath.cbrt(value);
         return new SparseGradient(cbrt, 1.0 / (3 * cbrt * cbrt), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient rootN(final int n) {
         if (n == 2) {
             return sqrt();
@@ -478,11 +509,13 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient pow(final double p) {
         return new SparseGradient(FastMath.pow(value,  p), p * FastMath.pow(value,  p - 1), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient pow(final int n) {
         if (n == 0) {
             return getField().getOne();
@@ -493,6 +526,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient pow(final SparseGradient e) {
         return log().multiply(e).exp();
     }
@@ -518,17 +552,20 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient exp() {
         final double e = FastMath.exp(value);
         return new SparseGradient(e, e, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient expm1() {
         return new SparseGradient(FastMath.expm1(value), FastMath.exp(value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient log() {
         return new SparseGradient(FastMath.log(value), 1.0 / value, derivatives);
     }
@@ -541,42 +578,50 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient log1p() {
         return new SparseGradient(FastMath.log1p(value), 1.0 / (1.0 + value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient cos() {
         return new SparseGradient(FastMath.cos(value), -FastMath.sin(value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient sin() {
         return new SparseGradient(FastMath.sin(value), FastMath.cos(value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient tan() {
         final double t = FastMath.tan(value);
         return new SparseGradient(t, 1 + t * t, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient acos() {
         return new SparseGradient(FastMath.acos(value), -1.0 / FastMath.sqrt(1 - value * value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient asin() {
         return new SparseGradient(FastMath.asin(value), 1.0 / FastMath.sqrt(1 - value * value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient atan() {
         return new SparseGradient(FastMath.atan(value), 1.0 / (1 + value * value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient atan2(final SparseGradient x) {
 
         // compute r = sqrt(x^2+y^2)
@@ -613,32 +658,38 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient cosh() {
         return new SparseGradient(FastMath.cosh(value), FastMath.sinh(value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient sinh() {
         return new SparseGradient(FastMath.sinh(value), FastMath.cosh(value), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient tanh() {
         final double t = FastMath.tanh(value);
         return new SparseGradient(t, 1 - t * t, derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient acosh() {
         return new SparseGradient(FastMath.acosh(value), 1.0 / FastMath.sqrt(value * value - 1.0), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient asinh() {
         return new SparseGradient(FastMath.asinh(value), 1.0 / FastMath.sqrt(value * value + 1.0), derivatives);
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient atanh() {
         return new SparseGradient(FastMath.atanh(value), 1.0 / (1.0 - value * value), derivatives);
     }
@@ -680,6 +731,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient linearCombination(final SparseGradient[] a,
                                               final SparseGradient[] b)
         throws DimensionMismatchException {
@@ -706,6 +758,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient linearCombination(final double[] a, final SparseGradient[] b) {
 
         // compute a simple value, with all partial derivatives
@@ -726,6 +779,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient linearCombination(final SparseGradient a1, final SparseGradient b1,
                                               final SparseGradient a2, final SparseGradient b2) {
 
@@ -740,6 +794,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient linearCombination(final double a1, final SparseGradient b1,
                                               final double a2, final SparseGradient b2) {
 
@@ -754,6 +809,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient linearCombination(final SparseGradient a1, final SparseGradient b1,
                                               final SparseGradient a2, final SparseGradient b2,
                                               final SparseGradient a3, final SparseGradient b3) {
@@ -771,6 +827,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient linearCombination(final double a1, final SparseGradient b1,
                                               final double a2, final SparseGradient b2,
                                               final double a3, final SparseGradient b3) {
@@ -788,6 +845,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient linearCombination(final SparseGradient a1, final SparseGradient b1,
                                               final SparseGradient a2, final SparseGradient b2,
                                               final SparseGradient a3, final SparseGradient b3,
@@ -807,6 +865,7 @@ public class SparseGradient implements RealFieldElement<SparseGradient>, Seriali
     }
 
     /** {@inheritDoc} */
+    @Override
     public SparseGradient linearCombination(final double a1, final SparseGradient b1,
                                               final double a2, final SparseGradient b2,
                                               final double a3, final SparseGradient b3,

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Abs.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Abs.java b/src/main/java/org/apache/commons/math4/analysis/function/Abs.java
index 6f19b54..9f52e5a 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Abs.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Abs.java
@@ -27,6 +27,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Abs implements UnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.abs(x);
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Acos.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Acos.java b/src/main/java/org/apache/commons/math4/analysis/function/Acos.java
index 1b51cde..6733822 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Acos.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Acos.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Acos implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.acos(x);
     }
@@ -39,6 +40,7 @@ public class Acos implements UnivariateDifferentiableFunction, DifferentiableUni
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
     }
@@ -46,6 +48,7 @@ public class Acos implements UnivariateDifferentiableFunction, DifferentiableUni
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.acos();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Acosh.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Acosh.java b/src/main/java/org/apache/commons/math4/analysis/function/Acosh.java
index 3dfcb5e..fb78cd5 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Acosh.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Acosh.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Acosh implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.acosh(x);
     }
@@ -39,6 +40,7 @@ public class Acosh implements UnivariateDifferentiableFunction, DifferentiableUn
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
     }
@@ -46,6 +48,7 @@ public class Acosh implements UnivariateDifferentiableFunction, DifferentiableUn
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.acosh();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Add.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Add.java b/src/main/java/org/apache/commons/math4/analysis/function/Add.java
index 68680aa..e66804c 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Add.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Add.java
@@ -26,6 +26,7 @@ import org.apache.commons.math4.analysis.BivariateFunction;
  */
 public class Add implements BivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x, double y) {
         return x + y;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Asin.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Asin.java b/src/main/java/org/apache/commons/math4/analysis/function/Asin.java
index f6e439d..ee6a66c 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Asin.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Asin.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Asin implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.asin(x);
     }
@@ -39,6 +40,7 @@ public class Asin implements UnivariateDifferentiableFunction, DifferentiableUni
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
     }
@@ -46,6 +48,7 @@ public class Asin implements UnivariateDifferentiableFunction, DifferentiableUni
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.asin();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Asinh.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Asinh.java b/src/main/java/org/apache/commons/math4/analysis/function/Asinh.java
index a632acb..21184cd 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Asinh.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Asinh.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Asinh implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.asinh(x);
     }
@@ -39,6 +40,7 @@ public class Asinh implements UnivariateDifferentiableFunction, DifferentiableUn
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
     }
@@ -46,6 +48,7 @@ public class Asinh implements UnivariateDifferentiableFunction, DifferentiableUn
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.asinh();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Atan.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Atan.java b/src/main/java/org/apache/commons/math4/analysis/function/Atan.java
index 214428e..1227905 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Atan.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Atan.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Atan implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.atan(x);
     }
@@ -39,6 +40,7 @@ public class Atan implements UnivariateDifferentiableFunction, DifferentiableUni
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
     }
@@ -46,6 +48,7 @@ public class Atan implements UnivariateDifferentiableFunction, DifferentiableUni
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.atan();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Atan2.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Atan2.java b/src/main/java/org/apache/commons/math4/analysis/function/Atan2.java
index 6673b4a..9fef4f1 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Atan2.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Atan2.java
@@ -27,6 +27,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Atan2 implements BivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x, double y) {
         return FastMath.atan2(x, y);
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Atanh.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Atanh.java b/src/main/java/org/apache/commons/math4/analysis/function/Atanh.java
index c342b67..1f573bf 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Atanh.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Atanh.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Atanh implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.atanh(x);
     }
@@ -39,6 +40,7 @@ public class Atanh implements UnivariateDifferentiableFunction, DifferentiableUn
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
     }
@@ -46,6 +48,7 @@ public class Atanh implements UnivariateDifferentiableFunction, DifferentiableUn
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.atanh();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Cbrt.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Cbrt.java b/src/main/java/org/apache/commons/math4/analysis/function/Cbrt.java
index 2253951..dc7cdcc 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Cbrt.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Cbrt.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Cbrt implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.cbrt(x);
     }
@@ -39,6 +40,7 @@ public class Cbrt implements UnivariateDifferentiableFunction, DifferentiableUni
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
     }
@@ -46,6 +48,7 @@ public class Cbrt implements UnivariateDifferentiableFunction, DifferentiableUni
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.cbrt();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Ceil.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Ceil.java b/src/main/java/org/apache/commons/math4/analysis/function/Ceil.java
index 21d8034..161f73d 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Ceil.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Ceil.java
@@ -27,6 +27,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Ceil implements UnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.ceil(x);
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Constant.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Constant.java b/src/main/java/org/apache/commons/math4/analysis/function/Constant.java
index e2fac7a..acd9681 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Constant.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Constant.java
@@ -38,6 +38,7 @@ public class Constant implements UnivariateDifferentiableFunction, Differentiabl
     }
 
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return c;
     }
@@ -46,6 +47,7 @@ public class Constant implements UnivariateDifferentiableFunction, Differentiabl
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public DifferentiableUnivariateFunction derivative() {
         return new Constant(0);
     }
@@ -53,6 +55,7 @@ public class Constant implements UnivariateDifferentiableFunction, Differentiabl
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return new DerivativeStructure(t.getFreeParameters(), t.getOrder(), c);
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Cos.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Cos.java b/src/main/java/org/apache/commons/math4/analysis/function/Cos.java
index a6607bf..8f38070 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Cos.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Cos.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Cos implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.cos(x);
     }
@@ -39,6 +40,7 @@ public class Cos implements UnivariateDifferentiableFunction, DifferentiableUniv
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
     }
@@ -46,6 +48,7 @@ public class Cos implements UnivariateDifferentiableFunction, DifferentiableUniv
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.cos();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Cosh.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Cosh.java b/src/main/java/org/apache/commons/math4/analysis/function/Cosh.java
index 5c9416b..4bdcad5 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Cosh.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Cosh.java
@@ -29,6 +29,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Cosh implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.cosh(x);
     }
@@ -37,6 +38,7 @@ public class Cosh implements UnivariateDifferentiableFunction, DifferentiableUni
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
+    @Override
     public DifferentiableUnivariateFunction derivative() {
         return new Sinh();
     }
@@ -44,6 +46,7 @@ public class Cosh implements UnivariateDifferentiableFunction, DifferentiableUni
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.cosh();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Divide.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Divide.java b/src/main/java/org/apache/commons/math4/analysis/function/Divide.java
index 18f8f31..a497692 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Divide.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Divide.java
@@ -26,6 +26,7 @@ import org.apache.commons.math4.analysis.BivariateFunction;
  */
 public class Divide implements BivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x, double y) {
         return x / y;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Exp.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Exp.java b/src/main/java/org/apache/commons/math4/analysis/function/Exp.java
index 6233bbc..7baf535 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Exp.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Exp.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Exp implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.exp(x);
     }
@@ -38,6 +39,7 @@ public class Exp implements UnivariateDifferentiableFunction, DifferentiableUniv
     /** {@inheritDoc}
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
+    @Override
     @Deprecated
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
@@ -46,6 +48,7 @@ public class Exp implements UnivariateDifferentiableFunction, DifferentiableUniv
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.exp();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Expm1.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Expm1.java b/src/main/java/org/apache/commons/math4/analysis/function/Expm1.java
index 552411d..1b0c61d 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Expm1.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Expm1.java
@@ -31,6 +31,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Expm1 implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.expm1(x);
     }
@@ -38,6 +39,7 @@ public class Expm1 implements UnivariateDifferentiableFunction, DifferentiableUn
     /** {@inheritDoc}
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
+    @Override
     @Deprecated
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
@@ -46,6 +48,7 @@ public class Expm1 implements UnivariateDifferentiableFunction, DifferentiableUn
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.expm1();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Floor.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Floor.java b/src/main/java/org/apache/commons/math4/analysis/function/Floor.java
index d630935..1ecd5d7 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Floor.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Floor.java
@@ -27,6 +27,7 @@ import org.apache.commons.math4.util.FastMath;
  */
 public class Floor implements UnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return FastMath.floor(x);
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Gaussian.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Gaussian.java b/src/main/java/org/apache/commons/math4/analysis/function/Gaussian.java
index da3eecb..1b04a34 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Gaussian.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Gaussian.java
@@ -90,6 +90,7 @@ public class Gaussian implements UnivariateDifferentiableFunction, Differentiabl
     }
 
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return value(x - mean, norm, i2s2);
     }
@@ -97,6 +98,7 @@ public class Gaussian implements UnivariateDifferentiableFunction, Differentiabl
     /** {@inheritDoc}
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
+    @Override
     @Deprecated
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
@@ -208,6 +210,7 @@ public class Gaussian implements UnivariateDifferentiableFunction, Differentiabl
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t)
         throws DimensionMismatchException {
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/HarmonicOscillator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/HarmonicOscillator.java b/src/main/java/org/apache/commons/math4/analysis/function/HarmonicOscillator.java
index 5e43367..b07ac66 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/HarmonicOscillator.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/HarmonicOscillator.java
@@ -57,6 +57,7 @@ public class HarmonicOscillator implements UnivariateDifferentiableFunction, Dif
     }
 
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return value(omega * x + phase, amplitude);
     }
@@ -64,6 +65,7 @@ public class HarmonicOscillator implements UnivariateDifferentiableFunction, Dif
     /** {@inheritDoc}
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
+    @Override
     @Deprecated
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
@@ -161,6 +163,7 @@ public class HarmonicOscillator implements UnivariateDifferentiableFunction, Dif
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t)
         throws DimensionMismatchException {
         final double x = t.getValue();

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Identity.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Identity.java b/src/main/java/org/apache/commons/math4/analysis/function/Identity.java
index 1309f41..dd0c84b 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Identity.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Identity.java
@@ -28,6 +28,7 @@ import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiabl
  */
 public class Identity implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return x;
     }
@@ -35,6 +36,7 @@ public class Identity implements UnivariateDifferentiableFunction, Differentiabl
     /** {@inheritDoc}
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
+    @Override
     @Deprecated
     public DifferentiableUnivariateFunction derivative() {
         return new Constant(1);
@@ -43,6 +45,7 @@ public class Identity implements UnivariateDifferentiableFunction, Differentiabl
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/analysis/function/Inverse.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Inverse.java b/src/main/java/org/apache/commons/math4/analysis/function/Inverse.java
index 459eb22..77df37b 100644
--- a/src/main/java/org/apache/commons/math4/analysis/function/Inverse.java
+++ b/src/main/java/org/apache/commons/math4/analysis/function/Inverse.java
@@ -30,6 +30,7 @@ import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiabl
  */
 public class Inverse implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
     /** {@inheritDoc} */
+    @Override
     public double value(double x) {
         return 1 / x;
     }
@@ -37,6 +38,7 @@ public class Inverse implements UnivariateDifferentiableFunction, Differentiable
     /** {@inheritDoc}
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
+    @Override
     @Deprecated
     public UnivariateFunction derivative() {
         return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
@@ -45,6 +47,7 @@ public class Inverse implements UnivariateDifferentiableFunction, Differentiable
     /** {@inheritDoc}
      * @since 3.1
      */
+    @Override
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.reciprocal();
     }


Mime
View raw message