commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [1/4] [math] Fixed @Override checkstyle warnings.
Date Fri, 10 Apr 2015 15:45:57 GMT
Repository: commons-math
Updated Branches:
  refs/heads/master a06a15846 -> 8d9ddbca5


http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
index db3d9f4..3b488c9 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java
@@ -123,6 +123,7 @@ public class Skewness extends AbstractStorelessUnivariateStatistic implements
Se
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return moment.getN();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java
b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java
index 5847b13..0d86be2 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java
@@ -117,6 +117,7 @@ public class StandardDeviation extends AbstractStorelessUnivariateStatistic
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return variance.getN();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
index b1cf852..1800982 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java
@@ -193,6 +193,7 @@ public class Variance extends AbstractStorelessUnivariateStatistic implements
Se
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return moment.getN();
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java
index e76e68a..60efe1b 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java
@@ -100,6 +100,7 @@ public class Max extends AbstractStorelessUnivariateStatistic implements
Seriali
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return n;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java
index a0ddf86..0152e48 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java
@@ -100,6 +100,7 @@ public class Min extends AbstractStorelessUnivariateStatistic implements
Seriali
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return n;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java
b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java
index 79df284..418f3c5 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java
@@ -227,6 +227,7 @@ public class PSquarePercentile extends AbstractStorelessUnivariateStatistic
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return countOfObservations;
     }
@@ -491,6 +492,7 @@ public class PSquarePercentile extends AbstractStorelessUnivariateStatistic
         /**
          * {@inheritDoc}
          */
+        @Override
         public double estimate(final int index) {
             if (index < LOW || index > HIGH) {
                 throw new OutOfRangeException(index, LOW, HIGH);

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
index dfbf613..4336f7f 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java
@@ -90,6 +90,7 @@ public class Product extends AbstractStorelessUnivariateStatistic implements
Ser
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return n;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java
index 6205d2a..523de97 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java
@@ -89,6 +89,7 @@ public class Sum extends AbstractStorelessUnivariateStatistic implements
Seriali
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return n;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java
b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java
index 57f725c..5a95de1 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java
@@ -97,6 +97,7 @@ public class SumOfLogs extends AbstractStorelessUnivariateStatistic implements
S
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return n;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java
b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java
index 68c589b..d55c890 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java
@@ -88,6 +88,7 @@ public class SumOfSquares extends AbstractStorelessUnivariateStatistic implement
     /**
      * {@inheritDoc}
      */
+    @Override
     public long getN() {
         return n;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/interval/AgrestiCoullInterval.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/interval/AgrestiCoullInterval.java
b/src/main/java/org/apache/commons/math4/stat/interval/AgrestiCoullInterval.java
index 6685e64..ab740fb 100644
--- a/src/main/java/org/apache/commons/math4/stat/interval/AgrestiCoullInterval.java
+++ b/src/main/java/org/apache/commons/math4/stat/interval/AgrestiCoullInterval.java
@@ -30,6 +30,7 @@ import org.apache.commons.math4.util.FastMath;
 public class AgrestiCoullInterval implements BinomialConfidenceInterval {
 
     /** {@inheritDoc} */
+    @Override
     public ConfidenceInterval createInterval(int numberOfTrials, int numberOfSuccesses, double
confidenceLevel) {
         IntervalUtils.checkParameters(numberOfTrials, numberOfSuccesses, confidenceLevel);
         final double alpha = (1.0 - confidenceLevel) / 2;

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/interval/ClopperPearsonInterval.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/interval/ClopperPearsonInterval.java
b/src/main/java/org/apache/commons/math4/stat/interval/ClopperPearsonInterval.java
index ea713d8..17dc9f5 100644
--- a/src/main/java/org/apache/commons/math4/stat/interval/ClopperPearsonInterval.java
+++ b/src/main/java/org/apache/commons/math4/stat/interval/ClopperPearsonInterval.java
@@ -29,6 +29,7 @@ import org.apache.commons.math4.distribution.FDistribution;
 public class ClopperPearsonInterval implements BinomialConfidenceInterval {
 
     /** {@inheritDoc} */
+    @Override
     public ConfidenceInterval createInterval(int numberOfTrials, int numberOfSuccesses,
                                              double confidenceLevel) {
         IntervalUtils.checkParameters(numberOfTrials, numberOfSuccesses, confidenceLevel);

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/interval/NormalApproximationInterval.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/interval/NormalApproximationInterval.java
b/src/main/java/org/apache/commons/math4/stat/interval/NormalApproximationInterval.java
index a81e58d..57c3946 100644
--- a/src/main/java/org/apache/commons/math4/stat/interval/NormalApproximationInterval.java
+++ b/src/main/java/org/apache/commons/math4/stat/interval/NormalApproximationInterval.java
@@ -30,6 +30,7 @@ import org.apache.commons.math4.util.FastMath;
 public class NormalApproximationInterval implements BinomialConfidenceInterval {
 
     /** {@inheritDoc} */
+    @Override
     public ConfidenceInterval createInterval(int numberOfTrials, int numberOfSuccesses,
                                              double confidenceLevel) {
         IntervalUtils.checkParameters(numberOfTrials, numberOfSuccesses, confidenceLevel);

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/interval/WilsonScoreInterval.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/interval/WilsonScoreInterval.java
b/src/main/java/org/apache/commons/math4/stat/interval/WilsonScoreInterval.java
index 0c91f62..bf683b1 100644
--- a/src/main/java/org/apache/commons/math4/stat/interval/WilsonScoreInterval.java
+++ b/src/main/java/org/apache/commons/math4/stat/interval/WilsonScoreInterval.java
@@ -30,6 +30,7 @@ import org.apache.commons.math4.util.FastMath;
 public class WilsonScoreInterval implements BinomialConfidenceInterval {
 
     /** {@inheritDoc} */
+    @Override
     public ConfidenceInterval createInterval(int numberOfTrials, int numberOfSuccesses, double
confidenceLevel) {
         IntervalUtils.checkParameters(numberOfTrials, numberOfSuccesses, confidenceLevel);
         final double alpha = (1.0 - confidenceLevel) / 2;

http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d9ddbca/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
b/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
index 0b9751a..99775c4 100644
--- a/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
+++ b/src/main/java/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.java
@@ -260,6 +260,7 @@ public abstract class AbstractMultipleLinearRegression implements
     /**
      * {@inheritDoc}
      */
+    @Override
     public double[] estimateRegressionParameters() {
         RealVector b = calculateBeta();
         return b.toArray();
@@ -268,6 +269,7 @@ public abstract class AbstractMultipleLinearRegression implements
     /**
      * {@inheritDoc}
      */
+    @Override
     public double[] estimateResiduals() {
         RealVector b = calculateBeta();
         RealVector e = yVector.subtract(xMatrix.operate(b));
@@ -277,6 +279,7 @@ public abstract class AbstractMultipleLinearRegression implements
     /**
      * {@inheritDoc}
      */
+    @Override
     public double[][] estimateRegressionParametersVariance() {
         return calculateBetaVariance().getData();
     }
@@ -284,6 +287,7 @@ public abstract class AbstractMultipleLinearRegression implements
     /**
      * {@inheritDoc}
      */
+    @Override
     public double[] estimateRegressionParametersStandardErrors() {
         double[][] betaVariance = estimateRegressionParametersVariance();
         double sigma = calculateErrorVariance();
@@ -298,6 +302,7 @@ public abstract class AbstractMultipleLinearRegression implements
     /**
      * {@inheritDoc}
      */
+    @Override
     public double estimateRegressandVariance() {
         return calculateYVariance();
     }


Mime
View raw message