You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2009/04/05 16:20:23 UTC
svn commit: r762087 [1/4] - in /commons/proper/math/trunk/src:
java/org/apache/commons/math/
java/org/apache/commons/math/analysis/integration/
java/org/apache/commons/math/analysis/polynomials/
java/org/apache/commons/math/analysis/solvers/ java/org/a...
Author: luc
Date: Sun Apr 5 14:20:18 2009
New Revision: 762087
URL: http://svn.apache.org/viewvc?rev=762087&view=rev
Log:
added missing @Override annotations
Modified:
commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java
commons/proper/math/trunk/src/java/org/apache/commons/math/MathRuntimeException.java
commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java
commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java
commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverFactoryImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java
commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexFormat.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BetaDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/FDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PascalDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/TDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/AbstractFormat.java
commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionFormat.java
commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java
commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java
commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperBigFractionFormat.java
commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperFractionFormat.java
commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/RotationOrder.java
commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3DFormat.java
commons/proper/math/trunk/src/java/org/apache/commons/math/linear/AbstractRealMatrix.java
commons/proper/math/trunk/src/java/org/apache/commons/math/linear/BigMatrixImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/linear/DenseRealMatrix.java
commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealMatrixImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealVectorFormat.java
commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealVectorImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/linear/SparseRealMatrix.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/DormandPrince54Integrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/DormandPrince54StepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/DormandPrince853Integrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/DormandPrince853StepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/EulerStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/GillStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/HighamHall54Integrator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/HighamHall54StepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/MidpointStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/RungeKuttaStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/ThreeEighthesStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/sampling/DummyStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/ode/sampling/MultistepStepInterpolator.java
commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/direct/MultiDirectional.java
commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/direct/NelderMead.java
commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java
commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizer.java
commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java
commons/proper/math/trunk/src/java/org/apache/commons/math/optimization/linear/SimplexSolver.java
commons/proper/math/trunk/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
commons/proper/math/trunk/src/java/org/apache/commons/math/random/RandomAdaptor.java
commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java
commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/Frequency.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/DescriptiveStatistics.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatistics.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/StatisticalSummaryValues.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedDescriptiveStatistics.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedMultivariateSummaryStatistics.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/FirstMoment.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/FourthMoment.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Kurtosis.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Mean.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/SecondMoment.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Skewness.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/StandardDeviation.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/ThirdMoment.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/moment/Variance.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/rank/Max.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/rank/Min.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/rank/Percentile.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/summary/Product.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/summary/Sum.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/summary/SumOfLogs.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/summary/SumOfSquares.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java
commons/proper/math/trunk/src/java/org/apache/commons/math/util/ResizableDoubleArray.java
commons/proper/math/trunk/src/test/org/apache/commons/math/RetryTestCase.java
commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/solvers/UnivariateRealSolverFactoryImplTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/complex/ComplexFormatAbstractTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/complex/ComplexFormatTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/complex/FrenchComplexFormatTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/BinomialDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/CauchyDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ChiSquareDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ExponentialDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/FDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/GammaDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/IntegerDistributionAbstractTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/NormalDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/PascalDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/PoissonDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/TDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/WeibullDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ZipfDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/GaussNewtonEstimatorTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/LevenbergMarquardtEstimatorTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/MinpackTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/estimation/WeightedMeasurementTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/fraction/BigFractionFormatTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/fraction/FractionFormatTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/geometry/FrenchVector3DFormatTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/geometry/Vector3DFormatAbstractTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/geometry/Vector3DFormatTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/BigMatrixImplTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/DenseRealMatrixTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/FrenchRealVectorFormatTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/MatrixUtilsTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/RealMatrixImplTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/RealVectorFormatAbstractTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/RealVectorFormatTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/SparseRealMatrixTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/decomposition/EigenDecompositionImplTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/decomposition/EigenSolverTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/decomposition/QRDecompositionImplTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/linear/decomposition/QRSolverTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/ContinuousOutputModelTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/TestProblem1.java
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/TestProblem2.java
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/TestProblem3.java
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/TestProblem4.java
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/TestProblemAbstract.java
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/DummyStepInterpolatorTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/StepNormalizerTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/MinpackTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/random/AbstractRandomGeneratorTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/random/CorrelatedRandomVectorGeneratorTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/random/EmpiricalDistributionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/random/TestRandomGenerator.java
commons/proper/math/trunk/src/test/org/apache/commons/math/random/UncorrelatedRandomVectorGeneratorTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/random/ValueServerTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/StatUtilsTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LewTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LotteryTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/DescriptiveStatisticsTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImplTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MixedListUnivariateImplTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StatisticalSummaryValuesTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatisticsTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FirstMomentTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FourthMomentTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/GeometricMeanTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/KurtosisTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/MeanTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SecondMomentTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SkewnessTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/StandardDeviationTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/ThirdMomentTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VarianceTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialCovarianceTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialMeanTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MaxTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MedianTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MinTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/PercentileTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/ProductTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareFactoryTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareTestTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/OneWayAnovaTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestFactoryTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TestUtilsTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/GLSMultipleLinearRegressionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/OLSMultipleLinearRegressionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/SimpleRegressionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java
commons/proper/math/trunk/src/test/org/apache/commons/math/util/ResizableDoubleArrayTest.java
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java Sun Apr 5 14:20:18 2009
@@ -174,6 +174,7 @@
}
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return getMessage(Locale.getDefault());
}
@@ -181,6 +182,7 @@
/**
* Prints the stack trace of this exception to the standard error stream.
*/
+ @Override
public void printStackTrace() {
printStackTrace(System.err);
}
@@ -190,6 +192,7 @@
*
* @param out the <code>PrintStream</code> to use for output
*/
+ @Override
public void printStackTrace(PrintStream out) {
synchronized (out) {
PrintWriter pw = new PrintWriter(out, false);
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/MathRuntimeException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/MathRuntimeException.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/MathRuntimeException.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/MathRuntimeException.java Sun Apr 5 14:20:18 2009
@@ -163,6 +163,7 @@
}
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return getMessage(Locale.getDefault());
}
@@ -170,6 +171,7 @@
/**
* Prints the stack trace of this exception to the standard error stream.
*/
+ @Override
public void printStackTrace() {
printStackTrace(System.err);
}
@@ -179,6 +181,7 @@
*
* @param out the <code>PrintStream</code> to use for output
*/
+ @Override
public void printStackTrace(final PrintStream out) {
synchronized (out) {
PrintWriter pw = new PrintWriter(out, false);
@@ -203,6 +206,7 @@
private static final long serialVersionUID = 7705628723242533939L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
@@ -225,6 +229,7 @@
private static final long serialVersionUID = -3394748305449283486L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
@@ -247,6 +252,7 @@
private static final long serialVersionUID = 279461544586092584L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
@@ -286,6 +292,7 @@
private static final long serialVersionUID = -6555453980658317913L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
@@ -308,6 +315,7 @@
private static final long serialVersionUID = -95247648156277208L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
@@ -330,6 +338,7 @@
private static final long serialVersionUID = 6134247282754009421L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
@@ -352,6 +361,7 @@
private static final long serialVersionUID = 7304273322489425799L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
@@ -374,6 +384,7 @@
private static final long serialVersionUID = -3075660477939965216L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
@@ -399,6 +410,7 @@
private static final long serialVersionUID = -1103502177342465975L;
/** {@inheritDoc} */
+ @Override
public String getLocalizedMessage() {
return buildMessage(Locale.getDefault(), pattern, arguments);
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java Sun Apr 5 14:20:18 2009
@@ -37,6 +37,7 @@
* Get the non-translated/translated messages arrays from this resource bundle.
* @return non-translated/translated messages arrays
*/
+ @Override
public Object[][] getContents() {
return (Object[][]) contents.clone();
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java Sun Apr 5 14:20:18 2009
@@ -106,6 +106,7 @@
}
/** {@inheritDoc} */
+ @Override
protected void verifyIterationCount() throws IllegalArgumentException {
super.verifyIterationCount();
// at most 32 bisection refinements due to higher order divider
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java Sun Apr 5 14:20:18 2009
@@ -105,6 +105,7 @@
}
/** {@inheritDoc} */
+ @Override
protected void verifyIterationCount() throws IllegalArgumentException {
super.verifyIterationCount();
// at most 64 bisection refinements
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java Sun Apr 5 14:20:18 2009
@@ -138,6 +138,7 @@
}
/** {@inheritDoc} */
+ @Override
protected void verifyIterationCount() throws IllegalArgumentException {
super.verifyIterationCount();
// at most 64 bisection refinements
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java Sun Apr 5 14:20:18 2009
@@ -272,6 +272,7 @@
* @return a string representation of the polynomial
*/
+ @Override
public String toString() {
StringBuffer s = new StringBuffer();
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverFactoryImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverFactoryImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverFactoryImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverFactoryImpl.java Sun Apr 5 14:20:18 2009
@@ -33,26 +33,31 @@
}
/** {@inheritDoc} */
+ @Override
public UnivariateRealSolver newDefaultSolver() {
return newBrentSolver();
}
/** {@inheritDoc} */
+ @Override
public UnivariateRealSolver newBisectionSolver() {
return new BisectionSolver();
}
/** {@inheritDoc} */
+ @Override
public UnivariateRealSolver newBrentSolver() {
return new BrentSolver();
}
/** {@inheritDoc} */
+ @Override
public UnivariateRealSolver newNewtonSolver() {
return new NewtonSolver();
}
/** {@inheritDoc} */
+ @Override
public UnivariateRealSolver newSecantSolver() {
return new SecantSolver();
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java Sun Apr 5 14:20:18 2009
@@ -246,6 +246,7 @@
* not equal to this Complex instance
*
*/
+ @Override
public boolean equals(Object other) {
boolean ret;
@@ -277,6 +278,7 @@
*
* @return a hash code value for this object
*/
+ @Override
public int hashCode() {
if (isNaN()) {
return 7;
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexFormat.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexFormat.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexFormat.java Sun Apr 5 14:20:18 2009
@@ -180,6 +180,7 @@
* @see java.text.Format#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)
* @throws IllegalArgumentException is <code>obj</code> is not a valid type.
*/
+ @Override
public StringBuffer format(Object obj, StringBuffer toAppendTo,
FieldPosition pos) {
@@ -333,6 +334,7 @@
* @return the parsed object.
* @see java.text.Format#parseObject(java.lang.String, java.text.ParsePosition)
*/
+ @Override
public Object parseObject(String source, ParsePosition pos) {
return parse(source, pos);
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java Sun Apr 5 14:20:18 2009
@@ -73,6 +73,7 @@
* computed due to convergence or other numerical errors.
* @throws IllegalArgumentException if <code>x0 > x1</code>
*/
+ @Override
public double cumulativeProbability(double x0, double x1)
throws MathException {
if (x0 > x1) {
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BetaDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BetaDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BetaDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BetaDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -114,6 +114,7 @@
}
/** {@inheritDoc} */
+ @Override
public double inverseCumulativeProbability(double p) throws MathException {
if (p == 0) {
return 0;
@@ -125,16 +126,19 @@
}
/** {@inheritDoc} */
+ @Override
protected double getInitialDomain(double p) {
return p;
}
/** {@inheritDoc} */
+ @Override
protected double getDomainLowerBound(double p) {
return 0;
}
/** {@inheritDoc} */
+ @Override
protected double getDomainUpperBound(double p) {
return 1;
}
@@ -151,6 +155,7 @@
}
/** {@inheritDoc} */
+ @Override
public double cumulativeProbability(double x0, double x1) throws MathException {
return cumulativeProbability(x1) - cumulativeProbability(x0);
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -102,6 +102,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected int getDomainLowerBound(double p) {
return -1;
}
@@ -114,6 +115,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected int getDomainUpperBound(double p) {
return getNumberOfTrials();
}
@@ -125,6 +127,7 @@
* @throws MathException if the cumulative probability can not be
* computed due to convergence or other numerical errors.
*/
+ @Override
public double cumulativeProbability(int x) throws MathException {
double ret;
if (x < 0) {
@@ -174,6 +177,7 @@
* computed due to convergence or other numerical errors.
* @throws IllegalArgumentException if p < 0 or p > 1
*/
+ @Override
public int inverseCumulativeProbability(final double p) throws MathException {
// handle extreme values explicitly
if (p == 0) {
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -94,6 +94,7 @@
* @throws IllegalArgumentException if <code>p</code> is not a valid
* probability.
*/
+ @Override
public double inverseCumulativeProbability(double p) {
double ret;
if (p < 0.0 || p > 1.0) {
@@ -139,6 +140,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected double getDomainLowerBound(double p) {
double ret;
@@ -160,6 +162,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected double getDomainUpperBound(double p) {
double ret;
@@ -180,6 +183,7 @@
* @param p the desired probability for the critical value
* @return initial domain value
*/
+ @Override
protected double getInitialDomain(double p) {
double ret;
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -105,6 +105,7 @@
* @throws IllegalArgumentException if <code>p</code> is not a valid
* probability.
*/
+ @Override
public double inverseCumulativeProbability(final double p)
throws MathException {
if (p == 0) {
@@ -125,6 +126,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected double getDomainLowerBound(double p) {
return Double.MIN_VALUE * getGamma().getBeta();
}
@@ -138,6 +140,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected double getDomainUpperBound(double p) {
// NOTE: chi squared is skewed to the left
// NOTE: therefore, P(X < μ) > .5
@@ -163,6 +166,7 @@
* @param p the desired probability for the critical value
* @return initial domain value
*/
+ @Override
protected double getInitialDomain(double p) {
// NOTE: chi squared is skewed to the left
// NOTE: therefore, P(X < μ) > .5
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -113,6 +113,7 @@
* computed due to convergence or other numerical errors.
* @throws IllegalArgumentException if p < 0 or p > 1.
*/
+ @Override
public double inverseCumulativeProbability(double p) throws MathException {
double ret;
@@ -136,6 +137,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected double getDomainLowerBound(double p) {
return 0;
}
@@ -148,6 +150,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected double getDomainUpperBound(double p) {
// NOTE: exponential is skewed to the left
// NOTE: therefore, P(X < μ) > .5
@@ -168,6 +171,7 @@
* @param p the desired probability for the critical value
* @return initial domain value
*/
+ @Override
protected double getInitialDomain(double p) {
// TODO: try to improve on this estimate
// TODO: what should really happen here is not derive from AbstractContinuousDistribution
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/FDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/FDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/FDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/FDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -95,6 +95,7 @@
* @throws IllegalArgumentException if <code>p</code> is not a valid
* probability.
*/
+ @Override
public double inverseCumulativeProbability(final double p)
throws MathException {
if (p == 0) {
@@ -115,6 +116,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected double getDomainLowerBound(double p) {
return 0.0;
}
@@ -128,6 +130,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected double getDomainUpperBound(double p) {
return Double.MAX_VALUE;
}
@@ -140,6 +143,7 @@
* @param p the desired probability for the critical value
* @return initial domain value
*/
+ @Override
protected double getInitialDomain(double p) {
double ret = 1.0;
double d = getDenominatorDegreesOfFreedom();
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/GammaDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/GammaDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/GammaDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -91,6 +91,7 @@
* @throws IllegalArgumentException if <code>p</code> is not a valid
* probability.
*/
+ @Override
public double inverseCumulativeProbability(final double p)
throws MathException {
if (p == 0) {
@@ -162,6 +163,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected double getDomainLowerBound(double p) {
// TODO: try to improve on this estimate
return Double.MIN_VALUE;
@@ -176,6 +178,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected double getDomainUpperBound(double p) {
// TODO: try to improve on this estimate
// NOTE: gamma is skewed to the left
@@ -202,6 +205,7 @@
* @param p the desired probability for the critical value
* @return initial domain value
*/
+ @Override
protected double getInitialDomain(double p) {
// TODO: try to improve on this estimate
// Gamma is skewed to the left, therefore, P(X < μ) > .5
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -71,6 +71,7 @@
* @param x the value at which the PDF is evaluated.
* @return PDF for this distribution.
*/
+ @Override
public double cumulativeProbability(int x) {
double ret;
@@ -113,6 +114,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected int getDomainLowerBound(double p) {
return getLowerDomain(getPopulationSize(), getNumberOfSuccesses(),
getSampleSize());
@@ -126,6 +128,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected int getDomainUpperBound(double p) {
return getUpperDomain(getSampleSize(), getNumberOfSuccesses());
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -148,6 +148,7 @@
* @throws IllegalArgumentException if <code>p</code> is not a valid
* probability.
*/
+ @Override
public double inverseCumulativeProbability(final double p)
throws MathException {
if (p == 0) {
@@ -168,6 +169,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected double getDomainLowerBound(double p) {
double ret;
@@ -189,6 +191,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected double getDomainUpperBound(double p) {
double ret;
@@ -209,6 +212,7 @@
* @param p the desired probability for the critical value
* @return initial domain value
*/
+ @Override
protected double getInitialDomain(double p) {
double ret;
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PascalDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PascalDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PascalDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PascalDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -102,6 +102,7 @@
* @return domain value lower bound, i.e. P(X < <i>lower bound</i>) <
* <code>p</code>
*/
+ @Override
protected int getDomainLowerBound(double p) {
return -1;
}
@@ -113,6 +114,7 @@
* @return domain value upper bound, i.e. P(X < <i>upper bound</i>) >
* <code>p</code>
*/
+ @Override
protected int getDomainUpperBound(double p) {
// use MAX - 1 because MAX causes loop
return Integer.MAX_VALUE - 1;
@@ -125,6 +127,7 @@
* @throws MathException if the cumulative probability can not be computed
* due to convergence or other numerical errors
*/
+ @Override
public double cumulativeProbability(int x) throws MathException {
double ret;
if (x < 0) {
@@ -166,6 +169,7 @@
* computed due to convergence or other numerical errors.
* @throws IllegalArgumentException if p < 0 or p > 1
*/
+ @Override
public int inverseCumulativeProbability(final double p)
throws MathException {
int ret;
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -118,6 +118,7 @@
* @throws MathException if the cumulative probability can not be
* computed due to convergence or other numerical errors.
*/
+ @Override
public double cumulativeProbability(int x) throws MathException {
if (x < 0) {
return 0;
@@ -154,6 +155,7 @@
* @param p the desired probability for the critical value
* @return domain lower bound
*/
+ @Override
protected int getDomainLowerBound(double p) {
return 0;
}
@@ -166,6 +168,7 @@
* @param p the desired probability for the critical value
* @return domain upper bound
*/
+ @Override
protected int getDomainUpperBound(double p) {
return Integer.MAX_VALUE;
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/TDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/TDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/TDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/TDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -106,6 +106,7 @@
* @throws IllegalArgumentException if <code>p</code> is not a valid
* probability.
*/
+ @Override
public double inverseCumulativeProbability(final double p)
throws MathException {
if (p == 0) {
@@ -126,6 +127,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected double getDomainLowerBound(double p) {
return -Double.MAX_VALUE;
}
@@ -139,6 +141,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected double getDomainUpperBound(double p) {
return Double.MAX_VALUE;
}
@@ -151,6 +154,7 @@
* @param p the desired probability for the critical value
* @return initial domain value
*/
+ @Override
protected double getInitialDomain(double p) {
return 0.0;
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -93,6 +93,7 @@
* @throws IllegalArgumentException if <code>p</code> is not a valid
* probability.
*/
+ @Override
public double inverseCumulativeProbability(double p) {
double ret;
if (p < 0.0 || p > 1.0) {
@@ -141,6 +142,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected double getDomainLowerBound(double p) {
return 0.0;
}
@@ -154,6 +156,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected double getDomainUpperBound(double p) {
return Double.MAX_VALUE;
}
@@ -166,6 +169,7 @@
* @param p the desired probability for the critical value
* @return initial domain value
*/
+ @Override
protected double getInitialDomain(double p) {
// use median
return Math.pow(getScale() * Math.log(2.0), 1.0 / getShape());
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java Sun Apr 5 14:20:18 2009
@@ -128,6 +128,7 @@
* @param x the value at which the PDF is evaluated.
* @return Zipf distribution function evaluated at x
*/
+ @Override
public double cumulativeProbability(final int x) {
if (x <= 0) {
return 0.0;
@@ -147,6 +148,7 @@
* @return domain value lower bound, i.e.
* P(X < <i>lower bound</i>) < <code>p</code>
*/
+ @Override
protected int getDomainLowerBound(final double p) {
return 0;
}
@@ -159,6 +161,7 @@
* @return domain value upper bound, i.e.
* P(X < <i>upper bound</i>) > <code>p</code>
*/
+ @Override
protected int getDomainUpperBound(final double p) {
return numberOfElements;
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java Sun Apr 5 14:20:18 2009
@@ -155,6 +155,7 @@
* @see EstimationProblem
*
*/
+ @Override
public void estimate(EstimationProblem problem)
throws EstimationException {
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java Sun Apr 5 14:20:18 2009
@@ -199,6 +199,7 @@
* @see #setParRelativeTolerance
* @see #setOrthoTolerance
*/
+ @Override
public void estimate(EstimationProblem problem)
throws EstimationException {
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/AbstractFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/AbstractFormat.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/AbstractFormat.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/AbstractFormat.java Sun Apr 5 14:20:18 2009
@@ -182,6 +182,7 @@
* @return a reference to the appended buffer
* @see {@link #format(Object, StringBuffer, FieldPosition)}
*/
+ @Override
public StringBuffer format(final double value,
final StringBuffer buffer, final FieldPosition position) {
return format(Double.valueOf(value), buffer, position);
@@ -198,6 +199,7 @@
* @return a reference to the appended buffer
* @see {@link #format(Object, StringBuffer, FieldPosition)}
*/
+ @Override
public StringBuffer format(final long value,
final StringBuffer buffer, final FieldPosition position) {
return format(Long.valueOf(value), buffer, position);
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionFormat.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionFormat.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionFormat.java Sun Apr 5 14:20:18 2009
@@ -160,6 +160,7 @@
* @see java.text.Format#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)
* @throws IllegalArgumentException is <code>obj</code> is not a valid type.
*/
+ @Override
public StringBuffer format(final Object obj,
final StringBuffer toAppendTo, final FieldPosition pos) {
@@ -186,6 +187,7 @@
* @exception ParseException if the beginning of the specified string
* cannot be parsed.
*/
+ @Override
public BigFraction parse(final String source) throws ParseException {
final ParsePosition parsePosition = new ParsePosition(0);
final BigFraction result = parse(source, parsePosition);
@@ -204,6 +206,7 @@
* @param pos input/ouput parsing parameter.
* @return the parsed {@link BigFraction} object.
*/
+ @Override
public BigFraction parse(final String source, final ParsePosition pos) {
final int initialIndex = pos.getIndex();
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java Sun Apr 5 14:20:18 2009
@@ -304,6 +304,7 @@
* the numerator divided by denominator.
* @return the fraction as a <tt>double</tt>
*/
+ @Override
public double doubleValue() {
return (double)numerator / (double)denominator;
}
@@ -317,6 +318,7 @@
* <tt>null</tt>, not an instance of {@link Fraction}, or not equal
* to this fraction instance.
*/
+ @Override
public boolean equals(Object other) {
boolean ret;
@@ -345,6 +347,7 @@
* the numerator divided by denominator.
* @return the fraction as a <tt>float</tt>
*/
+ @Override
public float floatValue() {
return (float)doubleValue();
}
@@ -369,6 +372,7 @@
* Gets a hashCode for the fraction.
* @return a hash code value for this object
*/
+ @Override
public int hashCode() {
return 37 * (37 * 17 + getNumerator()) + getDenominator();
}
@@ -378,6 +382,7 @@
* of the fraction.
* @return the whole number fraction part
*/
+ @Override
public int intValue() {
return (int)doubleValue();
}
@@ -387,6 +392,7 @@
* of the fraction.
* @return the whole number fraction part
*/
+ @Override
public long longValue() {
return (long)doubleValue();
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java Sun Apr 5 14:20:18 2009
@@ -167,6 +167,7 @@
* @see java.text.Format#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)
* @throws IllegalArgumentException is <code>obj</code> is not a valid type.
*/
+ @Override
public StringBuffer format(final Object obj,
final StringBuffer toAppendTo, final FieldPosition pos) {
StringBuffer ret = null;
@@ -197,6 +198,7 @@
* @exception ParseException if the beginning of the specified string
* cannot be parsed.
*/
+ @Override
public Fraction parse(final String source) throws ParseException {
final ParsePosition parsePosition = new ParsePosition(0);
final Fraction result = parse(source, parsePosition);
@@ -215,6 +217,7 @@
* @param pos input/ouput parsing parameter.
* @return the parsed {@link Fraction} object.
*/
+ @Override
public Fraction parse(final String source, final ParsePosition pos) {
final int initialIndex = pos.getIndex();
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperBigFractionFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperBigFractionFormat.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperBigFractionFormat.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperBigFractionFormat.java Sun Apr 5 14:20:18 2009
@@ -84,6 +84,7 @@
* offsets of the alignment field
* @return the value passed in as toAppendTo.
*/
+ @Override
public StringBuffer format(final BigFraction fraction,
final StringBuffer toAppendTo, final FieldPosition pos) {
@@ -129,6 +130,7 @@
* @param pos input/ouput parsing parameter.
* @return the parsed {@link BigFraction} object.
*/
+ @Override
public BigFraction parse(final String source, final ParsePosition pos) {
// try to parse improper BigFraction
BigFraction ret = super.parse(source, pos);
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperFractionFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperFractionFormat.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperFractionFormat.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/ProperFractionFormat.java Sun Apr 5 14:20:18 2009
@@ -85,6 +85,7 @@
* offsets of the alignment field
* @return the value passed in as toAppendTo.
*/
+ @Override
public StringBuffer format(Fraction fraction, StringBuffer toAppendTo,
FieldPosition pos) {
@@ -129,6 +130,7 @@
* @param pos input/ouput parsing parameter.
* @return the parsed {@link Fraction} object.
*/
+ @Override
public Fraction parse(String source, ParsePosition pos) {
// try to parse improper fraction
Fraction ret = super.parse(source, pos);
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/RotationOrder.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/RotationOrder.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/RotationOrder.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/RotationOrder.java Sun Apr 5 14:20:18 2009
@@ -50,6 +50,7 @@
/** Get a string representation of the instance.
* @return a string representation of the instance (in fact, its name)
*/
+ @Override
public String toString() {
return name;
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java Sun Apr 5 14:20:18 2009
@@ -392,6 +392,7 @@
* not equal to this Vector3D instance
*
*/
+ @Override
public boolean equals(Object other) {
if (this == other) {
@@ -425,6 +426,7 @@
*
* @return a hash code value for this object
*/
+ @Override
public int hashCode() {
if (isNaN()) {
return 8;
@@ -485,6 +487,7 @@
/** Get a string representation of this vector.
* @return a string representation of this vector
*/
+ @Override
public String toString() {
return DEFAULT_FORMAT.format(this);
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3DFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3DFormat.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3DFormat.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3DFormat.java Sun Apr 5 14:20:18 2009
@@ -233,6 +233,7 @@
* @see java.text.Format#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)
* @throws IllegalArgumentException is <code>obj</code> is not a valid type.
*/
+ @Override
public StringBuffer format(Object obj, StringBuffer toAppendTo,
FieldPosition pos) {
@@ -332,6 +333,7 @@
* @return the parsed object.
* @see java.text.Format#parseObject(java.lang.String, java.text.ParsePosition)
*/
+ @Override
public Object parseObject(String source, ParsePosition pos) {
return parse(source, pos);
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/AbstractRealMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/AbstractRealMatrix.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/AbstractRealMatrix.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/AbstractRealMatrix.java Sun Apr 5 14:20:18 2009
@@ -42,6 +42,7 @@
/** Cached LU solver.
* @deprecated as of release 2.0, since all methods using this are deprecated
*/
+ @Deprecated
private DecompositionSolver lu;
/**
@@ -304,6 +305,7 @@
private static final long serialVersionUID = 4572851009041214720L;
/** {@inheritDoc} */
+ @Override
public double visit(final int row, final int column, final double value) {
return getEntry(selectedRows[row], selectedColumns[column]);
}
@@ -344,6 +346,7 @@
private int startColumn;
/** {@inheritDoc} */
+ @Override
public void start(final int rows, final int columns,
final int startRow, final int endRow,
final int startColumn, final int endColumn) {
@@ -352,6 +355,7 @@
}
/** {@inheritDoc} */
+ @Override
public void visit(final int row, final int column, final double value) {
destination[row - startRow][column - startColumn] = value;
}
@@ -625,6 +629,7 @@
private static final long serialVersionUID = 2482589609486637597L;
/** {@inheritDoc} */
+ @Override
public void visit(final int row, final int column, final double value) {
out.setEntry(column, row, value);
}
@@ -1004,6 +1009,7 @@
* Get a string representation for this matrix.
* @return a string representation for this matrix
*/
+ @Override
public String toString() {
final int nRows = getRowDimension();
final int nCols = getColumnDimension();
@@ -1039,6 +1045,7 @@
* @param object the object to test equality against.
* @return true if object equals this
*/
+ @Override
public boolean equals(final Object object) {
if (object == this ) {
return true;
@@ -1067,6 +1074,7 @@
*
* @return hashcode for matrix
*/
+ @Override
public int hashCode() {
int ret = 7;
final int nRows = getRowDimension();
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/BigMatrixImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/BigMatrixImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/BigMatrixImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/BigMatrixImpl.java Sun Apr 5 14:20:18 2009
@@ -1281,6 +1281,7 @@
* Get a string representation for this matrix.
* @return a string representation for this matrix
*/
+ @Override
public String toString() {
StringBuffer res = new StringBuffer();
res.append("BigMatrixImpl{");
@@ -1312,6 +1313,7 @@
* @param object the object to test equality against.
* @return true if object equals this
*/
+ @Override
public boolean equals(Object object) {
if (object == this ) {
return true;
@@ -1341,6 +1343,7 @@
*
* @return hashcode for matrix
*/
+ @Override
public int hashCode() {
int ret = 7;
final int nRows = getRowDimension();
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/DenseRealMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/DenseRealMatrix.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/DenseRealMatrix.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/DenseRealMatrix.java Sun Apr 5 14:20:18 2009
@@ -280,12 +280,14 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix createMatrix(final int rowDimension, final int columnDimension)
throws IllegalArgumentException {
return new DenseRealMatrix(rowDimension, columnDimension);
}
/** {@inheritDoc} */
+ @Override
public RealMatrix copy() {
// create an empty matrix
@@ -301,6 +303,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix add(final RealMatrix m)
throws IllegalArgumentException {
try {
@@ -371,6 +374,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix subtract(final RealMatrix m)
throws IllegalArgumentException {
try {
@@ -441,6 +445,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix scalarAdd(final double d)
throws IllegalArgumentException {
@@ -460,6 +465,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix scalarMultiply(final double d)
throws IllegalArgumentException {
@@ -479,6 +485,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix multiply(final RealMatrix m)
throws IllegalArgumentException {
try {
@@ -605,6 +612,7 @@
}
/** {@inheritDoc} */
+ @Override
public double[][] getData() {
final double[][] data = new double[getRowDimension()][getColumnDimension()];
@@ -634,6 +642,7 @@
}
/** {@inheritDoc} */
+ @Override
public double getNorm() {
final double[] colSums = new double[BLOCK_SIZE];
double maxColSum = 0;
@@ -659,6 +668,7 @@
}
/** {@inheritDoc} */
+ @Override
public double getFrobeniusNorm() {
double sum2 = 0;
for (int blockIndex = 0; blockIndex < blocks.length; ++blockIndex) {
@@ -670,6 +680,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix getSubMatrix(final int startRow, final int endRow,
final int startColumn, final int endColumn)
throws MatrixIndexException {
@@ -793,6 +804,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setSubMatrix(final double[][] subMatrix, final int row, final int column)
throws MatrixIndexException {
@@ -845,6 +857,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix getRowMatrix(final int row)
throws MatrixIndexException {
@@ -877,6 +890,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setRowMatrix(final int row, final RealMatrix matrix)
throws MatrixIndexException, InvalidMatrixException {
try {
@@ -934,6 +948,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix getColumnMatrix(final int column)
throws MatrixIndexException {
@@ -964,6 +979,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setColumnMatrix(final int column, final RealMatrix matrix)
throws MatrixIndexException, InvalidMatrixException {
try {
@@ -1017,8 +1033,9 @@
}
}
-
+
/** {@inheritDoc} */
+ @Override
public RealVector getRowVector(final int row)
throws MatrixIndexException {
@@ -1041,6 +1058,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setRowVector(final int row, final RealVector vector)
throws MatrixIndexException, InvalidMatrixException {
try {
@@ -1051,6 +1069,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealVector getColumnVector(final int column)
throws MatrixIndexException {
@@ -1075,6 +1094,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setColumnVector(final int column, final RealVector vector)
throws MatrixIndexException, InvalidMatrixException {
try {
@@ -1085,6 +1105,7 @@
}
/** {@inheritDoc} */
+ @Override
public double[] getRow(final int row)
throws MatrixIndexException {
@@ -1107,6 +1128,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setRow(final int row, final double[] array)
throws MatrixIndexException, InvalidMatrixException {
@@ -1132,6 +1154,7 @@
}
/** {@inheritDoc} */
+ @Override
public double[] getColumn(final int column)
throws MatrixIndexException {
@@ -1156,6 +1179,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setColumn(final int column, final double[] array)
throws MatrixIndexException, InvalidMatrixException {
@@ -1183,6 +1207,7 @@
}
/** {@inheritDoc} */
+ @Override
public double getEntry(final int row, final int column)
throws MatrixIndexException {
try {
@@ -1199,6 +1224,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setEntry(final int row, final int column, final double value)
throws MatrixIndexException {
try {
@@ -1215,6 +1241,7 @@
}
/** {@inheritDoc} */
+ @Override
public void addToEntry(final int row, final int column, final double increment)
throws MatrixIndexException {
try {
@@ -1231,6 +1258,7 @@
}
/** {@inheritDoc} */
+ @Override
public void multiplyEntry(final int row, final int column, final double factor)
throws MatrixIndexException {
try {
@@ -1247,6 +1275,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix transpose() {
final int nRows = getRowDimension();
@@ -1283,16 +1312,19 @@
}
/** {@inheritDoc} */
+ @Override
public int getRowDimension() {
return rows;
}
/** {@inheritDoc} */
+ @Override
public int getColumnDimension() {
return columns;
}
/** {@inheritDoc} */
+ @Override
public double[] operate(final double[] v)
throws IllegalArgumentException {
@@ -1335,6 +1367,7 @@
}
/** {@inheritDoc} */
+ @Override
public double[] preMultiply(final double[] v)
throws IllegalArgumentException {
@@ -1383,6 +1416,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInRowOrder(final RealMatrixChangingVisitor visitor)
throws MatrixVisitorException {
visitor.start(rows, columns, 0, rows - 1, 0, columns - 1);
@@ -1405,6 +1439,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInRowOrder(final RealMatrixPreservingVisitor visitor)
throws MatrixVisitorException {
visitor.start(rows, columns, 0, rows - 1, 0, columns - 1);
@@ -1427,6 +1462,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInRowOrder(final RealMatrixChangingVisitor visitor,
final int startRow, final int endRow,
final int startColumn, final int endColumn)
@@ -1454,6 +1490,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInRowOrder(final RealMatrixPreservingVisitor visitor,
final int startRow, final int endRow,
final int startColumn, final int endColumn)
@@ -1481,6 +1518,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInOptimizedOrder(final RealMatrixChangingVisitor visitor)
throws MatrixVisitorException {
visitor.start(rows, columns, 0, rows - 1, 0, columns - 1);
@@ -1502,6 +1540,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInOptimizedOrder(final RealMatrixPreservingVisitor visitor)
throws MatrixVisitorException {
visitor.start(rows, columns, 0, rows - 1, 0, columns - 1);
@@ -1523,6 +1562,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInOptimizedOrder(final RealMatrixChangingVisitor visitor,
final int startRow, final int endRow,
final int startColumn, final int endColumn)
@@ -1550,6 +1590,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInOptimizedOrder(final RealMatrixPreservingVisitor visitor,
final int startRow, final int endRow,
final int startColumn, final int endColumn)
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealMatrixImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealMatrixImpl.java?rev=762087&r1=762086&r2=762087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealMatrixImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/linear/RealMatrixImpl.java Sun Apr 5 14:20:18 2009
@@ -154,17 +154,20 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix createMatrix(final int rowDimension, final int columnDimension)
throws IllegalArgumentException {
return new RealMatrixImpl(rowDimension, columnDimension);
}
/** {@inheritDoc} */
+ @Override
public RealMatrix copy() {
return new RealMatrixImpl(copyOut(), false);
}
/** {@inheritDoc} */
+ @Override
public RealMatrix add(final RealMatrix m)
throws IllegalArgumentException {
try {
@@ -204,6 +207,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix subtract(final RealMatrix m)
throws IllegalArgumentException {
try {
@@ -243,6 +247,7 @@
}
/** {@inheritDoc} */
+ @Override
public RealMatrix multiply(final RealMatrix m)
throws IllegalArgumentException {
try {
@@ -286,6 +291,7 @@
}
/** {@inheritDoc} */
+ @Override
public double[][] getData() {
return copyOut();
}
@@ -302,6 +308,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setSubMatrix(final double[][] subMatrix, final int row, final int column)
throws MatrixIndexException {
if (data == null) {
@@ -340,6 +347,7 @@
}
/** {@inheritDoc} */
+ @Override
public double getEntry(final int row, final int column)
throws MatrixIndexException {
try {
@@ -352,6 +360,7 @@
}
/** {@inheritDoc} */
+ @Override
public void setEntry(final int row, final int column, final double value)
throws MatrixIndexException {
try {
@@ -364,6 +373,7 @@
}
/** {@inheritDoc} */
+ @Override
public void addToEntry(final int row, final int column, final double increment)
throws MatrixIndexException {
try {
@@ -376,6 +386,7 @@
}
/** {@inheritDoc} */
+ @Override
public void multiplyEntry(final int row, final int column, final double factor)
throws MatrixIndexException {
try {
@@ -388,16 +399,19 @@
}
/** {@inheritDoc} */
+ @Override
public int getRowDimension() {
return (data == null) ? 0 : data.length;
}
/** {@inheritDoc} */
+ @Override
public int getColumnDimension() {
return ((data == null) || (data[0] == null)) ? 0 : data[0].length;
}
/** {@inheritDoc} */
+ @Override
public double[] operate(final double[] v)
throws IllegalArgumentException {
final int nRows = this.getRowDimension();
@@ -420,6 +434,7 @@
}
/** {@inheritDoc} */
+ @Override
public double[] preMultiply(final double[] v)
throws IllegalArgumentException {
@@ -445,6 +460,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInRowOrder(final RealMatrixChangingVisitor visitor)
throws MatrixVisitorException {
final int rows = getRowDimension();
@@ -460,6 +476,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInRowOrder(final RealMatrixPreservingVisitor visitor)
throws MatrixVisitorException {
final int rows = getRowDimension();
@@ -475,6 +492,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInRowOrder(final RealMatrixChangingVisitor visitor,
final int startRow, final int endRow,
final int startColumn, final int endColumn)
@@ -492,6 +510,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInRowOrder(final RealMatrixPreservingVisitor visitor,
final int startRow, final int endRow,
final int startColumn, final int endColumn)
@@ -509,6 +528,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInColumnOrder(final RealMatrixChangingVisitor visitor)
throws MatrixVisitorException {
final int rows = getRowDimension();
@@ -524,6 +544,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInColumnOrder(final RealMatrixPreservingVisitor visitor)
throws MatrixVisitorException {
final int rows = getRowDimension();
@@ -538,6 +559,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInColumnOrder(final RealMatrixChangingVisitor visitor,
final int startRow, final int endRow,
final int startColumn, final int endColumn)
@@ -555,6 +577,7 @@
}
/** {@inheritDoc} */
+ @Override
public double walkInColumnOrder(final RealMatrixPreservingVisitor visitor,
final int startRow, final int endRow,
final int startColumn, final int endColumn)