diff --git a/LICENSE.txt b/LICENSE.txt
index 275e288fc..2e8e2d75f 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -212,7 +212,7 @@ are reproduced below.
===============================================================================
For the lmder, lmpar and qrsolv Fortran routine from minpack and translated in
the LevenbergMarquardtOptimizer class in package
-org.apache.commons.math.optimization.general
+org.apache.commons.math3.optimization.general
Original source copyright and license statement:
Minpack Copyright Notice (1999) University of Chicago. All rights reserved
@@ -270,7 +270,7 @@ POSSIBILITY OF SUCH LOSS OR DAMAGES.
Copyright and license statement for the odex Fortran routine developed by
E. Hairer and G. Wanner and translated in GraggBulirschStoerIntegrator class
-in package org.apache.commons.math.ode.nonstiff:
+in package org.apache.commons.math3.ode.nonstiff:
Copyright (c) 2004, Ernst Hairer
@@ -301,7 +301,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright and license statement for the original lapack fortran routines
translated in EigenDecompositionImpl class in package
-org.apache.commons.math.linear:
+org.apache.commons.math3.linear:
Copyright (c) 1992-2008 The University of Tennessee. All rights reserved.
@@ -342,7 +342,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright and license statement for the original Mersenne twister C
routines translated in MersenneTwister class in package
-org.apache.commons.math.random:
+org.apache.commons.math3.random:
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
All rights reserved.
diff --git a/NOTICE.txt b/NOTICE.txt
index d1f0fc0a3..0f5ce720b 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -6,8 +6,8 @@ The Apache Software Foundation (http://www.apache.org/).
===============================================================================
-The BracketFinder (package org.apache.commons.math.optimization.univariate)
-and PowellOptimizer (package org.apache.commons.math.optimization.general)
+The BracketFinder (package org.apache.commons.math3.optimization.univariate)
+and PowellOptimizer (package org.apache.commons.math3.optimization.general)
classes are based on the Python code in module "optimize.py" (version 0.5)
developed by Travis E. Oliphant for the SciPy library (http://www.scipy.org/)
Copyright © 2003-2009 SciPy Developers.
@@ -15,7 +15,7 @@ Copyright © 2003-2009 SciPy Developers.
The LinearConstraint, LinearObjectiveFunction, LinearOptimizer,
RelationShip, SimplexSolver and SimplexTableau classes in package
-org.apache.commons.math.optimization.linear include software developed by
+org.apache.commons.math3.optimization.linear include software developed by
Benjamin McCann (http://www.benmccann.com) and distributed with
the following copyright: Copyright 2009 Google Inc.
===============================================================================
@@ -24,26 +24,26 @@ This product includes software developed by the
University of Chicago, as Operator of Argonne National
Laboratory.
The LevenbergMarquardtOptimizer class in package
-org.apache.commons.math.optimization.general includes software
+org.apache.commons.math3.optimization.general includes software
translated from the lmder, lmpar and qrsolv Fortran routines
from the Minpack package
Minpack Copyright Notice (1999) University of Chicago. All rights reserved
===============================================================================
The GraggBulirschStoerIntegrator class in package
-org.apache.commons.math.ode.nonstiff includes software translated
+org.apache.commons.math3.ode.nonstiff includes software translated
from the odex Fortran routine developed by E. Hairer and G. Wanner.
Original source copyright:
Copyright (c) 2004, Ernst Hairer
===============================================================================
The EigenDecompositionImpl class in package
-org.apache.commons.math.linear includes software translated
+org.apache.commons.math3.linear includes software translated
from some LAPACK Fortran routines. Original source copyright:
Copyright (c) 1992-2008 The University of Tennessee. All rights reserved.
===============================================================================
-The MersenneTwister class in package org.apache.commons.math.random
+The MersenneTwister class in package org.apache.commons.math3.random
includes software translated from the 2002-01-26 version of
the Mersenne-Twister generator written in C by Makoto Matsumoto and Takuji
Nishimura. Original source copyright:
diff --git a/build.xml b/build.xml
index 7b0cbc393..d378cb2ba 100644
--- a/build.xml
+++ b/build.xml
@@ -46,7 +46,7 @@
ex-1
function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Floor.java b/src/main/java/org/apache/commons/math3/analysis/function/Floor.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Floor.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Floor.java
index 1337b9042..8e9a95496 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Floor.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Floor.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* {@code floor} function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Gaussian.java b/src/main/java/org/apache/commons/math3/analysis/function/Gaussian.java
similarity index 92%
rename from src/main/java/org/apache/commons/math/analysis/function/Gaussian.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Gaussian.java
index 3fa4b1d22..88f18ed2f 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Gaussian.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Gaussian.java
@@ -15,15 +15,15 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.analysis.ParametricUnivariateFunction;
-import org.apache.commons.math.exception.NotStrictlyPositiveException;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.analysis.ParametricUnivariateFunction;
+import org.apache.commons.math3.exception.NotStrictlyPositiveException;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.DimensionMismatchException;
+import org.apache.commons.math3.util.FastMath;
/**
*
diff --git a/src/main/java/org/apache/commons/math/analysis/function/HarmonicOscillator.java b/src/main/java/org/apache/commons/math3/analysis/function/HarmonicOscillator.java
similarity index 92%
rename from src/main/java/org/apache/commons/math/analysis/function/HarmonicOscillator.java
rename to src/main/java/org/apache/commons/math3/analysis/function/HarmonicOscillator.java
index a70c7893a..3a264d558 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/HarmonicOscillator.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/HarmonicOscillator.java
@@ -15,14 +15,14 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.analysis.ParametricUnivariateFunction;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.analysis.ParametricUnivariateFunction;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.DimensionMismatchException;
+import org.apache.commons.math3.util.FastMath;
/**
*
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Identity.java b/src/main/java/org/apache/commons/math3/analysis/function/Identity.java
similarity index 90%
rename from src/main/java/org/apache/commons/math/analysis/function/Identity.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Identity.java
index b63f812f3..cd51bbaf1 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Identity.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Identity.java
@@ -15,9 +15,9 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
/**
* Identity function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Inverse.java b/src/main/java/org/apache/commons/math3/analysis/function/Inverse.java
similarity index 87%
rename from src/main/java/org/apache/commons/math/analysis/function/Inverse.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Inverse.java
index 999a0b0e0..169799f3a 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Inverse.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Inverse.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
/**
* Inverse function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Log.java b/src/main/java/org/apache/commons/math3/analysis/function/Log.java
similarity index 84%
rename from src/main/java/org/apache/commons/math/analysis/function/Log.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Log.java
index b979a26d5..26d05db93 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Log.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Log.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Natural logarithm function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Log10.java b/src/main/java/org/apache/commons/math3/analysis/function/Log10.java
similarity index 85%
rename from src/main/java/org/apache/commons/math/analysis/function/Log10.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Log10.java
index bbbef8bde..4cb1230f5 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Log10.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Log10.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Base 10 logarithm function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Log1p.java b/src/main/java/org/apache/commons/math3/analysis/function/Log1p.java
similarity index 84%
rename from src/main/java/org/apache/commons/math/analysis/function/Log1p.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Log1p.java
index adc1b1091..298b0bfeb 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Log1p.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Log1p.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* log(1 + p)
function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Logistic.java b/src/main/java/org/apache/commons/math3/analysis/function/Logistic.java
similarity index 93%
rename from src/main/java/org/apache/commons/math/analysis/function/Logistic.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Logistic.java
index 8dab5485d..f7981b7d4 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Logistic.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Logistic.java
@@ -15,15 +15,15 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.analysis.ParametricUnivariateFunction;
-import org.apache.commons.math.exception.NotStrictlyPositiveException;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.analysis.ParametricUnivariateFunction;
+import org.apache.commons.math3.exception.NotStrictlyPositiveException;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.DimensionMismatchException;
+import org.apache.commons.math3.util.FastMath;
/**
*
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Logit.java b/src/main/java/org/apache/commons/math3/analysis/function/Logit.java
similarity index 90%
rename from src/main/java/org/apache/commons/math/analysis/function/Logit.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Logit.java
index e1d90aeab..1388c119f 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Logit.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Logit.java
@@ -15,15 +15,15 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.analysis.ParametricUnivariateFunction;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.OutOfRangeException;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.analysis.ParametricUnivariateFunction;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.DimensionMismatchException;
+import org.apache.commons.math3.exception.OutOfRangeException;
+import org.apache.commons.math3.util.FastMath;
/**
*
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Max.java b/src/main/java/org/apache/commons/math3/analysis/function/Max.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Max.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Max.java
index 19801fa73..3ec68ffc7 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Max.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Max.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.BivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.BivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Maximum function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Min.java b/src/main/java/org/apache/commons/math3/analysis/function/Min.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Min.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Min.java
index 12ab98fb3..3f691df97 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Min.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Min.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.BivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.BivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Minimum function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Minus.java b/src/main/java/org/apache/commons/math3/analysis/function/Minus.java
similarity index 90%
rename from src/main/java/org/apache/commons/math/analysis/function/Minus.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Minus.java
index e78a15c4f..12346b9eb 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Minus.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Minus.java
@@ -15,9 +15,9 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
/**
* Minus function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Multiply.java b/src/main/java/org/apache/commons/math3/analysis/function/Multiply.java
similarity index 90%
rename from src/main/java/org/apache/commons/math/analysis/function/Multiply.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Multiply.java
index 47c265308..291154508 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Multiply.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Multiply.java
@@ -15,9 +15,9 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.BivariateFunction;
+import org.apache.commons.math3.analysis.BivariateFunction;
/**
* Multiply the two operands.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Pow.java b/src/main/java/org/apache/commons/math3/analysis/function/Pow.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Pow.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Pow.java
index 101967516..7a1428b30 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Pow.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Pow.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.BivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.BivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Power function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Power.java b/src/main/java/org/apache/commons/math3/analysis/function/Power.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Power.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Power.java
index eaa1c083a..907cb7b7d 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Power.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Power.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Power function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Rint.java b/src/main/java/org/apache/commons/math3/analysis/function/Rint.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Rint.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Rint.java
index 37019e722..628152707 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Rint.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Rint.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* {@code rint} function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Sigmoid.java b/src/main/java/org/apache/commons/math3/analysis/function/Sigmoid.java
similarity index 92%
rename from src/main/java/org/apache/commons/math/analysis/function/Sigmoid.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Sigmoid.java
index 3b9799be2..3695697fe 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Sigmoid.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Sigmoid.java
@@ -15,14 +15,14 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.analysis.ParametricUnivariateFunction;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.analysis.ParametricUnivariateFunction;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.DimensionMismatchException;
+import org.apache.commons.math3.util.FastMath;
/**
*
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Signum.java b/src/main/java/org/apache/commons/math3/analysis/function/Signum.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Signum.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Signum.java
index 9f8e4dfbb..f39331545 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Signum.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Signum.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* {@code signum} function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Sin.java b/src/main/java/org/apache/commons/math3/analysis/function/Sin.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Sin.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Sin.java
index cd586ba97..8096e846a 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Sin.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Sin.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Sine function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Sinc.java b/src/main/java/org/apache/commons/math3/analysis/function/Sinc.java
similarity index 93%
rename from src/main/java/org/apache/commons/math/analysis/function/Sinc.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Sinc.java
index 1c69ce078..10634edfb 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Sinc.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Sinc.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Sinc function,
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Sinh.java b/src/main/java/org/apache/commons/math3/analysis/function/Sinh.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Sinh.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Sinh.java
index a4a8c61ce..93445f91f 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Sinh.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Sinh.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Hyperbolic sine function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Sqrt.java b/src/main/java/org/apache/commons/math3/analysis/function/Sqrt.java
similarity index 84%
rename from src/main/java/org/apache/commons/math/analysis/function/Sqrt.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Sqrt.java
index 558587161..e71980a5d 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Sqrt.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Sqrt.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Square-root function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/StepFunction.java b/src/main/java/org/apache/commons/math3/analysis/function/StepFunction.java
similarity index 87%
rename from src/main/java/org/apache/commons/math/analysis/function/StepFunction.java
rename to src/main/java/org/apache/commons/math3/analysis/function/StepFunction.java
index 0ee066cea..f06682f46 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/StepFunction.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/StepFunction.java
@@ -15,14 +15,14 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
import java.util.Arrays;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.NoDataException;
-import org.apache.commons.math.util.MathArrays;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.exception.DimensionMismatchException;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.NoDataException;
+import org.apache.commons.math3.util.MathArrays;
/**
*
@@ -50,7 +50,7 @@ public class StepFunction implements UnivariateFunction {
*
* @param x Domain values where the function changes value.
* @param y Values of the function.
- * @throws org.apache.commons.math.exception.NonMonotonicSequenceException
+ * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if the {@code x} array is not sorted in strictly increasing order.
* @throws NullArgumentException if {@code x} or {@code y} are {@code null}.
* @throws NoDataException if {@code x} or {@code y} are zero-length.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Subtract.java b/src/main/java/org/apache/commons/math3/analysis/function/Subtract.java
similarity index 90%
rename from src/main/java/org/apache/commons/math/analysis/function/Subtract.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Subtract.java
index 392ea11cd..01ee5211a 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Subtract.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Subtract.java
@@ -15,9 +15,9 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.BivariateFunction;
+import org.apache.commons.math3.analysis.BivariateFunction;
/**
* Subtract the second operand from the first.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Tan.java b/src/main/java/org/apache/commons/math3/analysis/function/Tan.java
similarity index 85%
rename from src/main/java/org/apache/commons/math/analysis/function/Tan.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Tan.java
index 8e4fc39f2..34b90a017 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Tan.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Tan.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Tangent function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Tanh.java b/src/main/java/org/apache/commons/math3/analysis/function/Tanh.java
similarity index 85%
rename from src/main/java/org/apache/commons/math/analysis/function/Tanh.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Tanh.java
index 43920365c..c9662e58f 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Tanh.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Tanh.java
@@ -15,11 +15,11 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* Hyperbolic tangent function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/Ulp.java b/src/main/java/org/apache/commons/math3/analysis/function/Ulp.java
similarity index 86%
rename from src/main/java/org/apache/commons/math/analysis/function/Ulp.java
rename to src/main/java/org/apache/commons/math3/analysis/function/Ulp.java
index 4740835bc..8f1399596 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/Ulp.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/Ulp.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.commons.math.analysis.function;
+package org.apache.commons.math3.analysis.function;
-import org.apache.commons.math.analysis.UnivariateFunction;
-import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math3.analysis.UnivariateFunction;
+import org.apache.commons.math3.util.FastMath;
/**
* {@code ulp} function.
diff --git a/src/main/java/org/apache/commons/math/analysis/function/package-info.java b/src/main/java/org/apache/commons/math3/analysis/function/package-info.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/analysis/function/package-info.java
rename to src/main/java/org/apache/commons/math3/analysis/function/package-info.java
index 148939c4a..cb24544a9 100644
--- a/src/main/java/org/apache/commons/math/analysis/function/package-info.java
+++ b/src/main/java/org/apache/commons/math3/analysis/function/package-info.java
@@ -23,4 +23,4 @@
*
* The field is linked to the number of digits and acts as a factory * for {@link Dfp} instances. *
- * @return {@link org.apache.commons.math.Field Field} (really a {@link DfpField}) to which the instance belongs + * @return {@link org.apache.commons.math3.Field Field} (really a {@link DfpField}) to which the instance belongs */ public DfpField getField() { return field; diff --git a/src/main/java/org/apache/commons/math/dfp/DfpDec.java b/src/main/java/org/apache/commons/math3/dfp/DfpDec.java similarity index 99% rename from src/main/java/org/apache/commons/math/dfp/DfpDec.java rename to src/main/java/org/apache/commons/math3/dfp/DfpDec.java index 2a13ddbfc..fb4656436 100644 --- a/src/main/java/org/apache/commons/math/dfp/DfpDec.java +++ b/src/main/java/org/apache/commons/math3/dfp/DfpDec.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.dfp; +package org.apache.commons.math3.dfp; /** Subclass of {@link Dfp} which hides the radix-10000 artifacts of the superclass. * This should give outward appearances of being a decimal number with DIGITS*4-3 diff --git a/src/main/java/org/apache/commons/math/dfp/DfpField.java b/src/main/java/org/apache/commons/math3/dfp/DfpField.java similarity index 99% rename from src/main/java/org/apache/commons/math/dfp/DfpField.java rename to src/main/java/org/apache/commons/math3/dfp/DfpField.java index 853c8d4cb..860b27753 100644 --- a/src/main/java/org/apache/commons/math/dfp/DfpField.java +++ b/src/main/java/org/apache/commons/math3/dfp/DfpField.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.dfp; +package org.apache.commons.math3.dfp; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; /** Field for Decimal floating point instances. * @version $Id$ diff --git a/src/main/java/org/apache/commons/math/dfp/DfpMath.java b/src/main/java/org/apache/commons/math3/dfp/DfpMath.java similarity index 99% rename from src/main/java/org/apache/commons/math/dfp/DfpMath.java rename to src/main/java/org/apache/commons/math3/dfp/DfpMath.java index e3ccb24ae..bc36b9796 100644 --- a/src/main/java/org/apache/commons/math/dfp/DfpMath.java +++ b/src/main/java/org/apache/commons/math3/dfp/DfpMath.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.dfp; +package org.apache.commons.math3.dfp; /** Mathematical routines for use with {@link Dfp}. * The constants are defined in {@link DfpField} diff --git a/src/main/java/org/apache/commons/math/dfp/UnivariateDfpFunction.java b/src/main/java/org/apache/commons/math3/dfp/UnivariateDfpFunction.java similarity index 97% rename from src/main/java/org/apache/commons/math/dfp/UnivariateDfpFunction.java rename to src/main/java/org/apache/commons/math3/dfp/UnivariateDfpFunction.java index eb0949b72..99fd5678f 100644 --- a/src/main/java/org/apache/commons/math/dfp/UnivariateDfpFunction.java +++ b/src/main/java/org/apache/commons/math3/dfp/UnivariateDfpFunction.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.dfp; +package org.apache.commons.math3.dfp; /** * An interface representing a univariate {@link Dfp} function. diff --git a/src/main/java/org/apache/commons/math/dfp/package-info.java b/src/main/java/org/apache/commons/math3/dfp/package-info.java similarity index 99% rename from src/main/java/org/apache/commons/math/dfp/package-info.java rename to src/main/java/org/apache/commons/math3/dfp/package-info.java index 45d69605c..42a4b4829 100644 --- a/src/main/java/org/apache/commons/math/dfp/package-info.java +++ b/src/main/java/org/apache/commons/math3/dfp/package-info.java @@ -85,4 +85,4 @@ * this can be rendered invisible by a subclass. * */ -package org.apache.commons.math.dfp; +package org.apache.commons.math3.dfp; diff --git a/src/main/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java b/src/main/java/org/apache/commons/math3/distribution/AbstractIntegerDistribution.java similarity index 93% rename from src/main/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/AbstractIntegerDistribution.java index 7f87f3664..24d8635b5 100644 --- a/src/main/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/AbstractIntegerDistribution.java @@ -14,17 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; import java.io.Serializable; -import org.apache.commons.math.exception.MathInternalError; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.random.RandomDataImpl; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathInternalError; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.random.RandomDataImpl; +import org.apache.commons.math3.util.FastMath; /** * Base class for integer-valued discrete distributions. Default diff --git a/src/main/java/org/apache/commons/math/distribution/AbstractRealDistribution.java b/src/main/java/org/apache/commons/math3/distribution/AbstractRealDistribution.java similarity index 93% rename from src/main/java/org/apache/commons/math/distribution/AbstractRealDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/AbstractRealDistribution.java index 07686b603..f3872b960 100644 --- a/src/main/java/org/apache/commons/math/distribution/AbstractRealDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/AbstractRealDistribution.java @@ -14,18 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; import java.io.Serializable; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.analysis.solvers.UnivariateSolverUtils; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.random.RandomDataImpl; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.analysis.solvers.UnivariateSolverUtils; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.random.RandomDataImpl; +import org.apache.commons.math3.util.FastMath; /** * Base class for probability distributions on the reals. diff --git a/src/main/java/org/apache/commons/math/distribution/BetaDistribution.java b/src/main/java/org/apache/commons/math3/distribution/BetaDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/BetaDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/BetaDistribution.java index e43eac6fe..806ffb987 100644 --- a/src/main/java/org/apache/commons/math/distribution/BetaDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/BetaDistribution.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Gamma; -import org.apache.commons.math.special.Beta; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Gamma; +import org.apache.commons.math3.special.Beta; +import org.apache.commons.math3.util.FastMath; /** * Implements the Beta distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/BinomialDistribution.java b/src/main/java/org/apache/commons/math3/distribution/BinomialDistribution.java similarity index 93% rename from src/main/java/org/apache/commons/math/distribution/BinomialDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/BinomialDistribution.java index 906592b56..505b93f3b 100644 --- a/src/main/java/org/apache/commons/math/distribution/BinomialDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/BinomialDistribution.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.NotPositiveException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Beta; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.NotPositiveException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Beta; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the binomial distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/CauchyDistribution.java b/src/main/java/org/apache/commons/math3/distribution/CauchyDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/CauchyDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/CauchyDistribution.java index f62bb5bd2..c470d1cb8 100644 --- a/src/main/java/org/apache/commons/math/distribution/CauchyDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/CauchyDistribution.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the Cauchy distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/ChiSquaredDistribution.java b/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java similarity index 99% rename from src/main/java/org/apache/commons/math/distribution/ChiSquaredDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java index 771b44493..647d22645 100644 --- a/src/main/java/org/apache/commons/math/distribution/ChiSquaredDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; /** * Implementation of the chi-squared distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/ExponentialDistribution.java b/src/main/java/org/apache/commons/math3/distribution/ExponentialDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/ExponentialDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/ExponentialDistribution.java index 6edcb5a39..31feeebee 100644 --- a/src/main/java/org/apache/commons/math/distribution/ExponentialDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/ExponentialDistribution.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the exponential distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/FDistribution.java b/src/main/java/org/apache/commons/math3/distribution/FDistribution.java similarity index 97% rename from src/main/java/org/apache/commons/math/distribution/FDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/FDistribution.java index 6680aab58..7592bfca7 100644 --- a/src/main/java/org/apache/commons/math/distribution/FDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/FDistribution.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Beta; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Beta; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the F-distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/GammaDistribution.java b/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/GammaDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java index 12a6029d4..5f61a2333 100644 --- a/src/main/java/org/apache/commons/math/distribution/GammaDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Gamma; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Gamma; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the Gamma distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/HypergeometricDistribution.java b/src/main/java/org/apache/commons/math3/distribution/HypergeometricDistribution.java similarity index 96% rename from src/main/java/org/apache/commons/math/distribution/HypergeometricDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/HypergeometricDistribution.java index 0217c9651..aa187545a 100644 --- a/src/main/java/org/apache/commons/math/distribution/HypergeometricDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/HypergeometricDistribution.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotPositiveException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.ArithmeticUtils; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotPositiveException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.ArithmeticUtils; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the hypergeometric distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/IntegerDistribution.java b/src/main/java/org/apache/commons/math3/distribution/IntegerDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/IntegerDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/IntegerDistribution.java index c18d38144..de2ebdb7c 100644 --- a/src/main/java/org/apache/commons/math/distribution/IntegerDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/IntegerDistribution.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.OutOfRangeException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.OutOfRangeException; /** * Interface for distributions on the integers. @@ -148,7 +148,7 @@ public interface IntegerDistribution { * * @param sampleSize the number of random values to generate * @return an array representing the random sample - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if {@code sampleSize} is not positive * @since 3.0 */ diff --git a/src/main/java/org/apache/commons/math/distribution/KolmogorovSmirnovDistribution.java b/src/main/java/org/apache/commons/math3/distribution/KolmogorovSmirnovDistribution.java similarity index 89% rename from src/main/java/org/apache/commons/math/distribution/KolmogorovSmirnovDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/KolmogorovSmirnovDistribution.java index 6e901c4c9..52748aa15 100644 --- a/src/main/java/org/apache/commons/math/distribution/KolmogorovSmirnovDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/KolmogorovSmirnovDistribution.java @@ -15,22 +15,22 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; import java.io.Serializable; import java.math.BigDecimal; -import org.apache.commons.math.exception.MathArithmeticException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.fraction.BigFraction; -import org.apache.commons.math.fraction.BigFractionField; -import org.apache.commons.math.fraction.FractionConversionException; -import org.apache.commons.math.linear.Array2DRowFieldMatrix; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.FieldMatrix; -import org.apache.commons.math.linear.RealMatrix; +import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.fraction.BigFraction; +import org.apache.commons.math3.fraction.BigFractionField; +import org.apache.commons.math3.fraction.FractionConversionException; +import org.apache.commons.math3.linear.Array2DRowFieldMatrix; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.FieldMatrix; +import org.apache.commons.math3.linear.RealMatrix; /** * Implementation of the Kolmogorov-Smirnov distribution. @@ -96,12 +96,12 @@ public class KolmogorovSmirnovDistribution implements Serializable { * exact as with * {@link KolmogorovSmirnovDistribution#cdfExact(double)} because * calculations are based on {@code double} rather than - * {@link org.apache.commons.math.fraction.BigFraction}. + * {@link org.apache.commons.math3.fraction.BigFraction}. * * @param d statistic * @return the two-sided probability of {@code P(D_n < d)} * @throws MathArithmeticException if algorithm fails to convert {@code h} - * to a {@link org.apache.commons.math.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math3.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -121,7 +121,7 @@ public class KolmogorovSmirnovDistribution implements Serializable { * @param d statistic * @return the two-sided probability of {@code P(D_n < d)} * @throws MathArithmeticException if algorithm fails to convert {@code h} - * to a {@link org.apache.commons.math.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math3.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -135,14 +135,14 @@ public class KolmogorovSmirnovDistribution implements Serializable { * * @param d statistic * @param exact whether the probability should be calculated exact using - * {@link org.apache.commons.math.fraction.BigFraction} everywhere at the + * {@link org.apache.commons.math3.fraction.BigFraction} everywhere at the * expense of very slow execution time, or if {@code double} should be used * convenient places to gain speed. Almost never choose {@code true} in real * applications unless you are very sure; {@code true} is almost solely for * verification purposes. * @return the two-sided probability of {@code P(D_n < d)} * @throws MathArithmeticException if algorithm fails to convert {@code h} - * to a {@link org.apache.commons.math.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math3.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -181,13 +181,13 @@ public class KolmogorovSmirnovDistribution implements Serializable { /** * Calculates the exact value of {@code P(D_n < d)} using method described - * in [1] and {@link org.apache.commons.math.fraction.BigFraction} (see + * in [1] and {@link org.apache.commons.math3.fraction.BigFraction} (see * above). * * @param d statistic * @return the two-sided probability of {@code P(D_n < d)} * @throws MathArithmeticException if algorithm fails to convert {@code h} - * to a {@link org.apache.commons.math.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math3.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -219,7 +219,7 @@ public class KolmogorovSmirnovDistribution implements Serializable { * @param d statistic * @return the two-sided probability of {@code P(D_n < d)} * @throws MathArithmeticException if algorithm fails to convert {@code h} - * to a {@link org.apache.commons.math.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math3.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -259,7 +259,7 @@ public class KolmogorovSmirnovDistribution implements Serializable { * @return H matrix * @throws NumberIsTooLargeException if fractional part is greater than 1 * @throws FractionConversionException if algorithm fails to convert - * {@code h} to a {@link org.apache.commons.math.fraction.BigFraction} in + * {@code h} to a {@link org.apache.commons.math3.fraction.BigFraction} in * expressing {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ diff --git a/src/main/java/org/apache/commons/math/distribution/LogNormalDistribution.java b/src/main/java/org/apache/commons/math3/distribution/LogNormalDistribution.java similarity index 96% rename from src/main/java/org/apache/commons/math/distribution/LogNormalDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/LogNormalDistribution.java index d9c09e1a6..6e76f777f 100644 --- a/src/main/java/org/apache/commons/math/distribution/LogNormalDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/LogNormalDistribution.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Erf; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Erf; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the log-normal (gaussian) distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/NormalDistribution.java b/src/main/java/org/apache/commons/math3/distribution/NormalDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/NormalDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/NormalDistribution.java index d092aa322..510f122b2 100644 --- a/src/main/java/org/apache/commons/math/distribution/NormalDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/NormalDistribution.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Erf; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Erf; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the normal (gaussian) distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/PascalDistribution.java b/src/main/java/org/apache/commons/math3/distribution/PascalDistribution.java similarity index 94% rename from src/main/java/org/apache/commons/math/distribution/PascalDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/PascalDistribution.java index 57d79f714..6a7afe4f6 100644 --- a/src/main/java/org/apache/commons/math/distribution/PascalDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/PascalDistribution.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Beta; -import org.apache.commons.math.util.ArithmeticUtils; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Beta; +import org.apache.commons.math3.util.ArithmeticUtils; +import org.apache.commons.math3.util.FastMath; /** *diff --git a/src/main/java/org/apache/commons/math/distribution/PoissonDistribution.java b/src/main/java/org/apache/commons/math3/distribution/PoissonDistribution.java similarity index 96% rename from src/main/java/org/apache/commons/math/distribution/PoissonDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/PoissonDistribution.java index 0fafe65ee..9fe269cb5 100644 --- a/src/main/java/org/apache/commons/math/distribution/PoissonDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/PoissonDistribution.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Gamma; -import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Gamma; +import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the Poisson distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/RealDistribution.java b/src/main/java/org/apache/commons/math3/distribution/RealDistribution.java similarity index 96% rename from src/main/java/org/apache/commons/math/distribution/RealDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/RealDistribution.java index ca817633d..d7d5dd0b9 100644 --- a/src/main/java/org/apache/commons/math/distribution/RealDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/RealDistribution.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.OutOfRangeException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.OutOfRangeException; /** * Base interface for distributions on the reals. @@ -176,7 +176,7 @@ public interface RealDistribution { * * @param sampleSize the number of random values to generate * @return an array representing the random sample - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if {@code sampleSize} is not positive */ double[] sample(int sampleSize); diff --git a/src/main/java/org/apache/commons/math/distribution/SaddlePointExpansion.java b/src/main/java/org/apache/commons/math3/distribution/SaddlePointExpansion.java similarity index 97% rename from src/main/java/org/apache/commons/math/distribution/SaddlePointExpansion.java rename to src/main/java/org/apache/commons/math3/distribution/SaddlePointExpansion.java index 165de794b..e83336862 100644 --- a/src/main/java/org/apache/commons/math/distribution/SaddlePointExpansion.java +++ b/src/main/java/org/apache/commons/math3/distribution/SaddlePointExpansion.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.special.Gamma; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.MathUtils; +import org.apache.commons.math3.special.Gamma; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.MathUtils; /** *
diff --git a/src/main/java/org/apache/commons/math/distribution/TDistribution.java b/src/main/java/org/apache/commons/math3/distribution/TDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/TDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/TDistribution.java index 77829ab03..635b8ea9f 100644 --- a/src/main/java/org/apache/commons/math/distribution/TDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/TDistribution.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Beta; -import org.apache.commons.math.special.Gamma; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Beta; +import org.apache.commons.math3.special.Gamma; +import org.apache.commons.math3.util.FastMath; /** * Implementation of Student's t-distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/TriangularDistribution.java b/src/main/java/org/apache/commons/math3/distribution/TriangularDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/TriangularDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/TriangularDistribution.java index 4d04bd8bf..44482ed35 100644 --- a/src/main/java/org/apache/commons/math/distribution/TriangularDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/TriangularDistribution.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the triangular real distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/UniformIntegerDistribution.java b/src/main/java/org/apache/commons/math3/distribution/UniformIntegerDistribution.java similarity index 95% rename from src/main/java/org/apache/commons/math/distribution/UniformIntegerDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/UniformIntegerDistribution.java index a6dd99a70..29f5211d9 100644 --- a/src/main/java/org/apache/commons/math/distribution/UniformIntegerDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/UniformIntegerDistribution.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Implementation of the uniform integer distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/UniformRealDistribution.java b/src/main/java/org/apache/commons/math3/distribution/UniformRealDistribution.java similarity index 96% rename from src/main/java/org/apache/commons/math/distribution/UniformRealDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/UniformRealDistribution.java index 896389ae2..c99d09e23 100644 --- a/src/main/java/org/apache/commons/math/distribution/UniformRealDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/UniformRealDistribution.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Implementation of the uniform real distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/WeibullDistribution.java b/src/main/java/org/apache/commons/math3/distribution/WeibullDistribution.java similarity index 96% rename from src/main/java/org/apache/commons/math/distribution/WeibullDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/WeibullDistribution.java index 36b367b92..4b0904f50 100644 --- a/src/main/java/org/apache/commons/math/distribution/WeibullDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/WeibullDistribution.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.special.Gamma; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.special.Gamma; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the Weibull distribution. This implementation uses the diff --git a/src/main/java/org/apache/commons/math/distribution/ZipfDistribution.java b/src/main/java/org/apache/commons/math3/distribution/ZipfDistribution.java similarity index 96% rename from src/main/java/org/apache/commons/math/distribution/ZipfDistribution.java rename to src/main/java/org/apache/commons/math3/distribution/ZipfDistribution.java index dfa34417f..dfd29b72d 100644 --- a/src/main/java/org/apache/commons/math/distribution/ZipfDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/ZipfDistribution.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** * Implementation of the Zipf distribution. diff --git a/src/main/java/org/apache/commons/math/distribution/package-info.java b/src/main/java/org/apache/commons/math3/distribution/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/distribution/package-info.java rename to src/main/java/org/apache/commons/math3/distribution/package-info.java index e26ba37a5..4e111964d 100644 --- a/src/main/java/org/apache/commons/math/distribution/package-info.java +++ b/src/main/java/org/apache/commons/math3/distribution/package-info.java @@ -17,4 +17,4 @@ /** * Implementations of common discrete and continuous distributions. */ -package org.apache.commons.math.distribution; +package org.apache.commons.math3.distribution; diff --git a/src/main/java/org/apache/commons/math/exception/ConvergenceException.java b/src/main/java/org/apache/commons/math3/exception/ConvergenceException.java similarity index 90% rename from src/main/java/org/apache/commons/math/exception/ConvergenceException.java rename to src/main/java/org/apache/commons/math3/exception/ConvergenceException.java index d7a744c88..63c07845e 100644 --- a/src/main/java/org/apache/commons/math/exception/ConvergenceException.java +++ b/src/main/java/org/apache/commons/math3/exception/ConvergenceException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Error thrown when a numerical computation can not be performed because the diff --git a/src/main/java/org/apache/commons/math/exception/DimensionMismatchException.java b/src/main/java/org/apache/commons/math3/exception/DimensionMismatchException.java similarity index 92% rename from src/main/java/org/apache/commons/math/exception/DimensionMismatchException.java rename to src/main/java/org/apache/commons/math3/exception/DimensionMismatchException.java index 34e887d3e..675934a00 100644 --- a/src/main/java/org/apache/commons/math/exception/DimensionMismatchException.java +++ b/src/main/java/org/apache/commons/math3/exception/DimensionMismatchException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; /** * Exception to be thrown when two dimensions differ. diff --git a/src/main/java/org/apache/commons/math/exception/MathArithmeticException.java b/src/main/java/org/apache/commons/math3/exception/MathArithmeticException.java similarity index 88% rename from src/main/java/org/apache/commons/math/exception/MathArithmeticException.java rename to src/main/java/org/apache/commons/math3/exception/MathArithmeticException.java index 44e73c3af..fe19f7a20 100644 --- a/src/main/java/org/apache/commons/math/exception/MathArithmeticException.java +++ b/src/main/java/org/apache/commons/math3/exception/MathArithmeticException.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.util.ExceptionContext; -import org.apache.commons.math.exception.util.ExceptionContextProvider; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.ExceptionContext; +import org.apache.commons.math3.exception.util.ExceptionContextProvider; /** * Base class for arithmetic exceptions. diff --git a/src/main/java/org/apache/commons/math/exception/MathIllegalArgumentException.java b/src/main/java/org/apache/commons/math3/exception/MathIllegalArgumentException.java similarity index 89% rename from src/main/java/org/apache/commons/math/exception/MathIllegalArgumentException.java rename to src/main/java/org/apache/commons/math3/exception/MathIllegalArgumentException.java index f78687193..e1b85ee10 100644 --- a/src/main/java/org/apache/commons/math/exception/MathIllegalArgumentException.java +++ b/src/main/java/org/apache/commons/math3/exception/MathIllegalArgumentException.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.ExceptionContext; -import org.apache.commons.math.exception.util.ExceptionContextProvider; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.ExceptionContext; +import org.apache.commons.math3.exception.util.ExceptionContextProvider; /** * Base class for all preconditions violation exceptions. diff --git a/src/main/java/org/apache/commons/math/exception/MathIllegalNumberException.java b/src/main/java/org/apache/commons/math3/exception/MathIllegalNumberException.java similarity index 94% rename from src/main/java/org/apache/commons/math/exception/MathIllegalNumberException.java rename to src/main/java/org/apache/commons/math3/exception/MathIllegalNumberException.java index 7fd94ea9c..788102f21 100644 --- a/src/main/java/org/apache/commons/math/exception/MathIllegalNumberException.java +++ b/src/main/java/org/apache/commons/math3/exception/MathIllegalNumberException.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; +import org.apache.commons.math3.exception.util.Localizable; /** * Base class for exceptions raised by a wrong number. diff --git a/src/main/java/org/apache/commons/math/exception/MathIllegalStateException.java b/src/main/java/org/apache/commons/math3/exception/MathIllegalStateException.java similarity index 89% rename from src/main/java/org/apache/commons/math/exception/MathIllegalStateException.java rename to src/main/java/org/apache/commons/math3/exception/MathIllegalStateException.java index b11e32744..c2a8e4cd8 100644 --- a/src/main/java/org/apache/commons/math/exception/MathIllegalStateException.java +++ b/src/main/java/org/apache/commons/math3/exception/MathIllegalStateException.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.util.ExceptionContext; -import org.apache.commons.math.exception.util.ExceptionContextProvider; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.ExceptionContext; +import org.apache.commons.math3.exception.util.ExceptionContextProvider; /** * Base class for all exceptions that signal a mismatch between the diff --git a/src/main/java/org/apache/commons/math/exception/MathInternalError.java b/src/main/java/org/apache/commons/math3/exception/MathInternalError.java similarity index 91% rename from src/main/java/org/apache/commons/math/exception/MathInternalError.java rename to src/main/java/org/apache/commons/math3/exception/MathInternalError.java index 239bf8847..b3050d260 100644 --- a/src/main/java/org/apache/commons/math/exception/MathInternalError.java +++ b/src/main/java/org/apache/commons/math3/exception/MathInternalError.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception triggered when something that shouldn't happen does happen. diff --git a/src/main/java/org/apache/commons/math/exception/MathParseException.java b/src/main/java/org/apache/commons/math3/exception/MathParseException.java similarity index 91% rename from src/main/java/org/apache/commons/math/exception/MathParseException.java rename to src/main/java/org/apache/commons/math3/exception/MathParseException.java index 121f370be..4ee0b8760 100644 --- a/src/main/java/org/apache/commons/math/exception/MathParseException.java +++ b/src/main/java/org/apache/commons/math3/exception/MathParseException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.ExceptionContextProvider; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.ExceptionContextProvider; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Class to signal parse failures. diff --git a/src/main/java/org/apache/commons/math/exception/MathUnsupportedOperationException.java b/src/main/java/org/apache/commons/math3/exception/MathUnsupportedOperationException.java similarity index 87% rename from src/main/java/org/apache/commons/math/exception/MathUnsupportedOperationException.java rename to src/main/java/org/apache/commons/math3/exception/MathUnsupportedOperationException.java index 2d4268bd7..fdd6f60c8 100644 --- a/src/main/java/org/apache/commons/math/exception/MathUnsupportedOperationException.java +++ b/src/main/java/org/apache/commons/math3/exception/MathUnsupportedOperationException.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.util.ExceptionContext; -import org.apache.commons.math.exception.util.ExceptionContextProvider; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.ExceptionContext; +import org.apache.commons.math3.exception.util.ExceptionContextProvider; /** * Base class for all unsupported features. diff --git a/src/main/java/org/apache/commons/math/exception/MaxCountExceededException.java b/src/main/java/org/apache/commons/math3/exception/MaxCountExceededException.java similarity index 92% rename from src/main/java/org/apache/commons/math/exception/MaxCountExceededException.java rename to src/main/java/org/apache/commons/math3/exception/MaxCountExceededException.java index 7b6a91bc5..425b9662e 100644 --- a/src/main/java/org/apache/commons/math/exception/MaxCountExceededException.java +++ b/src/main/java/org/apache/commons/math3/exception/MaxCountExceededException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when some counter maximum value is exceeded. diff --git a/src/main/java/org/apache/commons/math/exception/MultiDimensionMismatchException.java b/src/main/java/org/apache/commons/math3/exception/MultiDimensionMismatchException.java similarity index 94% rename from src/main/java/org/apache/commons/math/exception/MultiDimensionMismatchException.java rename to src/main/java/org/apache/commons/math3/exception/MultiDimensionMismatchException.java index 5eaa5d64d..33bbc7cda 100644 --- a/src/main/java/org/apache/commons/math/exception/MultiDimensionMismatchException.java +++ b/src/main/java/org/apache/commons/math3/exception/MultiDimensionMismatchException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when two sets of dimensions differ. diff --git a/src/main/java/org/apache/commons/math/exception/NoBracketingException.java b/src/main/java/org/apache/commons/math3/exception/NoBracketingException.java similarity index 95% rename from src/main/java/org/apache/commons/math/exception/NoBracketingException.java rename to src/main/java/org/apache/commons/math3/exception/NoBracketingException.java index 89f515ebd..73152f3c6 100644 --- a/src/main/java/org/apache/commons/math/exception/NoBracketingException.java +++ b/src/main/java/org/apache/commons/math3/exception/NoBracketingException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when function values have the same sign at both diff --git a/src/main/java/org/apache/commons/math/exception/NoDataException.java b/src/main/java/org/apache/commons/math3/exception/NoDataException.java similarity index 89% rename from src/main/java/org/apache/commons/math/exception/NoDataException.java rename to src/main/java/org/apache/commons/math3/exception/NoDataException.java index 6e0e83040..cdc870b70 100644 --- a/src/main/java/org/apache/commons/math/exception/NoDataException.java +++ b/src/main/java/org/apache/commons/math3/exception/NoDataException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when the required data is missing. diff --git a/src/main/java/org/apache/commons/math/exception/NonMonotonicSequenceException.java b/src/main/java/org/apache/commons/math3/exception/NonMonotonicSequenceException.java similarity index 96% rename from src/main/java/org/apache/commons/math/exception/NonMonotonicSequenceException.java rename to src/main/java/org/apache/commons/math3/exception/NonMonotonicSequenceException.java index 3f276984c..79c60549d 100644 --- a/src/main/java/org/apache/commons/math/exception/NonMonotonicSequenceException.java +++ b/src/main/java/org/apache/commons/math3/exception/NonMonotonicSequenceException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.util.MathArrays; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when the a sequence of values is not monotonically diff --git a/src/main/java/org/apache/commons/math/exception/NotFiniteNumberException.java b/src/main/java/org/apache/commons/math3/exception/NotFiniteNumberException.java similarity index 91% rename from src/main/java/org/apache/commons/math/exception/NotFiniteNumberException.java rename to src/main/java/org/apache/commons/math3/exception/NotFiniteNumberException.java index 55ff5b230..5a60954da 100644 --- a/src/main/java/org/apache/commons/math/exception/NotFiniteNumberException.java +++ b/src/main/java/org/apache/commons/math3/exception/NotFiniteNumberException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when a number is not finite. diff --git a/src/main/java/org/apache/commons/math/exception/NotPositiveException.java b/src/main/java/org/apache/commons/math3/exception/NotPositiveException.java similarity index 93% rename from src/main/java/org/apache/commons/math/exception/NotPositiveException.java rename to src/main/java/org/apache/commons/math3/exception/NotPositiveException.java index bcc8b2811..604e7e991 100644 --- a/src/main/java/org/apache/commons/math/exception/NotPositiveException.java +++ b/src/main/java/org/apache/commons/math3/exception/NotPositiveException.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; +import org.apache.commons.math3.exception.util.Localizable; /** * Exception to be thrown when the argument is negative. diff --git a/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java b/src/main/java/org/apache/commons/math3/exception/NotStrictlyPositiveException.java similarity index 93% rename from src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java rename to src/main/java/org/apache/commons/math3/exception/NotStrictlyPositiveException.java index 1f928e6c8..11c595d8e 100644 --- a/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java +++ b/src/main/java/org/apache/commons/math3/exception/NotStrictlyPositiveException.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; +import org.apache.commons.math3.exception.util.Localizable; /** * Exception to be thrown when the argument is negative. diff --git a/src/main/java/org/apache/commons/math/exception/NullArgumentException.java b/src/main/java/org/apache/commons/math3/exception/NullArgumentException.java similarity index 91% rename from src/main/java/org/apache/commons/math/exception/NullArgumentException.java rename to src/main/java/org/apache/commons/math3/exception/NullArgumentException.java index 23309b636..4ddc1cb99 100644 --- a/src/main/java/org/apache/commons/math/exception/NullArgumentException.java +++ b/src/main/java/org/apache/commons/math3/exception/NullArgumentException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * All conditions checks that fail due to a {@code null} argument must throw diff --git a/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java b/src/main/java/org/apache/commons/math3/exception/NumberIsTooLargeException.java similarity index 94% rename from src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java rename to src/main/java/org/apache/commons/math3/exception/NumberIsTooLargeException.java index 094b092d9..8a5d645f6 100644 --- a/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java +++ b/src/main/java/org/apache/commons/math3/exception/NumberIsTooLargeException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when a number is too large. diff --git a/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java b/src/main/java/org/apache/commons/math3/exception/NumberIsTooSmallException.java similarity index 94% rename from src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java rename to src/main/java/org/apache/commons/math3/exception/NumberIsTooSmallException.java index c340356e3..d4746a294 100644 --- a/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java +++ b/src/main/java/org/apache/commons/math3/exception/NumberIsTooSmallException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when a number is too small. diff --git a/src/main/java/org/apache/commons/math/exception/OutOfRangeException.java b/src/main/java/org/apache/commons/math3/exception/OutOfRangeException.java similarity index 93% rename from src/main/java/org/apache/commons/math/exception/OutOfRangeException.java rename to src/main/java/org/apache/commons/math3/exception/OutOfRangeException.java index 12d4e1cf1..b8cb7b89c 100644 --- a/src/main/java/org/apache/commons/math/exception/OutOfRangeException.java +++ b/src/main/java/org/apache/commons/math3/exception/OutOfRangeException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; /** * Exception to be thrown when some argument is out of range. diff --git a/src/main/java/org/apache/commons/math/exception/TooManyEvaluationsException.java b/src/main/java/org/apache/commons/math3/exception/TooManyEvaluationsException.java similarity index 92% rename from src/main/java/org/apache/commons/math/exception/TooManyEvaluationsException.java rename to src/main/java/org/apache/commons/math3/exception/TooManyEvaluationsException.java index 196d3377a..39e32771c 100644 --- a/src/main/java/org/apache/commons/math/exception/TooManyEvaluationsException.java +++ b/src/main/java/org/apache/commons/math3/exception/TooManyEvaluationsException.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when the maximal number of evaluations is exceeded. diff --git a/src/main/java/org/apache/commons/math/exception/ZeroException.java b/src/main/java/org/apache/commons/math3/exception/ZeroException.java similarity index 89% rename from src/main/java/org/apache/commons/math/exception/ZeroException.java rename to src/main/java/org/apache/commons/math3/exception/ZeroException.java index d82d3836f..81d910046 100644 --- a/src/main/java/org/apache/commons/math/exception/ZeroException.java +++ b/src/main/java/org/apache/commons/math3/exception/ZeroException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when zero is provided where it is not allowed. diff --git a/src/main/java/org/apache/commons/math/exception/package-info.java b/src/main/java/org/apache/commons/math3/exception/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/exception/package-info.java rename to src/main/java/org/apache/commons/math3/exception/package-info.java index e42b8fe82..f6e7319e5 100644 --- a/src/main/java/org/apache/commons/math/exception/package-info.java +++ b/src/main/java/org/apache/commons/math3/exception/package-info.java @@ -20,4 +20,4 @@ * using simple java properties. * */ -package org.apache.commons.math.exception; +package org.apache.commons.math3.exception; diff --git a/src/main/java/org/apache/commons/math/exception/util/ArgUtils.java b/src/main/java/org/apache/commons/math3/exception/util/ArgUtils.java similarity index 97% rename from src/main/java/org/apache/commons/math/exception/util/ArgUtils.java rename to src/main/java/org/apache/commons/math3/exception/util/ArgUtils.java index acd2de4c8..f62009a24 100644 --- a/src/main/java/org/apache/commons/math/exception/util/ArgUtils.java +++ b/src/main/java/org/apache/commons/math3/exception/util/ArgUtils.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception.util; +package org.apache.commons.math3.exception.util; import java.util.List; import java.util.ArrayList; diff --git a/src/main/java/org/apache/commons/math/exception/util/DummyLocalizable.java b/src/main/java/org/apache/commons/math3/exception/util/DummyLocalizable.java similarity index 97% rename from src/main/java/org/apache/commons/math/exception/util/DummyLocalizable.java rename to src/main/java/org/apache/commons/math3/exception/util/DummyLocalizable.java index 07f5c01c6..e945d37e8 100644 --- a/src/main/java/org/apache/commons/math/exception/util/DummyLocalizable.java +++ b/src/main/java/org/apache/commons/math3/exception/util/DummyLocalizable.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception.util; +package org.apache.commons.math3.exception.util; import java.util.Locale; diff --git a/src/main/java/org/apache/commons/math/exception/util/ExceptionContext.java b/src/main/java/org/apache/commons/math3/exception/util/ExceptionContext.java similarity index 99% rename from src/main/java/org/apache/commons/math/exception/util/ExceptionContext.java rename to src/main/java/org/apache/commons/math3/exception/util/ExceptionContext.java index 7b42fff9e..ce7a8733a 100644 --- a/src/main/java/org/apache/commons/math/exception/util/ExceptionContext.java +++ b/src/main/java/org/apache/commons/math3/exception/util/ExceptionContext.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception.util; +package org.apache.commons.math3.exception.util; import java.util.List; import java.util.ArrayList; diff --git a/src/main/java/org/apache/commons/math/exception/util/ExceptionContextProvider.java b/src/main/java/org/apache/commons/math3/exception/util/ExceptionContextProvider.java similarity index 96% rename from src/main/java/org/apache/commons/math/exception/util/ExceptionContextProvider.java rename to src/main/java/org/apache/commons/math3/exception/util/ExceptionContextProvider.java index 8c3ed13a4..d408d14cb 100644 --- a/src/main/java/org/apache/commons/math/exception/util/ExceptionContextProvider.java +++ b/src/main/java/org/apache/commons/math3/exception/util/ExceptionContextProvider.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception.util; +package org.apache.commons.math3.exception.util; /** * Interface for accessing the context data structure stored in Commons Math diff --git a/src/main/java/org/apache/commons/math/exception/util/Localizable.java b/src/main/java/org/apache/commons/math3/exception/util/Localizable.java similarity index 96% rename from src/main/java/org/apache/commons/math/exception/util/Localizable.java rename to src/main/java/org/apache/commons/math3/exception/util/Localizable.java index fd37ffd9b..da6e4eece 100644 --- a/src/main/java/org/apache/commons/math/exception/util/Localizable.java +++ b/src/main/java/org/apache/commons/math3/exception/util/Localizable.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception.util; +package org.apache.commons.math3.exception.util; import java.io.Serializable; import java.util.Locale; diff --git a/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java b/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java similarity index 99% rename from src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java rename to src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java index 2a5436752..622c8b334 100644 --- a/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java +++ b/src/main/java/org/apache/commons/math3/exception/util/LocalizedFormats.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.exception.util; +package org.apache.commons.math3.exception.util; import java.util.Locale; import java.util.MissingResourceException; diff --git a/src/main/java/org/apache/commons/math/exception/util/package-info.java b/src/main/java/org/apache/commons/math3/exception/util/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/exception/util/package-info.java rename to src/main/java/org/apache/commons/math3/exception/util/package-info.java index 871bef298..6439a8dfe 100644 --- a/src/main/java/org/apache/commons/math/exception/util/package-info.java +++ b/src/main/java/org/apache/commons/math3/exception/util/package-info.java @@ -19,4 +19,4 @@ * Classes supporting exception localization. * */ -package org.apache.commons.math.exception.util; +package org.apache.commons.math3.exception.util; diff --git a/src/main/java/org/apache/commons/math/filter/DefaultMeasurementModel.java b/src/main/java/org/apache/commons/math3/filter/DefaultMeasurementModel.java similarity index 94% rename from src/main/java/org/apache/commons/math/filter/DefaultMeasurementModel.java rename to src/main/java/org/apache/commons/math3/filter/DefaultMeasurementModel.java index 7ce703c6e..286dd9626 100644 --- a/src/main/java/org/apache/commons/math/filter/DefaultMeasurementModel.java +++ b/src/main/java/org/apache/commons/math3/filter/DefaultMeasurementModel.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.filter; +package org.apache.commons.math3.filter; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.RealMatrix; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.RealMatrix; /** * Default implementation of a {@link MeasurementModel} for the use with a diff --git a/src/main/java/org/apache/commons/math/filter/DefaultProcessModel.java b/src/main/java/org/apache/commons/math3/filter/DefaultProcessModel.java similarity index 95% rename from src/main/java/org/apache/commons/math/filter/DefaultProcessModel.java rename to src/main/java/org/apache/commons/math3/filter/DefaultProcessModel.java index 38473f485..191e3274a 100644 --- a/src/main/java/org/apache/commons/math/filter/DefaultProcessModel.java +++ b/src/main/java/org/apache/commons/math3/filter/DefaultProcessModel.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.filter; +package org.apache.commons.math3.filter; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.ArrayRealVector; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.RealVector; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.ArrayRealVector; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.RealVector; /** * Default implementation of a {@link ProcessModel} for the use with a diff --git a/src/main/java/org/apache/commons/math/filter/KalmanFilter.java b/src/main/java/org/apache/commons/math3/filter/KalmanFilter.java similarity index 93% rename from src/main/java/org/apache/commons/math/filter/KalmanFilter.java rename to src/main/java/org/apache/commons/math3/filter/KalmanFilter.java index 4c70ddac7..10496ef22 100644 --- a/src/main/java/org/apache/commons/math/filter/KalmanFilter.java +++ b/src/main/java/org/apache/commons/math3/filter/KalmanFilter.java @@ -14,19 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.filter; +package org.apache.commons.math3.filter; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.ArrayRealVector; -import org.apache.commons.math.linear.CholeskyDecomposition; -import org.apache.commons.math.linear.DecompositionSolver; -import org.apache.commons.math.linear.MatrixDimensionMismatchException; -import org.apache.commons.math.linear.MatrixUtils; -import org.apache.commons.math.linear.NonSquareMatrixException; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.RealVector; -import org.apache.commons.math.util.MathUtils; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.ArrayRealVector; +import org.apache.commons.math3.linear.CholeskyDecomposition; +import org.apache.commons.math3.linear.DecompositionSolver; +import org.apache.commons.math3.linear.MatrixDimensionMismatchException; +import org.apache.commons.math3.linear.MatrixUtils; +import org.apache.commons.math3.linear.NonSquareMatrixException; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.RealVector; +import org.apache.commons.math3.util.MathUtils; /** * Implementation of a Kalman filter to estimate the state xk @@ -109,7 +109,7 @@ public class KalmanFilter { * the model defining the underlying process dynamics * @param measurement * the model defining the given measurement characteristics - * @throws org.apache.commons.math.exception.NullArgumentException + * @throws org.apache.commons.math3.exception.NullArgumentException * if any of the given inputs is null (except for the control * matrix) * @throws NonSquareMatrixException @@ -321,7 +321,7 @@ public class KalmanFilter { * @param z the measurement vector * @throws DimensionMismatchException * if the dimension of the measurement vector does not fit - * @throws org.apache.commons.math.linear.SingularMatrixException + * @throws org.apache.commons.math3.linear.SingularMatrixException * if the covariance matrix could not be inverted */ public void correct(final double[] z) { @@ -334,7 +334,7 @@ public class KalmanFilter { * @param z the measurement vector * @throws DimensionMismatchException if the dimension of the * measurement vector does not fit - * @throws org.apache.commons.math.linear.SingularMatrixException + * @throws org.apache.commons.math3.linear.SingularMatrixException * if the covariance matrix could not be inverted */ public void correct(final RealVector z) { diff --git a/src/main/java/org/apache/commons/math/filter/MeasurementModel.java b/src/main/java/org/apache/commons/math3/filter/MeasurementModel.java similarity index 89% rename from src/main/java/org/apache/commons/math/filter/MeasurementModel.java rename to src/main/java/org/apache/commons/math3/filter/MeasurementModel.java index 026b0da4a..95013b8cd 100644 --- a/src/main/java/org/apache/commons/math/filter/MeasurementModel.java +++ b/src/main/java/org/apache/commons/math3/filter/MeasurementModel.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.filter; +package org.apache.commons.math3.filter; -import org.apache.commons.math.linear.RealMatrix; +import org.apache.commons.math3.linear.RealMatrix; /** * Defines the measurement model for the use with a {@link KalmanFilter}. @@ -40,7 +40,7 @@ public interface MeasurementModel { * * @return the measurement noise matrix * @see KalmanFilter#correct(double[]) - * @see KalmanFilter#correct(org.apache.commons.math.linear.RealVector) + * @see KalmanFilter#correct(org.apache.commons.math3.linear.RealVector) */ RealMatrix getMeasurementNoise(); } diff --git a/src/main/java/org/apache/commons/math/filter/ProcessModel.java b/src/main/java/org/apache/commons/math3/filter/ProcessModel.java similarity index 94% rename from src/main/java/org/apache/commons/math/filter/ProcessModel.java rename to src/main/java/org/apache/commons/math3/filter/ProcessModel.java index b097a080a..dc8708ca9 100644 --- a/src/main/java/org/apache/commons/math/filter/ProcessModel.java +++ b/src/main/java/org/apache/commons/math3/filter/ProcessModel.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.filter; +package org.apache.commons.math3.filter; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.RealVector; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.RealVector; /** * Defines the process dynamics model for the use with a {@link KalmanFilter}. diff --git a/src/main/java/org/apache/commons/math/filter/package-info.java b/src/main/java/org/apache/commons/math3/filter/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/filter/package-info.java rename to src/main/java/org/apache/commons/math3/filter/package-info.java index 0c7fa6625..4e7653664 100644 --- a/src/main/java/org/apache/commons/math/filter/package-info.java +++ b/src/main/java/org/apache/commons/math3/filter/package-info.java @@ -17,4 +17,4 @@ /** * Implementations of common discrete-time linear filters. */ -package org.apache.commons.math.filter; +package org.apache.commons.math3.filter; diff --git a/src/main/java/org/apache/commons/math/fraction/AbstractFormat.java b/src/main/java/org/apache/commons/math3/fraction/AbstractFormat.java similarity index 97% rename from src/main/java/org/apache/commons/math/fraction/AbstractFormat.java rename to src/main/java/org/apache/commons/math3/fraction/AbstractFormat.java index 50641e378..34261301f 100644 --- a/src/main/java/org/apache/commons/math/fraction/AbstractFormat.java +++ b/src/main/java/org/apache/commons/math3/fraction/AbstractFormat.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.io.Serializable; import java.text.FieldPosition; @@ -23,8 +23,8 @@ import java.text.NumberFormat; import java.text.ParsePosition; import java.util.Locale; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Common part shared by both {@link FractionFormat} and {@link BigFractionFormat}. diff --git a/src/main/java/org/apache/commons/math/fraction/BigFraction.java b/src/main/java/org/apache/commons/math3/fraction/BigFraction.java similarity index 98% rename from src/main/java/org/apache/commons/math/fraction/BigFraction.java rename to src/main/java/org/apache/commons/math3/fraction/BigFraction.java index 24cd7cf62..5a44b4f42 100644 --- a/src/main/java/org/apache/commons/math/fraction/BigFraction.java +++ b/src/main/java/org/apache/commons/math3/fraction/BigFraction.java @@ -14,20 +14,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.io.Serializable; import java.math.BigDecimal; import java.math.BigInteger; -import org.apache.commons.math.FieldElement; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.ZeroException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.util.ArithmeticUtils; +import org.apache.commons.math3.FieldElement; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.ZeroException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math3.util.ArithmeticUtils; /** * Representation of a rational number without any overflow. This class is diff --git a/src/main/java/org/apache/commons/math/fraction/BigFractionField.java b/src/main/java/org/apache/commons/math3/fraction/BigFractionField.java similarity index 94% rename from src/main/java/org/apache/commons/math/fraction/BigFractionField.java rename to src/main/java/org/apache/commons/math3/fraction/BigFractionField.java index 9403e5382..04645cc37 100644 --- a/src/main/java/org/apache/commons/math/fraction/BigFractionField.java +++ b/src/main/java/org/apache/commons/math3/fraction/BigFractionField.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.io.Serializable; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; /** * Representation of the fractional numbers without any overflow field. diff --git a/src/main/java/org/apache/commons/math/fraction/BigFractionFormat.java b/src/main/java/org/apache/commons/math3/fraction/BigFractionFormat.java similarity index 97% rename from src/main/java/org/apache/commons/math/fraction/BigFractionFormat.java rename to src/main/java/org/apache/commons/math3/fraction/BigFractionFormat.java index 079e2752e..fc3d1ff49 100644 --- a/src/main/java/org/apache/commons/math/fraction/BigFractionFormat.java +++ b/src/main/java/org/apache/commons/math3/fraction/BigFractionFormat.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.io.Serializable; import java.math.BigInteger; @@ -24,9 +24,9 @@ import java.text.NumberFormat; import java.text.ParsePosition; import java.util.Locale; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathParseException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathParseException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Formats a BigFraction number in proper format or improper format. diff --git a/src/main/java/org/apache/commons/math/fraction/Fraction.java b/src/main/java/org/apache/commons/math3/fraction/Fraction.java similarity index 98% rename from src/main/java/org/apache/commons/math/fraction/Fraction.java rename to src/main/java/org/apache/commons/math3/fraction/Fraction.java index c8f0201ca..f84218ebd 100644 --- a/src/main/java/org/apache/commons/math/fraction/Fraction.java +++ b/src/main/java/org/apache/commons/math3/fraction/Fraction.java @@ -14,17 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.io.Serializable; import java.math.BigInteger; -import org.apache.commons.math.FieldElement; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.MathArithmeticException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.util.ArithmeticUtils; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.FieldElement; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.util.ArithmeticUtils; +import org.apache.commons.math3.util.FastMath; /** * Representation of a rational number. diff --git a/src/main/java/org/apache/commons/math/fraction/FractionConversionException.java b/src/main/java/org/apache/commons/math3/fraction/FractionConversionException.java similarity index 92% rename from src/main/java/org/apache/commons/math/fraction/FractionConversionException.java rename to src/main/java/org/apache/commons/math3/fraction/FractionConversionException.java index 560e0f998..ba7fe1717 100644 --- a/src/main/java/org/apache/commons/math/fraction/FractionConversionException.java +++ b/src/main/java/org/apache/commons/math3/fraction/FractionConversionException.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; -import org.apache.commons.math.exception.ConvergenceException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.ConvergenceException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Error thrown when a double value cannot be converted to a fraction diff --git a/src/main/java/org/apache/commons/math/fraction/FractionField.java b/src/main/java/org/apache/commons/math3/fraction/FractionField.java similarity index 94% rename from src/main/java/org/apache/commons/math/fraction/FractionField.java rename to src/main/java/org/apache/commons/math3/fraction/FractionField.java index c77b9d70b..190ef02e5 100644 --- a/src/main/java/org/apache/commons/math/fraction/FractionField.java +++ b/src/main/java/org/apache/commons/math3/fraction/FractionField.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.io.Serializable; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; /** * Representation of the fractional numbers field. diff --git a/src/main/java/org/apache/commons/math/fraction/FractionFormat.java b/src/main/java/org/apache/commons/math3/fraction/FractionFormat.java similarity index 97% rename from src/main/java/org/apache/commons/math/fraction/FractionFormat.java rename to src/main/java/org/apache/commons/math3/fraction/FractionFormat.java index d1bde186b..2118cf703 100644 --- a/src/main/java/org/apache/commons/math/fraction/FractionFormat.java +++ b/src/main/java/org/apache/commons/math3/fraction/FractionFormat.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.text.FieldPosition; import java.text.NumberFormat; import java.text.ParsePosition; import java.util.Locale; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathParseException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathParseException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Formats a Fraction number in proper format or improper format. The number diff --git a/src/main/java/org/apache/commons/math/fraction/ProperBigFractionFormat.java b/src/main/java/org/apache/commons/math3/fraction/ProperBigFractionFormat.java similarity index 97% rename from src/main/java/org/apache/commons/math/fraction/ProperBigFractionFormat.java rename to src/main/java/org/apache/commons/math3/fraction/ProperBigFractionFormat.java index 0c0104fea..e8159b689 100644 --- a/src/main/java/org/apache/commons/math/fraction/ProperBigFractionFormat.java +++ b/src/main/java/org/apache/commons/math3/fraction/ProperBigFractionFormat.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.math.BigInteger; import java.text.FieldPosition; import java.text.NumberFormat; import java.text.ParsePosition; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.NullArgumentException; /** * Formats a BigFraction number in proper format. The number format for each of diff --git a/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java b/src/main/java/org/apache/commons/math3/fraction/ProperFractionFormat.java similarity index 97% rename from src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java rename to src/main/java/org/apache/commons/math3/fraction/ProperFractionFormat.java index f25184bc8..4b1a8bc4d 100644 --- a/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java +++ b/src/main/java/org/apache/commons/math3/fraction/ProperFractionFormat.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; import java.text.FieldPosition; import java.text.NumberFormat; import java.text.ParsePosition; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.util.MathUtils; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.util.MathUtils; /** * Formats a Fraction number in proper format. The number format for each of diff --git a/src/main/java/org/apache/commons/math/fraction/package-info.java b/src/main/java/org/apache/commons/math3/fraction/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/fraction/package-info.java rename to src/main/java/org/apache/commons/math3/fraction/package-info.java index 59c86fac0..f5425c632 100644 --- a/src/main/java/org/apache/commons/math/fraction/package-info.java +++ b/src/main/java/org/apache/commons/math3/fraction/package-info.java @@ -19,4 +19,4 @@ * Fraction number type and fraction number formatting. * */ -package org.apache.commons.math.fraction; +package org.apache.commons.math3.fraction; diff --git a/src/main/java/org/apache/commons/math/genetics/AbstractListChromosome.java b/src/main/java/org/apache/commons/math3/genetics/AbstractListChromosome.java similarity index 98% rename from src/main/java/org/apache/commons/math/genetics/AbstractListChromosome.java rename to src/main/java/org/apache/commons/math3/genetics/AbstractListChromosome.java index 0b76f4c6d..d42c5117b 100644 --- a/src/main/java/org/apache/commons/math/genetics/AbstractListChromosome.java +++ b/src/main/java/org/apache/commons/math3/genetics/AbstractListChromosome.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.ArrayList; import java.util.Arrays; diff --git a/src/main/java/org/apache/commons/math/genetics/BinaryChromosome.java b/src/main/java/org/apache/commons/math3/genetics/BinaryChromosome.java similarity index 96% rename from src/main/java/org/apache/commons/math/genetics/BinaryChromosome.java rename to src/main/java/org/apache/commons/math3/genetics/BinaryChromosome.java index 54c7172ec..f79444529 100644 --- a/src/main/java/org/apache/commons/math/genetics/BinaryChromosome.java +++ b/src/main/java/org/apache/commons/math3/genetics/BinaryChromosome.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** diff --git a/src/main/java/org/apache/commons/math/genetics/BinaryMutation.java b/src/main/java/org/apache/commons/math3/genetics/BinaryMutation.java similarity index 91% rename from src/main/java/org/apache/commons/math/genetics/BinaryMutation.java rename to src/main/java/org/apache/commons/math3/genetics/BinaryMutation.java index bfb306ffd..e6bc1b025 100644 --- a/src/main/java/org/apache/commons/math/genetics/BinaryMutation.java +++ b/src/main/java/org/apache/commons/math3/genetics/BinaryMutation.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Mutation for {@link BinaryChromosome}s. Randomly changes one gene. diff --git a/src/main/java/org/apache/commons/math/genetics/Chromosome.java b/src/main/java/org/apache/commons/math3/genetics/Chromosome.java similarity index 98% rename from src/main/java/org/apache/commons/math/genetics/Chromosome.java rename to src/main/java/org/apache/commons/math3/genetics/Chromosome.java index 7ab8b1b52..5b333e8d0 100644 --- a/src/main/java/org/apache/commons/math/genetics/Chromosome.java +++ b/src/main/java/org/apache/commons/math3/genetics/Chromosome.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; /** * Individual in a population. Chromosomes are compared based on their fitness. diff --git a/src/main/java/org/apache/commons/math/genetics/ChromosomePair.java b/src/main/java/org/apache/commons/math3/genetics/ChromosomePair.java similarity index 97% rename from src/main/java/org/apache/commons/math/genetics/ChromosomePair.java rename to src/main/java/org/apache/commons/math3/genetics/ChromosomePair.java index ba1c7d7b3..5377a43d7 100644 --- a/src/main/java/org/apache/commons/math/genetics/ChromosomePair.java +++ b/src/main/java/org/apache/commons/math3/genetics/ChromosomePair.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; /** * A pair of {@link Chromosome} objects. diff --git a/src/main/java/org/apache/commons/math/genetics/CrossoverPolicy.java b/src/main/java/org/apache/commons/math3/genetics/CrossoverPolicy.java similarity index 96% rename from src/main/java/org/apache/commons/math/genetics/CrossoverPolicy.java rename to src/main/java/org/apache/commons/math3/genetics/CrossoverPolicy.java index 00f9bdcde..99ea71221 100644 --- a/src/main/java/org/apache/commons/math/genetics/CrossoverPolicy.java +++ b/src/main/java/org/apache/commons/math3/genetics/CrossoverPolicy.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; /** * Policy used to create a pair of new chromosomes by performing a crossover diff --git a/src/main/java/org/apache/commons/math/genetics/ElitisticListPopulation.java b/src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java similarity index 94% rename from src/main/java/org/apache/commons/math/genetics/ElitisticListPopulation.java rename to src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java index ff687dc2d..8113f4ef9 100644 --- a/src/main/java/org/apache/commons/math/genetics/ElitisticListPopulation.java +++ b/src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.Collections; import java.util.List; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** * Population of chromosomes which uses elitism (certain percentace of the best diff --git a/src/main/java/org/apache/commons/math/genetics/Fitness.java b/src/main/java/org/apache/commons/math3/genetics/Fitness.java similarity index 96% rename from src/main/java/org/apache/commons/math/genetics/Fitness.java rename to src/main/java/org/apache/commons/math3/genetics/Fitness.java index c1d70800c..e829eb4c4 100644 --- a/src/main/java/org/apache/commons/math/genetics/Fitness.java +++ b/src/main/java/org/apache/commons/math3/genetics/Fitness.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; /** * Fitness of a chromosome. diff --git a/src/main/java/org/apache/commons/math/genetics/FixedGenerationCount.java b/src/main/java/org/apache/commons/math3/genetics/FixedGenerationCount.java similarity index 95% rename from src/main/java/org/apache/commons/math/genetics/FixedGenerationCount.java rename to src/main/java/org/apache/commons/math3/genetics/FixedGenerationCount.java index 4bcb22ac5..07d80a3b2 100644 --- a/src/main/java/org/apache/commons/math/genetics/FixedGenerationCount.java +++ b/src/main/java/org/apache/commons/math3/genetics/FixedGenerationCount.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; -import org.apache.commons.math.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; /** * Stops after a fixed number of generations. Each time diff --git a/src/main/java/org/apache/commons/math/genetics/GeneticAlgorithm.java b/src/main/java/org/apache/commons/math3/genetics/GeneticAlgorithm.java similarity index 96% rename from src/main/java/org/apache/commons/math/genetics/GeneticAlgorithm.java rename to src/main/java/org/apache/commons/math3/genetics/GeneticAlgorithm.java index 41701ceff..327a4c1ae 100644 --- a/src/main/java/org/apache/commons/math/genetics/GeneticAlgorithm.java +++ b/src/main/java/org/apache/commons/math3/genetics/GeneticAlgorithm.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.random.RandomGenerator; -import org.apache.commons.math.random.JDKRandomGenerator; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.random.RandomGenerator; +import org.apache.commons.math3.random.JDKRandomGenerator; /** * Implementation of a genetic algorithm. All factors that govern the operation diff --git a/src/main/java/org/apache/commons/math/genetics/InvalidRepresentationException.java b/src/main/java/org/apache/commons/math3/genetics/InvalidRepresentationException.java similarity index 88% rename from src/main/java/org/apache/commons/math/genetics/InvalidRepresentationException.java rename to src/main/java/org/apache/commons/math3/genetics/InvalidRepresentationException.java index 8e7febf04..a01492cdb 100644 --- a/src/main/java/org/apache/commons/math/genetics/InvalidRepresentationException.java +++ b/src/main/java/org/apache/commons/math3/genetics/InvalidRepresentationException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.Localizable; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.Localizable; /** * Exception indicating that the representation of a chromosome is not valid. diff --git a/src/main/java/org/apache/commons/math/genetics/ListPopulation.java b/src/main/java/org/apache/commons/math3/genetics/ListPopulation.java similarity index 95% rename from src/main/java/org/apache/commons/math/genetics/ListPopulation.java rename to src/main/java/org/apache/commons/math3/genetics/ListPopulation.java index e2a92c939..4f112c801 100644 --- a/src/main/java/org/apache/commons/math/genetics/ListPopulation.java +++ b/src/main/java/org/apache/commons/math3/genetics/ListPopulation.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.NotPositiveException; -import org.apache.commons.math.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.NotPositiveException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; /** * Population of chromosomes represented by a {@link List}. diff --git a/src/main/java/org/apache/commons/math/genetics/MutationPolicy.java b/src/main/java/org/apache/commons/math3/genetics/MutationPolicy.java similarity index 96% rename from src/main/java/org/apache/commons/math/genetics/MutationPolicy.java rename to src/main/java/org/apache/commons/math3/genetics/MutationPolicy.java index 8483f4698..374d8a024 100644 --- a/src/main/java/org/apache/commons/math/genetics/MutationPolicy.java +++ b/src/main/java/org/apache/commons/math3/genetics/MutationPolicy.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; /** * Algorithm used to mutate a chromosome. diff --git a/src/main/java/org/apache/commons/math/genetics/OnePointCrossover.java b/src/main/java/org/apache/commons/math3/genetics/OnePointCrossover.java similarity index 95% rename from src/main/java/org/apache/commons/math/genetics/OnePointCrossover.java rename to src/main/java/org/apache/commons/math3/genetics/OnePointCrossover.java index 096057205..d7616e2aa 100644 --- a/src/main/java/org/apache/commons/math/genetics/OnePointCrossover.java +++ b/src/main/java/org/apache/commons/math3/genetics/OnePointCrossover.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** diff --git a/src/main/java/org/apache/commons/math/genetics/PermutationChromosome.java b/src/main/java/org/apache/commons/math3/genetics/PermutationChromosome.java similarity index 97% rename from src/main/java/org/apache/commons/math/genetics/PermutationChromosome.java rename to src/main/java/org/apache/commons/math3/genetics/PermutationChromosome.java index 52b9b688d..d4332f94c 100644 --- a/src/main/java/org/apache/commons/math/genetics/PermutationChromosome.java +++ b/src/main/java/org/apache/commons/math3/genetics/PermutationChromosome.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.List; diff --git a/src/main/java/org/apache/commons/math/genetics/Population.java b/src/main/java/org/apache/commons/math3/genetics/Population.java similarity index 97% rename from src/main/java/org/apache/commons/math/genetics/Population.java rename to src/main/java/org/apache/commons/math3/genetics/Population.java index 7722f27e3..5b7b2d26d 100644 --- a/src/main/java/org/apache/commons/math/genetics/Population.java +++ b/src/main/java/org/apache/commons/math3/genetics/Population.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; /** * A collection of chromosomes that facilitates generational evolution. diff --git a/src/main/java/org/apache/commons/math/genetics/RandomKey.java b/src/main/java/org/apache/commons/math3/genetics/RandomKey.java similarity index 97% rename from src/main/java/org/apache/commons/math/genetics/RandomKey.java rename to src/main/java/org/apache/commons/math3/genetics/RandomKey.java index 9f5d840a6..66b50140b 100644 --- a/src/main/java/org/apache/commons/math/genetics/RandomKey.java +++ b/src/main/java/org/apache/commons/math3/genetics/RandomKey.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.ArrayList; import java.util.Arrays; @@ -22,9 +22,9 @@ import java.util.Collections; import java.util.Comparator; import java.util.List; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** *
diff --git a/src/main/java/org/apache/commons/math/genetics/RandomKeyMutation.java b/src/main/java/org/apache/commons/math3/genetics/RandomKeyMutation.java similarity index 91% rename from src/main/java/org/apache/commons/math/genetics/RandomKeyMutation.java rename to src/main/java/org/apache/commons/math3/genetics/RandomKeyMutation.java index 5d69cef97..9f4ed1ce9 100644 --- a/src/main/java/org/apache/commons/math/genetics/RandomKeyMutation.java +++ b/src/main/java/org/apache/commons/math3/genetics/RandomKeyMutation.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Mutation operator for {@link RandomKey}s. Changes a randomly chosen element diff --git a/src/main/java/org/apache/commons/math/genetics/SelectionPolicy.java b/src/main/java/org/apache/commons/math3/genetics/SelectionPolicy.java similarity index 96% rename from src/main/java/org/apache/commons/math/genetics/SelectionPolicy.java rename to src/main/java/org/apache/commons/math3/genetics/SelectionPolicy.java index c7f4513be..ef1d8cc5a 100644 --- a/src/main/java/org/apache/commons/math/genetics/SelectionPolicy.java +++ b/src/main/java/org/apache/commons/math3/genetics/SelectionPolicy.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; /** * Algorithm used to select a chromosome pair from a population. diff --git a/src/main/java/org/apache/commons/math/genetics/StoppingCondition.java b/src/main/java/org/apache/commons/math3/genetics/StoppingCondition.java similarity index 96% rename from src/main/java/org/apache/commons/math/genetics/StoppingCondition.java rename to src/main/java/org/apache/commons/math3/genetics/StoppingCondition.java index 583151c32..34a918afa 100644 --- a/src/main/java/org/apache/commons/math/genetics/StoppingCondition.java +++ b/src/main/java/org/apache/commons/math3/genetics/StoppingCondition.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; /** * Algorithm used to determine when to stop evolution. diff --git a/src/main/java/org/apache/commons/math/genetics/TournamentSelection.java b/src/main/java/org/apache/commons/math3/genetics/TournamentSelection.java similarity index 95% rename from src/main/java/org/apache/commons/math/genetics/TournamentSelection.java rename to src/main/java/org/apache/commons/math3/genetics/TournamentSelection.java index 92f3fa3a4..d936e9c70 100644 --- a/src/main/java/org/apache/commons/math/genetics/TournamentSelection.java +++ b/src/main/java/org/apache/commons/math3/genetics/TournamentSelection.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Tournament selection scheme. Each of the two selected chromosomes is selected diff --git a/src/main/java/org/apache/commons/math/genetics/package-info.java b/src/main/java/org/apache/commons/math3/genetics/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/genetics/package-info.java rename to src/main/java/org/apache/commons/math3/genetics/package-info.java index affd773aa..20b796121 100644 --- a/src/main/java/org/apache/commons/math/genetics/package-info.java +++ b/src/main/java/org/apache/commons/math3/genetics/package-info.java @@ -21,4 +21,4 @@ *
* */ -package org.apache.commons.math.genetics; +package org.apache.commons.math3.genetics; diff --git a/src/main/java/org/apache/commons/math/geometry/Space.java b/src/main/java/org/apache/commons/math3/geometry/Space.java similarity index 96% rename from src/main/java/org/apache/commons/math/geometry/Space.java rename to src/main/java/org/apache/commons/math3/geometry/Space.java index e486826cb..40cd687b2 100644 --- a/src/main/java/org/apache/commons/math/geometry/Space.java +++ b/src/main/java/org/apache/commons/math3/geometry/Space.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry; +package org.apache.commons.math3.geometry; import java.io.Serializable; diff --git a/src/main/java/org/apache/commons/math/geometry/Vector.java b/src/main/java/org/apache/commons/math3/geometry/Vector.java similarity index 99% rename from src/main/java/org/apache/commons/math/geometry/Vector.java rename to src/main/java/org/apache/commons/math3/geometry/Vector.java index 566e3c942..bb0717926 100644 --- a/src/main/java/org/apache/commons/math/geometry/Vector.java +++ b/src/main/java/org/apache/commons/math3/geometry/Vector.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry; +package org.apache.commons.math3.geometry; import java.io.Serializable; import java.text.NumberFormat; diff --git a/src/main/java/org/apache/commons/math/geometry/VectorFormat.java b/src/main/java/org/apache/commons/math3/geometry/VectorFormat.java similarity index 98% rename from src/main/java/org/apache/commons/math/geometry/VectorFormat.java rename to src/main/java/org/apache/commons/math3/geometry/VectorFormat.java index 3b05ff7bd..35a0a9487 100644 --- a/src/main/java/org/apache/commons/math/geometry/VectorFormat.java +++ b/src/main/java/org/apache/commons/math3/geometry/VectorFormat.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math.geometry; +package org.apache.commons.math3.geometry; import java.text.FieldPosition; import java.text.NumberFormat; import java.text.ParsePosition; import java.util.Locale; -import org.apache.commons.math.util.CompositeFormat; -import org.apache.commons.math.exception.MathParseException; +import org.apache.commons.math3.util.CompositeFormat; +import org.apache.commons.math3.exception.MathParseException; /** * Formats a vector in components list format "{x; y; ...}". diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/Euclidean1D.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Euclidean1D.java similarity index 90% rename from src/main/java/org/apache/commons/math/geometry/euclidean/oned/Euclidean1D.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Euclidean1D.java index e06312642..86525c424 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/Euclidean1D.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Euclidean1D.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.geometry.euclidean.oned; +package org.apache.commons.math3.geometry.euclidean.oned; import java.io.Serializable; -import org.apache.commons.math.exception.MathUnsupportedOperationException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.geometry.Space; +import org.apache.commons.math3.exception.MathUnsupportedOperationException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.geometry.Space; /** * This class implements a one-dimensional space. diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/Interval.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Interval.java similarity index 97% rename from src/main/java/org/apache/commons/math/geometry/euclidean/oned/Interval.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Interval.java index 4b66d5c9b..1e1fd5471 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/Interval.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Interval.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.euclidean.oned; +package org.apache.commons.math3.geometry.euclidean.oned; /** This class represents a 1D interval. diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/IntervalsSet.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/IntervalsSet.java similarity index 96% rename from src/main/java/org/apache/commons/math/geometry/euclidean/oned/IntervalsSet.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/oned/IntervalsSet.java index 191af4890..97278a93e 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/IntervalsSet.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/IntervalsSet.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.euclidean.oned; +package org.apache.commons.math3.geometry.euclidean.oned; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import org.apache.commons.math.geometry.partitioning.AbstractRegion; -import org.apache.commons.math.geometry.partitioning.BSPTree; -import org.apache.commons.math.geometry.partitioning.SubHyperplane; +import org.apache.commons.math3.geometry.partitioning.AbstractRegion; +import org.apache.commons.math3.geometry.partitioning.BSPTree; +import org.apache.commons.math3.geometry.partitioning.SubHyperplane; /** This class represents a 1D region: a set of intervals. * @version $Id$ @@ -72,7 +72,7 @@ public class IntervalsSet extends AbstractRegionIf the boundary is empty, the region will represent the whole * space.
diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/OrientedPoint.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/OrientedPoint.java similarity index 91% rename from src/main/java/org/apache/commons/math/geometry/euclidean/oned/OrientedPoint.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/oned/OrientedPoint.java index 31cd4a0dd..dbab1a272 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/OrientedPoint.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/OrientedPoint.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.euclidean.oned; +package org.apache.commons.math3.geometry.euclidean.oned; -import org.apache.commons.math.geometry.Vector; -import org.apache.commons.math.geometry.partitioning.Hyperplane; +import org.apache.commons.math3.geometry.Vector; +import org.apache.commons.math3.geometry.partitioning.Hyperplane; /** This class represents a 1D oriented hyperplane. *An hyperplane in 1D is a simple point, its orientation being a
@@ -63,10 +63,10 @@ public class OrientedPoint implements Hyperplane Since this class represent zero dimension spaces which does
* not have lower dimension sub-spaces, this method returns a dummy
* implementation of a {@link
- * org.apache.commons.math.geometry.partitioning.Region Region}
+ * org.apache.commons.math3.geometry.partitioning.Region Region}
* (always the same instance). This implementation is only used to
* allow the {@link
- * org.apache.commons.math.geometry.partitioning.SubHyperplane
+ * org.apache.commons.math3.geometry.partitioning.SubHyperplane
* SubHyperplane} class implementation to work properly, it should
* not be used otherwise. An hyperplane in 1D is a simple point, its orientation being a
diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/Vector1D.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Vector1D.java
similarity index 96%
rename from src/main/java/org/apache/commons/math/geometry/euclidean/oned/Vector1D.java
rename to src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Vector1D.java
index 712333451..3b34ba1f7 100644
--- a/src/main/java/org/apache/commons/math/geometry/euclidean/oned/Vector1D.java
+++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/oned/Vector1D.java
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.geometry.euclidean.oned;
+package org.apache.commons.math3.geometry.euclidean.oned;
import java.text.NumberFormat;
-import org.apache.commons.math.exception.MathArithmeticException;
-import org.apache.commons.math.exception.util.LocalizedFormats;
-import org.apache.commons.math.geometry.Space;
-import org.apache.commons.math.geometry.Vector;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.MathArithmeticException;
+import org.apache.commons.math3.exception.util.LocalizedFormats;
+import org.apache.commons.math3.geometry.Space;
+import org.apache.commons.math3.geometry.Vector;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathUtils;
/** This class represents a 1D vector.
* Instances of this class are guaranteed to be immutable.
This class extracts the 2D outlines from {{@link PolygonsSet
@@ -208,16 +208,16 @@ public class OutlineExtractor {
final Vector3D current3D = plane.toSpace(loop[current]);
final Vector2D cPoint = new Vector2D(current3D.dotProduct(u),
current3D.dotProduct(v));
- final org.apache.commons.math.geometry.euclidean.twod.Line line =
- new org.apache.commons.math.geometry.euclidean.twod.Line(pPoint, cPoint);
+ final org.apache.commons.math3.geometry.euclidean.twod.Line line =
+ new org.apache.commons.math3.geometry.euclidean.twod.Line(pPoint, cPoint);
SubHyperplane
If the boundary is empty, the region will represent the whole * space.
diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/Segment.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Segment.java similarity index 97% rename from src/main/java/org/apache/commons/math/geometry/euclidean/twod/Segment.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Segment.java index ce4ecc1e2..2fa74934d 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/Segment.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Segment.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.euclidean.twod; +package org.apache.commons.math3.geometry.euclidean.twod; /** Simple container for a two-points segment. diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/SubLine.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/SubLine.java similarity index 90% rename from src/main/java/org/apache/commons/math/geometry/euclidean/twod/SubLine.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/twod/SubLine.java index 97e2ff0e9..cf47f88a3 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/SubLine.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/SubLine.java @@ -14,24 +14,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.euclidean.twod; +package org.apache.commons.math3.geometry.euclidean.twod; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.geometry.euclidean.oned.Euclidean1D; -import org.apache.commons.math.geometry.euclidean.oned.Interval; -import org.apache.commons.math.geometry.euclidean.oned.IntervalsSet; -import org.apache.commons.math.geometry.euclidean.oned.OrientedPoint; -import org.apache.commons.math.geometry.euclidean.oned.Vector1D; -import org.apache.commons.math.geometry.partitioning.AbstractSubHyperplane; -import org.apache.commons.math.geometry.partitioning.BSPTree; -import org.apache.commons.math.geometry.partitioning.Hyperplane; -import org.apache.commons.math.geometry.partitioning.Region; -import org.apache.commons.math.geometry.partitioning.Region.Location; -import org.apache.commons.math.geometry.partitioning.Side; -import org.apache.commons.math.geometry.partitioning.SubHyperplane; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.geometry.euclidean.oned.Euclidean1D; +import org.apache.commons.math3.geometry.euclidean.oned.Interval; +import org.apache.commons.math3.geometry.euclidean.oned.IntervalsSet; +import org.apache.commons.math3.geometry.euclidean.oned.OrientedPoint; +import org.apache.commons.math3.geometry.euclidean.oned.Vector1D; +import org.apache.commons.math3.geometry.partitioning.AbstractSubHyperplane; +import org.apache.commons.math3.geometry.partitioning.BSPTree; +import org.apache.commons.math3.geometry.partitioning.Hyperplane; +import org.apache.commons.math3.geometry.partitioning.Region; +import org.apache.commons.math3.geometry.partitioning.Region.Location; +import org.apache.commons.math3.geometry.partitioning.Side; +import org.apache.commons.math3.geometry.partitioning.SubHyperplane; +import org.apache.commons.math3.util.FastMath; /** This class represents a sub-hyperplane for {@link Line}. * @version $Id$ diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/Vector2D.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Vector2D.java similarity index 96% rename from src/main/java/org/apache/commons/math/geometry/euclidean/twod/Vector2D.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Vector2D.java index 7669e809e..88f7859cb 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/Vector2D.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Vector2D.java @@ -14,17 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.euclidean.twod; +package org.apache.commons.math3.geometry.euclidean.twod; import java.text.NumberFormat; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathArithmeticException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.geometry.Space; -import org.apache.commons.math.geometry.Vector; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.MathUtils; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.geometry.Space; +import org.apache.commons.math3.geometry.Vector; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.MathUtils; /** This class represents a 2D vector. *Instances of this class are guaranteed to be immutable.
diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/Vector2DFormat.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Vector2DFormat.java similarity index 94% rename from src/main/java/org/apache/commons/math/geometry/euclidean/twod/Vector2DFormat.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Vector2DFormat.java index 4350559ed..ea9807801 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/Vector2DFormat.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Vector2DFormat.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math.geometry.euclidean.twod; +package org.apache.commons.math3.geometry.euclidean.twod; import java.text.FieldPosition; import java.text.NumberFormat; import java.text.ParsePosition; import java.util.Locale; -import org.apache.commons.math.exception.MathParseException; -import org.apache.commons.math.geometry.Vector; -import org.apache.commons.math.geometry.VectorFormat; -import org.apache.commons.math.util.CompositeFormat; +import org.apache.commons.math3.exception.MathParseException; +import org.apache.commons.math3.geometry.Vector; +import org.apache.commons.math3.geometry.VectorFormat; +import org.apache.commons.math3.util.CompositeFormat; /** * Formats a 2D vector in components list format "{x; y}". diff --git a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/package-info.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/package-info.java similarity index 93% rename from src/main/java/org/apache/commons/math/geometry/euclidean/twod/package-info.java rename to src/main/java/org/apache/commons/math3/geometry/euclidean/twod/package-info.java index 13aaf016c..feb43b136 100644 --- a/src/main/java/org/apache/commons/math/geometry/euclidean/twod/package-info.java +++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/package-info.java @@ -21,4 +21,4 @@ * * */ -package org.apache.commons.math.geometry.euclidean.twod; +package org.apache.commons.math3.geometry.euclidean.twod; diff --git a/src/main/java/org/apache/commons/math/geometry/package-info.java b/src/main/java/org/apache/commons/math3/geometry/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/geometry/package-info.java rename to src/main/java/org/apache/commons/math3/geometry/package-info.java index 97c179226..31929e2d6 100644 --- a/src/main/java/org/apache/commons/math/geometry/package-info.java +++ b/src/main/java/org/apache/commons/math3/geometry/package-info.java @@ -22,4 +22,4 @@ * * */ -package org.apache.commons.math.geometry; +package org.apache.commons.math3.geometry; diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/AbstractRegion.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractRegion.java similarity index 99% rename from src/main/java/org/apache/commons/math/geometry/partitioning/AbstractRegion.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractRegion.java index 2fa1cc112..2a3d0c677 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/AbstractRegion.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractRegion.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; import java.util.ArrayList; import java.util.Collection; @@ -22,8 +22,8 @@ import java.util.Comparator; import java.util.Iterator; import java.util.TreeSet; -import org.apache.commons.math.geometry.Space; -import org.apache.commons.math.geometry.Vector; +import org.apache.commons.math3.geometry.Space; +import org.apache.commons.math3.geometry.Vector; /** Abstract class for all regions, independently of geometry type or dimension. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/AbstractSubHyperplane.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractSubHyperplane.java similarity index 97% rename from src/main/java/org/apache/commons/math/geometry/partitioning/AbstractSubHyperplane.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractSubHyperplane.java index 3665de895..e2a3b0185 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/AbstractSubHyperplane.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/AbstractSubHyperplane.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Space; -import org.apache.commons.math.geometry.partitioning.SubHyperplane; +import org.apache.commons.math3.geometry.Space; +import org.apache.commons.math3.geometry.partitioning.SubHyperplane; /** This class implements the dimension-independent parts of {@link SubHyperplane}. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/BSPTree.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTree.java similarity index 99% rename from src/main/java/org/apache/commons/math/geometry/partitioning/BSPTree.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTree.java index 65703b390..60427dea1 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/BSPTree.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTree.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Vector; -import org.apache.commons.math.geometry.Space; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.geometry.Vector; +import org.apache.commons.math3.geometry.Space; +import org.apache.commons.math3.util.FastMath; /** This class represent a Binary Space Partition tree. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/BSPTreeVisitor.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTreeVisitor.java similarity index 97% rename from src/main/java/org/apache/commons/math/geometry/partitioning/BSPTreeVisitor.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTreeVisitor.java index 39af008df..462780dde 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/BSPTreeVisitor.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTreeVisitor.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Space; +import org.apache.commons.math3.geometry.Space; /** This interface is used to visit {@link BSPTree BSP tree} nodes. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/BoundaryAttribute.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/BoundaryAttribute.java similarity index 96% rename from src/main/java/org/apache/commons/math/geometry/partitioning/BoundaryAttribute.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/BoundaryAttribute.java index 7cd790a84..4f93e2be5 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/BoundaryAttribute.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/BoundaryAttribute.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Space; +import org.apache.commons.math3.geometry.Space; /** Class holding boundary attributes. *This class is used for the attributes associated with the
diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/BoundarySizeVisitor.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/BoundarySizeVisitor.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/geometry/partitioning/BoundarySizeVisitor.java
rename to src/main/java/org/apache/commons/math3/geometry/partitioning/BoundarySizeVisitor.java
index a49dbe3db..4c9ed7662 100644
--- a/src/main/java/org/apache/commons/math/geometry/partitioning/BoundarySizeVisitor.java
+++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/BoundarySizeVisitor.java
@@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.geometry.partitioning;
+package org.apache.commons.math3.geometry.partitioning;
-import org.apache.commons.math.geometry.Space;
+import org.apache.commons.math3.geometry.Space;
/** Visitor computing the boundary size.
* @param Type of the space.
diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/Characterization.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/Characterization.java
similarity index 96%
rename from src/main/java/org/apache/commons/math/geometry/partitioning/Characterization.java
rename to src/main/java/org/apache/commons/math3/geometry/partitioning/Characterization.java
index 98bf31742..4399a44de 100644
--- a/src/main/java/org/apache/commons/math/geometry/partitioning/Characterization.java
+++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/Characterization.java
@@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.geometry.partitioning;
+package org.apache.commons.math3.geometry.partitioning;
-import org.apache.commons.math.geometry.Space;
+import org.apache.commons.math3.geometry.Space;
/** Characterization of a sub-hyperplane.
* @param Type of the space.
diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/Embedding.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/Embedding.java
similarity index 84%
rename from src/main/java/org/apache/commons/math/geometry/partitioning/Embedding.java
rename to src/main/java/org/apache/commons/math3/geometry/partitioning/Embedding.java
index b168744ea..098122611 100644
--- a/src/main/java/org/apache/commons/math/geometry/partitioning/Embedding.java
+++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/Embedding.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.geometry.partitioning;
+package org.apache.commons.math3.geometry.partitioning;
-import org.apache.commons.math.geometry.Vector;
-import org.apache.commons.math.geometry.Space;
+import org.apache.commons.math3.geometry.Vector;
+import org.apache.commons.math3.geometry.Space;
/** This interface defines mappers between a space and one of its sub-spaces.
@@ -25,10 +25,10 @@ import org.apache.commons.math.geometry.Space;
* space. The (n-1)-dimension sub-spaces are specific sub-spaces known
* as {@link Hyperplane hyperplanes}. This interface can be used regardless
* of the dimensions differences. As an example, {@link
- * org.apache.commons.math.geometry.euclidean.threed.Line Line} in 3D
+ * org.apache.commons.math3.geometry.euclidean.threed.Line Line} in 3D
* implements Embedding<{@link
- * org.apache.commons.math.geometry.euclidean.threed.Vector3D Vector3D}, {link
- * org.apache.commons.math.geometry.euclidean.oned.Vector1D Vector1D>, i.e. it
+ * org.apache.commons.math3.geometry.euclidean.threed.Vector3D Vector3D}, {link
+ * org.apache.commons.math3.geometry.euclidean.oned.Vector1D Vector1D>, i.e. it
* maps directly dimensions 3 and 1.
In the 3D euclidean space, hyperplanes are 2D planes, and the 1D diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/Hyperplane.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/Hyperplane.java similarity index 95% rename from src/main/java/org/apache/commons/math/geometry/partitioning/Hyperplane.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/Hyperplane.java index ff490e161..f1a774c76 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/Hyperplane.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/Hyperplane.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Vector; -import org.apache.commons.math.geometry.Space; +import org.apache.commons.math3.geometry.Vector; +import org.apache.commons.math3.geometry.Space; /** This interface represents an hyperplane of a space. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/Region.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/Region.java similarity index 98% rename from src/main/java/org/apache/commons/math/geometry/partitioning/Region.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/Region.java index 79ee5a7b4..3a348e6f1 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/Region.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/Region.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Space; -import org.apache.commons.math.geometry.Vector; +import org.apache.commons.math3.geometry.Space; +import org.apache.commons.math3.geometry.Vector; /** This interface represents a region of a space as a partition. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/RegionFactory.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/RegionFactory.java similarity index 98% rename from src/main/java/org/apache/commons/math/geometry/partitioning/RegionFactory.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/RegionFactory.java index 257cef2ce..0b94b5dcd 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/RegionFactory.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/RegionFactory.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Space; +import org.apache.commons.math3.geometry.Space; /** This class is a factory for {@link Region}. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/Side.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/Side.java similarity index 95% rename from src/main/java/org/apache/commons/math/geometry/partitioning/Side.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/Side.java index 2d0bd7484..323f8ad08 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/Side.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/Side.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; /** Enumerate representing the location of an element with respect to an * {@link Hyperplane hyperplane} of a space. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/SubHyperplane.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/SubHyperplane.java similarity index 97% rename from src/main/java/org/apache/commons/math/geometry/partitioning/SubHyperplane.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/SubHyperplane.java index 05c6ddff2..dc92d1b6a 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/SubHyperplane.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/SubHyperplane.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Space; +import org.apache.commons.math3.geometry.Space; /** This interface represents the remaining parts of an hyperplane after * other parts have been chopped off. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/Transform.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/Transform.java similarity index 95% rename from src/main/java/org/apache/commons/math/geometry/partitioning/Transform.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/Transform.java index 24c674088..b0fccf1f4 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/Transform.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/Transform.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; -import org.apache.commons.math.geometry.Vector; -import org.apache.commons.math.geometry.Space; +import org.apache.commons.math3.geometry.Vector; +import org.apache.commons.math3.geometry.Space; /** This interface represents an inversible affine transform in a space. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/package-info.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/geometry/partitioning/package-info.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/package-info.java index f4e4bd94d..486752bc4 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/package-info.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/package-info.java @@ -19,7 +19,7 @@ * This package provides classes to implement Binary Space Partition trees. * *
- * {@link org.apache.commons.math.geometry.partitioning.BSPTree BSP trees} + * {@link org.apache.commons.math3.geometry.partitioning.BSPTree BSP trees} * are an efficient way to represent parts of space and in particular * polytopes (line segments in 1D, polygons in 2D and polyhedrons in 3D) * and to operate on them. The main principle is to recursively subdivide @@ -52,9 +52,9 @@ * single part, but by several convex ones. This is the property that * allows BSP-trees to represent non-convex polytopes despites all parts * are convex. The {@link - * org.apache.commons.math.geometry.partitioning.Region Region} class is + * org.apache.commons.math3.geometry.partitioning.Region Region} class is * devoted to this representation, it is build on top of the {@link - * org.apache.commons.math.geometry.partitioning.BSPTree BSPTree} class using + * org.apache.commons.math3.geometry.partitioning.BSPTree BSPTree} class using * boolean objects as the leaf nodes attributes to represent the * inside/outside property of each leaf part, and also adds various * methods dealing with boundaries (i.e. the separation between the @@ -105,4 +105,4 @@ * * */ -package org.apache.commons.math.geometry.partitioning; +package org.apache.commons.math3.geometry.partitioning; diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/utilities/AVLTree.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/AVLTree.java similarity index 99% rename from src/main/java/org/apache/commons/math/geometry/partitioning/utilities/AVLTree.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/AVLTree.java index f9473f162..3e5e0e077 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/utilities/AVLTree.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/AVLTree.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning.utilities; +package org.apache.commons.math3.geometry.partitioning.utilities; /** This class implements AVL trees. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/utilities/OrderedTuple.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/OrderedTuple.java similarity index 99% rename from src/main/java/org/apache/commons/math/geometry/partitioning/utilities/OrderedTuple.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/OrderedTuple.java index fc0b25b0f..21db7634b 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/utilities/OrderedTuple.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/OrderedTuple.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.geometry.partitioning.utilities; +package org.apache.commons.math3.geometry.partitioning.utilities; import java.util.Arrays; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** This class implements an ordering operation for T-uples. diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/utilities/doc-files/OrderedTuple.png b/src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/doc-files/OrderedTuple.png similarity index 100% rename from src/main/java/org/apache/commons/math/geometry/partitioning/utilities/doc-files/OrderedTuple.png rename to src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/doc-files/OrderedTuple.png diff --git a/src/main/java/org/apache/commons/math/geometry/partitioning/utilities/package-info.java b/src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/package-info.java similarity index 93% rename from src/main/java/org/apache/commons/math/geometry/partitioning/utilities/package-info.java rename to src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/package-info.java index 01f655850..31f57f15c 100644 --- a/src/main/java/org/apache/commons/math/geometry/partitioning/utilities/package-info.java +++ b/src/main/java/org/apache/commons/math3/geometry/partitioning/utilities/package-info.java @@ -21,4 +21,4 @@ *
* */ -package org.apache.commons.math.geometry.partitioning.utilities; +package org.apache.commons.math3.geometry.partitioning.utilities; diff --git a/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java b/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java similarity index 98% rename from src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java rename to src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java index 1cdf74e46..3e533c1be 100644 --- a/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java @@ -15,21 +15,21 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arrays; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.NoDataException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.NoDataException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Basic implementation of {@link FieldMatrix} methods regardless of the underlying storage. diff --git a/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java b/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java similarity index 98% rename from src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java rename to src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java index 1500a8bee..e7fe8c59b 100644 --- a/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; import java.util.ArrayList; -import org.apache.commons.math.exception.NoDataException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NoDataException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math3.util.FastMath; /** * Basic implementation of RealMatrix methods regardless of the underlying storage. diff --git a/src/main/java/org/apache/commons/math/linear/AnyMatrix.java b/src/main/java/org/apache/commons/math3/linear/AnyMatrix.java similarity index 97% rename from src/main/java/org/apache/commons/math/linear/AnyMatrix.java rename to src/main/java/org/apache/commons/math3/linear/AnyMatrix.java index 22997e4d3..4f77cf311 100644 --- a/src/main/java/org/apache/commons/math/linear/AnyMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/AnyMatrix.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; /** diff --git a/src/main/java/org/apache/commons/math/linear/Array2DRowFieldMatrix.java b/src/main/java/org/apache/commons/math3/linear/Array2DRowFieldMatrix.java similarity index 95% rename from src/main/java/org/apache/commons/math/linear/Array2DRowFieldMatrix.java rename to src/main/java/org/apache/commons/math3/linear/Array2DRowFieldMatrix.java index 7255e0f63..ff314b6d0 100644 --- a/src/main/java/org/apache/commons/math/linear/Array2DRowFieldMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/Array2DRowFieldMatrix.java @@ -15,18 +15,18 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; import java.io.Serializable; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; -import org.apache.commons.math.exception.NoDataException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.MathUtils; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; +import org.apache.commons.math3.exception.NoDataException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.MathUtils; /** * Implementation of FieldMatrixdiff --git a/src/main/java/org/apache/commons/math/linear/DecompositionSolver.java b/src/main/java/org/apache/commons/math3/linear/DecompositionSolver.java similarity index 93% rename from src/main/java/org/apache/commons/math/linear/DecompositionSolver.java rename to src/main/java/org/apache/commons/math3/linear/DecompositionSolver.java index 8e3604270..6437629b1 100644 --- a/src/main/java/org/apache/commons/math/linear/DecompositionSolver.java +++ b/src/main/java/org/apache/commons/math3/linear/DecompositionSolver.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; @@ -40,7 +40,7 @@ public interface DecompositionSolver { * decomposition algorithm.
* @param b right-hand side of the equation A × X = B * @return a vector X that minimizes the two norm of A × X - B - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if the matrices dimensions do not match. * @throws SingularMatrixException * if the decomposed matrix is singular. @@ -52,7 +52,7 @@ public interface DecompositionSolver { * decomposition algorithm. * @param b right-hand side of the equation A × X = B * @return a matrix X that minimizes the two norm of A × X - B - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if the matrices dimensions do not match. * @throws SingularMatrixException * if the decomposed matrix is singular. diff --git a/src/main/java/org/apache/commons/math/linear/DefaultFieldMatrixChangingVisitor.java b/src/main/java/org/apache/commons/math3/linear/DefaultFieldMatrixChangingVisitor.java similarity index 95% rename from src/main/java/org/apache/commons/math/linear/DefaultFieldMatrixChangingVisitor.java rename to src/main/java/org/apache/commons/math3/linear/DefaultFieldMatrixChangingVisitor.java index ed2b3bcfe..9cde41a88 100644 --- a/src/main/java/org/apache/commons/math/linear/DefaultFieldMatrixChangingVisitor.java +++ b/src/main/java/org/apache/commons/math3/linear/DefaultFieldMatrixChangingVisitor.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.FieldElement; /** * Default implementation of the {@link FieldMatrixChangingVisitor} interface. diff --git a/src/main/java/org/apache/commons/math/linear/DefaultFieldMatrixPreservingVisitor.java b/src/main/java/org/apache/commons/math3/linear/DefaultFieldMatrixPreservingVisitor.java similarity index 95% rename from src/main/java/org/apache/commons/math/linear/DefaultFieldMatrixPreservingVisitor.java rename to src/main/java/org/apache/commons/math3/linear/DefaultFieldMatrixPreservingVisitor.java index 0a31dd570..5d06a09ca 100644 --- a/src/main/java/org/apache/commons/math/linear/DefaultFieldMatrixPreservingVisitor.java +++ b/src/main/java/org/apache/commons/math3/linear/DefaultFieldMatrixPreservingVisitor.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.FieldElement; /** * Default implementation of the {@link FieldMatrixPreservingVisitor} interface. diff --git a/src/main/java/org/apache/commons/math/linear/DefaultIterativeLinearSolverEvent.java b/src/main/java/org/apache/commons/math3/linear/DefaultIterativeLinearSolverEvent.java similarity index 97% rename from src/main/java/org/apache/commons/math/linear/DefaultIterativeLinearSolverEvent.java rename to src/main/java/org/apache/commons/math3/linear/DefaultIterativeLinearSolverEvent.java index 24ed370e5..8eb388742 100644 --- a/src/main/java/org/apache/commons/math/linear/DefaultIterativeLinearSolverEvent.java +++ b/src/main/java/org/apache/commons/math3/linear/DefaultIterativeLinearSolverEvent.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.exception.MathUnsupportedOperationException; +import org.apache.commons.math3.exception.MathUnsupportedOperationException; /** * A default concrete implementation of the abstract class diff --git a/src/main/java/org/apache/commons/math/linear/DefaultRealMatrixChangingVisitor.java b/src/main/java/org/apache/commons/math3/linear/DefaultRealMatrixChangingVisitor.java similarity index 97% rename from src/main/java/org/apache/commons/math/linear/DefaultRealMatrixChangingVisitor.java rename to src/main/java/org/apache/commons/math3/linear/DefaultRealMatrixChangingVisitor.java index ad2798c93..882a6a016 100644 --- a/src/main/java/org/apache/commons/math/linear/DefaultRealMatrixChangingVisitor.java +++ b/src/main/java/org/apache/commons/math3/linear/DefaultRealMatrixChangingVisitor.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; /** * Default implementation of the {@link RealMatrixChangingVisitor} interface. diff --git a/src/main/java/org/apache/commons/math/linear/DefaultRealMatrixPreservingVisitor.java b/src/main/java/org/apache/commons/math3/linear/DefaultRealMatrixPreservingVisitor.java similarity index 97% rename from src/main/java/org/apache/commons/math/linear/DefaultRealMatrixPreservingVisitor.java rename to src/main/java/org/apache/commons/math3/linear/DefaultRealMatrixPreservingVisitor.java index a10f0ae37..68336bac1 100644 --- a/src/main/java/org/apache/commons/math/linear/DefaultRealMatrixPreservingVisitor.java +++ b/src/main/java/org/apache/commons/math3/linear/DefaultRealMatrixPreservingVisitor.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; /** * Default implementation of the {@link RealMatrixPreservingVisitor} interface. diff --git a/src/main/java/org/apache/commons/math/linear/EigenDecomposition.java b/src/main/java/org/apache/commons/math3/linear/EigenDecomposition.java similarity index 98% rename from src/main/java/org/apache/commons/math/linear/EigenDecomposition.java rename to src/main/java/org/apache/commons/math3/linear/EigenDecomposition.java index 09c1718b1..884cfaee2 100644 --- a/src/main/java/org/apache/commons/math/linear/EigenDecomposition.java +++ b/src/main/java/org/apache/commons/math3/linear/EigenDecomposition.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.Precision; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.Precision; +import org.apache.commons.math3.util.FastMath; /** * Calculates the eigen decomposition of a real symmetric diff --git a/src/main/java/org/apache/commons/math/linear/FieldDecompositionSolver.java b/src/main/java/org/apache/commons/math3/linear/FieldDecompositionSolver.java similarity index 92% rename from src/main/java/org/apache/commons/math/linear/FieldDecompositionSolver.java rename to src/main/java/org/apache/commons/math3/linear/FieldDecompositionSolver.java index f78af242d..0ebe72bfd 100644 --- a/src/main/java/org/apache/commons/math/linear/FieldDecompositionSolver.java +++ b/src/main/java/org/apache/commons/math3/linear/FieldDecompositionSolver.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.FieldElement; /** @@ -42,7 +42,7 @@ public interface FieldDecompositionSolver@@ -80,7 +80,7 @@ public abstract class PreconditionedIterativeLinearSolver * {@code x0} have dimensions inconsistent with {@code a} * @throws MaxCountExceededException at exhaustion of the iteration count, * unless a custom - * {@link org.apache.commons.math.util.Incrementor.MaxCountExceededCallback callback} + * {@link org.apache.commons.math3.util.Incrementor.MaxCountExceededCallback callback} * has been set at construction */ public RealVector solve(final RealLinearOperator a, @@ -163,7 +163,7 @@ public abstract class PreconditionedIterativeLinearSolver * dimensions inconsistent with {@code a} * @throws MaxCountExceededException at exhaustion of the iteration count, * unless a custom - * {@link org.apache.commons.math.util.Incrementor.MaxCountExceededCallback callback} + * {@link org.apache.commons.math3.util.Incrementor.MaxCountExceededCallback callback} * has been set at construction */ public RealVector solve(RealLinearOperator a, RealLinearOperator minv, @@ -192,7 +192,7 @@ public abstract class PreconditionedIterativeLinearSolver * {@code x0} have dimensions inconsistent with {@code a} * @throws MaxCountExceededException at exhaustion of the iteration count, * unless a custom - * {@link org.apache.commons.math.util.Incrementor.MaxCountExceededCallback callback} + * {@link org.apache.commons.math3.util.Incrementor.MaxCountExceededCallback callback} * has been set at construction. */ public abstract RealVector solveInPlace(RealLinearOperator a, diff --git a/src/main/java/org/apache/commons/math/linear/QRDecomposition.java b/src/main/java/org/apache/commons/math3/linear/QRDecomposition.java similarity index 99% rename from src/main/java/org/apache/commons/math/linear/QRDecomposition.java rename to src/main/java/org/apache/commons/math3/linear/QRDecomposition.java index e498e97bf..8fa37c2f4 100644 --- a/src/main/java/org/apache/commons/math/linear/QRDecomposition.java +++ b/src/main/java/org/apache/commons/math3/linear/QRDecomposition.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; import java.util.Arrays; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/linear/RealLinearOperator.java b/src/main/java/org/apache/commons/math3/linear/RealLinearOperator.java similarity index 93% rename from src/main/java/org/apache/commons/math/linear/RealLinearOperator.java rename to src/main/java/org/apache/commons/math3/linear/RealLinearOperator.java index 4ea99a14a..ada9873f4 100644 --- a/src/main/java/org/apache/commons/math/linear/RealLinearOperator.java +++ b/src/main/java/org/apache/commons/math3/linear/RealLinearOperator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.DimensionMismatchException; /** * This class defines a linear operator operating on real ({@code double}) @@ -70,7 +70,7 @@ public abstract class RealLinearOperator { * * @param x the vector to operate on * @return the product of {@code this} instance with {@code x} - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if the column dimension does not match the size of {@code x} */ public abstract RealVector operate(final RealVector x); @@ -84,7 +84,7 @@ public abstract class RealLinearOperator { * @param x the vector to operate on * @return the product of the transpose of {@code this} instance with * {@code x} - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if the row dimension does not match the size of {@code x} * @throws UnsupportedOperationException if this operation is not supported * by {@code this} operator diff --git a/src/main/java/org/apache/commons/math/linear/RealMatrix.java b/src/main/java/org/apache/commons/math3/linear/RealMatrix.java similarity index 93% rename from src/main/java/org/apache/commons/math/linear/RealMatrix.java rename to src/main/java/org/apache/commons/math3/linear/RealMatrix.java index 3f4ac508d..b414a3409 100644 --- a/src/main/java/org/apache/commons/math/linear/RealMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/RealMatrix.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.ZeroException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.ZeroException; /** * Interface defining a real-valued matrix with basic algebraic operations. @@ -38,7 +38,7 @@ public interface RealMatrix extends AnyMatrix { * @param rowDimension the number of rows in the new matrix * @param columnDimension the number of columns in the new matrix * @return a new matrix of the same type as the instance - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if row or column dimension is not positive. * @since 2.0 */ @@ -147,7 +147,7 @@ public interface RealMatrix extends AnyMatrix { * @param endColumn Final column index (inclusive) * @return The subMatrix containing the data of the * specified rows and columns - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the indices are not valid. */ RealMatrix getSubMatrix(int startRow, int endRow, int startColumn, int endColumn); @@ -160,7 +160,7 @@ public interface RealMatrix extends AnyMatrix { * @param selectedColumns Array of column indices. * @return The subMatrix containing the data in the * specified rows and columns - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the indices are not valid. */ RealMatrix getSubMatrix(int[] selectedRows, int[] selectedColumns); @@ -175,7 +175,7 @@ public interface RealMatrix extends AnyMatrix { * @param endColumn Final column index (inclusive) * @param destination The arrays where the submatrix data should be copied * (if larger than rows/columns counts, only the upper-left part will be used) - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * indices are not valid. * @exception IllegalArgumentException if the destination array is too small */ @@ -189,7 +189,7 @@ public interface RealMatrix extends AnyMatrix { * @param selectedColumns Array of column indices. * @param destination The arrays where the submatrix data should be copied * (if larger than rows/columns counts, only the upper-left part will be used) - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * indices are not valid. * @exception IllegalArgumentException if the destination array is too small */ @@ -232,7 +232,7 @@ public interface RealMatrix extends AnyMatrix { * * @param row Row to be fetched. * @return row Matrix. - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the specified row index is invalid. */ RealMatrix getRowMatrix(int row); @@ -244,7 +244,7 @@ public interface RealMatrix extends AnyMatrix { * @param row Row to be set. * @param matrix Row matrix (must have one row and the same number of * columns as the instance). - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * specified row index is invalid. * @throws MatrixDimensionMismatchException * if the matrix dimensions do not match one instance row. @@ -257,7 +257,7 @@ public interface RealMatrix extends AnyMatrix { * * @param column Column to be fetched. * @return column Matrix. - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the specified column index is invalid. */ RealMatrix getColumnMatrix(int column); @@ -269,7 +269,7 @@ public interface RealMatrix extends AnyMatrix { * @param column Column to be set. * @param matrix Column matrix (must have one column and the same number * of rows as the instance). - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the specified column index is invalid. * @throws MatrixDimensionMismatchException * if the {@code matrix} dimensions do not match one instance column. @@ -282,7 +282,7 @@ public interface RealMatrix extends AnyMatrix { * * @param row Row to be fetched. * @return a row vector. - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the specified row index is invalid. */ RealVector getRowVector(int row); @@ -294,7 +294,7 @@ public interface RealMatrix extends AnyMatrix { * @param row Row to be set. * @param vector row vector (must have the same number of columns * as the instance). - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the specified row index is invalid. * @throws MatrixDimensionMismatchException * if the vector dimension does not match one instance row. @@ -307,7 +307,7 @@ public interface RealMatrix extends AnyMatrix { * * @param column Column to be fetched. * @return a column vector. - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the specified column index is invalid */ RealVector getColumnVector(int column); @@ -319,7 +319,7 @@ public interface RealMatrix extends AnyMatrix { * @param column Column to be set. * @param vector column vector (must have the same number of rows as * the instance). - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * specified column index is invalid. * @throws MatrixDimensionMismatchException * if the vector dimension does not match one instance column. @@ -332,7 +332,7 @@ public interface RealMatrix extends AnyMatrix { * * @param row Row to be fetched. * @return the array of entries in the row. - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * specified row index is not valid. */ double[] getRow(int row); @@ -344,7 +344,7 @@ public interface RealMatrix extends AnyMatrix { * @param row Row to be set. * @param array Row matrix (must have the same number of columns as * the instance) - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * specified row index is invalid. * @throws MatrixDimensionMismatchException * if the array size does not match one instance row. @@ -357,7 +357,7 @@ public interface RealMatrix extends AnyMatrix { * * @param column Column to be fetched. * @return the array of entries in the column. - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * specified column index is not valid. */ double[] getColumn(int column); @@ -369,7 +369,7 @@ public interface RealMatrix extends AnyMatrix { * @param column Column to be set. * @param array Column array (must have the same number of rows as * the instance). - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * specified column index is invalid. * @throws MatrixDimensionMismatchException * if the array size does not match one instance column. @@ -383,7 +383,7 @@ public interface RealMatrix extends AnyMatrix { * @param row Row location of entry to be fetched. * @param column Column location of entry to be fetched. * @return the matrix entry at {@code (row, column)}. - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * row or column index is not valid. */ double getEntry(int row, int column); @@ -395,7 +395,7 @@ public interface RealMatrix extends AnyMatrix { * @param row Row location of entry to be set. * @param column Column location of entry to be set. * @param value matrix entry to be set. - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the row or column index is not valid * @since 2.0 */ @@ -408,7 +408,7 @@ public interface RealMatrix extends AnyMatrix { * @param row Row location of entry to be set. * @param column Column location of entry to be set. * @param increment value to add to the matrix entry. - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the row or column index is not valid. * @since 2.0 */ @@ -421,7 +421,7 @@ public interface RealMatrix extends AnyMatrix { * @param row Row location of entry to be set. * @param column Column location of entry to be set. * @param factor Multiplication factor for the matrix entry. - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the row or column index is not valid. * @since 2.0 */ @@ -534,7 +534,7 @@ public interface RealMatrix extends AnyMatrix { * @param endRow Final row index (inclusive) * @param startColumn Initial column index * @param endColumn Final column index - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the indices are not valid. * @see #walkInRowOrder(RealMatrixChangingVisitor) * @see #walkInRowOrder(RealMatrixPreservingVisitor) @@ -563,7 +563,7 @@ public interface RealMatrix extends AnyMatrix { * @param endRow Final row index (inclusive) * @param startColumn Initial column index * @param endColumn Final column index - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the indices are not valid. * @see #walkInRowOrder(RealMatrixChangingVisitor) * @see #walkInRowOrder(RealMatrixPreservingVisitor) @@ -636,7 +636,7 @@ public interface RealMatrix extends AnyMatrix { * @param endRow Final row index (inclusive) * @param startColumn Initial column index * @param endColumn Final column index - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the indices are not valid. * @see #walkInRowOrder(RealMatrixChangingVisitor) * @see #walkInRowOrder(RealMatrixPreservingVisitor) @@ -665,7 +665,7 @@ public interface RealMatrix extends AnyMatrix { * @param endRow Final row index (inclusive) * @param startColumn Initial column index * @param endColumn Final column index - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the indices are not valid. * @see #walkInRowOrder(RealMatrixChangingVisitor) * @see #walkInRowOrder(RealMatrixPreservingVisitor) @@ -735,7 +735,7 @@ public interface RealMatrix extends AnyMatrix { * @param endRow Final row index (inclusive) * @param startColumn Initial column index * @param endColumn Final column index (inclusive) - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the indices are not valid. * @see #walkInRowOrder(RealMatrixChangingVisitor) * @see #walkInRowOrder(RealMatrixPreservingVisitor) @@ -763,7 +763,7 @@ public interface RealMatrix extends AnyMatrix { * @param endRow Final row index (inclusive) * @param startColumn Initial column index * @param endColumn Final column index (inclusive) - * @throws org.apache.commons.math.exception.OutOfRangeException if the + * @throws org.apache.commons.math3.exception.OutOfRangeException if the * indices are not valid. * @see #walkInRowOrder(RealMatrixChangingVisitor) * @see #walkInRowOrder(RealMatrixPreservingVisitor) diff --git a/src/main/java/org/apache/commons/math/linear/RealMatrixChangingVisitor.java b/src/main/java/org/apache/commons/math3/linear/RealMatrixChangingVisitor.java similarity index 98% rename from src/main/java/org/apache/commons/math/linear/RealMatrixChangingVisitor.java rename to src/main/java/org/apache/commons/math3/linear/RealMatrixChangingVisitor.java index 1f9f88ecc..f335bb1ee 100644 --- a/src/main/java/org/apache/commons/math/linear/RealMatrixChangingVisitor.java +++ b/src/main/java/org/apache/commons/math3/linear/RealMatrixChangingVisitor.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; /** * Interface defining a visitor for matrix entries. diff --git a/src/main/java/org/apache/commons/math/linear/RealMatrixPreservingVisitor.java b/src/main/java/org/apache/commons/math3/linear/RealMatrixPreservingVisitor.java similarity index 97% rename from src/main/java/org/apache/commons/math/linear/RealMatrixPreservingVisitor.java rename to src/main/java/org/apache/commons/math3/linear/RealMatrixPreservingVisitor.java index dbae91e4a..0d485c362 100644 --- a/src/main/java/org/apache/commons/math/linear/RealMatrixPreservingVisitor.java +++ b/src/main/java/org/apache/commons/math3/linear/RealMatrixPreservingVisitor.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; /** * Interface defining a visitor for matrix entries. diff --git a/src/main/java/org/apache/commons/math/linear/RealVector.java b/src/main/java/org/apache/commons/math3/linear/RealVector.java similarity index 95% rename from src/main/java/org/apache/commons/math/linear/RealVector.java rename to src/main/java/org/apache/commons/math3/linear/RealVector.java index 886ddbc25..91b089e03 100644 --- a/src/main/java/org/apache/commons/math/linear/RealVector.java +++ b/src/main/java/org/apache/commons/math3/linear/RealVector.java @@ -15,22 +15,22 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; import java.util.Iterator; import java.util.NoSuchElementException; -import org.apache.commons.math.exception.MathUnsupportedOperationException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.MathArithmeticException; -import org.apache.commons.math.analysis.FunctionUtils; -import org.apache.commons.math.analysis.function.Add; -import org.apache.commons.math.analysis.function.Multiply; -import org.apache.commons.math.analysis.function.Divide; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathUnsupportedOperationException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math3.analysis.FunctionUtils; +import org.apache.commons.math3.analysis.function.Add; +import org.apache.commons.math3.analysis.function.Multiply; +import org.apache.commons.math3.analysis.function.Divide; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** * Class defining a real-valued vector with basic algebraic operations. @@ -68,7 +68,7 @@ public abstract class RealVector { * * @param index Index location of entry to be fetched. * @return the vector entry at {@code index}. - * @throws org.apache.commons.math.exception.OutOfRangeException + * @throws org.apache.commons.math3.exception.OutOfRangeException * if the index is not valid. * @see #setEntry(int, double) */ @@ -79,7 +79,7 @@ public abstract class RealVector { * * @param index element index. * @param value new value for the element. - * @throws org.apache.commons.math.exception.OutOfRangeException + * @throws org.apache.commons.math3.exception.OutOfRangeException * if the index is not valid. * @see #getEntry(int) */ @@ -90,7 +90,7 @@ public abstract class RealVector { * * @param index Index location of entry to be set. * @param increment Value to add to the vector entry. - * @throws org.apache.commons.math.exception.OutOfRangeException if + * @throws org.apache.commons.math3.exception.OutOfRangeException if * the index is not valid. * @since 3.0 */ @@ -120,7 +120,7 @@ public abstract class RealVector { * @param index index of first element. * @param n number of elements to be retrieved. * @return a vector containing n elements. - * @throws org.apache.commons.math.exception.OutOfRangeException + * @throws org.apache.commons.math3.exception.OutOfRangeException * if the index is not valid. */ public abstract RealVector getSubVector(int index, int n); @@ -130,7 +130,7 @@ public abstract class RealVector { * * @param index index of first element to be set. * @param v vector containing the values to set. - * @throws org.apache.commons.math.exception.OutOfRangeException + * @throws org.apache.commons.math3.exception.OutOfRangeException * if the index is not valid. */ public abstract void setSubVector(int index, RealVector v); @@ -196,7 +196,7 @@ public abstract class RealVector { * * @param v Vector to be added. * @return {@code this} + {@code v}. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. */ public RealVector add(RealVector v) { @@ -216,7 +216,7 @@ public abstract class RealVector { * * @param v Vector to be subtracted. * @return {@code this} - {@code v}. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. */ public RealVector subtract(RealVector v) { @@ -267,7 +267,7 @@ public abstract class RealVector { * * @param v Vector with which dot product should be computed * @return the scalar dot product between this instance and {@code v}. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. */ public double dotProduct(RealVector v) { @@ -304,7 +304,7 @@ public abstract class RealVector { * * @param v Vector by which instance elements must be divided. * @return a vector containing this[i] / v[i] for all i. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. */ public abstract RealVector ebeDivide(RealVector v); @@ -314,7 +314,7 @@ public abstract class RealVector { * * @param v Vector by which instance elements must be multiplied * @return a vector containing this[i] * v[i] for all i. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. */ public abstract RealVector ebeMultiply(RealVector v); @@ -327,7 +327,7 @@ public abstract class RealVector { * * @param v Vector to which distance is requested. * @return the distance between two vectors. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. * @see #getL1Distance(RealVector) * @see #getLInfDistance(RealVector) @@ -414,7 +414,7 @@ public abstract class RealVector { * * @param v Vector to which distance is requested. * @return the distance between two vectors. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. */ public double getL1Distance(RealVector v) { @@ -436,7 +436,7 @@ public abstract class RealVector { * * @param v Vector to which distance is requested. * @return the distance between two vectors. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. * @see #getDistance(RealVector) * @see #getL1Distance(RealVector) @@ -617,7 +617,7 @@ public abstract class RealVector { * * @param v vector onto which instance must be projected. * @return projection of the instance onto {@code v}. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code v} is not the same size as this vector. */ public abstract RealVector projection(RealVector v); @@ -668,7 +668,7 @@ public abstract class RealVector { * Converts this vector into a unit vector. * The instance itself is changed by this method. * - * @throws org.apache.commons.math.exception.MathArithmeticException + * @throws org.apache.commons.math3.exception.MathArithmeticException * if the norm is zero. */ public void unitize() { @@ -770,7 +770,7 @@ public abstract class RealVector { * @param y Vector with which {@code this} is linearly combined. * @return a vector containing {@code a * this[i] + b * y[i]} for all * {@code i}. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code y} is not the same size as this vector. */ public RealVector combine(double a, double b, RealVector y) { @@ -786,7 +786,7 @@ public abstract class RealVector { * @param y Vector with which {@code this} is linearly combined. * @return {@code this}, with components equal to * {@code a * this[i] + b * y[i]} for all {@code i}. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if {@code y} is not the same size as this vector. */ public RealVector combineToSelf(double a, double b, RealVector y) { diff --git a/src/main/java/org/apache/commons/math/linear/RealVectorFormat.java b/src/main/java/org/apache/commons/math3/linear/RealVectorFormat.java similarity index 98% rename from src/main/java/org/apache/commons/math/linear/RealVectorFormat.java rename to src/main/java/org/apache/commons/math3/linear/RealVectorFormat.java index 97ab5968e..f1039a04d 100644 --- a/src/main/java/org/apache/commons/math/linear/RealVectorFormat.java +++ b/src/main/java/org/apache/commons/math3/linear/RealVectorFormat.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; import java.text.FieldPosition; import java.text.NumberFormat; @@ -24,8 +24,8 @@ import java.util.ArrayList; import java.util.List; import java.util.Locale; -import org.apache.commons.math.exception.MathParseException; -import org.apache.commons.math.util.CompositeFormat; +import org.apache.commons.math3.exception.MathParseException; +import org.apache.commons.math3.util.CompositeFormat; /** * Formats a vector in components list format "{v0; v1; ...; vk-1}". diff --git a/src/main/java/org/apache/commons/math/linear/RectangularCholeskyDecomposition.java b/src/main/java/org/apache/commons/math3/linear/RectangularCholeskyDecomposition.java similarity index 97% rename from src/main/java/org/apache/commons/math/linear/RectangularCholeskyDecomposition.java rename to src/main/java/org/apache/commons/math3/linear/RectangularCholeskyDecomposition.java index 24a91e174..38584d420 100644 --- a/src/main/java/org/apache/commons/math/linear/RectangularCholeskyDecomposition.java +++ b/src/main/java/org/apache/commons/math3/linear/RectangularCholeskyDecomposition.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** * Calculates the rectangular Cholesky decomposition of a matrix. @@ -29,7 +29,7 @@ import org.apache.commons.math.util.FastMath; * is that rows/columns may be permuted (hence the rectangular shape instead * of the traditional triangular shape) and there is a threshold to ignore * small diagonal elements. This is used for example to generate {@link - * org.apache.commons.math.random.CorrelatedRandomVectorGenerator correlated + * org.apache.commons.math3.random.CorrelatedRandomVectorGenerator correlated * random n-dimensions vectors} in a p-dimension subspace (p < n). * In other words, it allows generating random vectors from a covariance * matrix that is only positive semidefinite, and not positive definite.
diff --git a/src/main/java/org/apache/commons/math/linear/SingularMatrixException.java b/src/main/java/org/apache/commons/math3/linear/SingularMatrixException.java similarity index 87% rename from src/main/java/org/apache/commons/math/linear/SingularMatrixException.java rename to src/main/java/org/apache/commons/math3/linear/SingularMatrixException.java index 868d09df1..2f18eee12 100644 --- a/src/main/java/org/apache/commons/math/linear/SingularMatrixException.java +++ b/src/main/java/org/apache/commons/math3/linear/SingularMatrixException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when a non-singular matrix is expected. diff --git a/src/main/java/org/apache/commons/math/linear/SingularOperatorException.java b/src/main/java/org/apache/commons/math3/linear/SingularOperatorException.java similarity index 87% rename from src/main/java/org/apache/commons/math/linear/SingularOperatorException.java rename to src/main/java/org/apache/commons/math3/linear/SingularOperatorException.java index 55b1e5fa0..3bd7ba958 100644 --- a/src/main/java/org/apache/commons/math/linear/SingularOperatorException.java +++ b/src/main/java/org/apache/commons/math3/linear/SingularOperatorException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Exception to be thrown when trying to invert a singular operator. diff --git a/src/main/java/org/apache/commons/math/linear/SingularValueDecomposition.java b/src/main/java/org/apache/commons/math3/linear/SingularValueDecomposition.java similarity index 98% rename from src/main/java/org/apache/commons/math/linear/SingularValueDecomposition.java rename to src/main/java/org/apache/commons/math3/linear/SingularValueDecomposition.java index c80c22e9f..ba2ed14c3 100644 --- a/src/main/java/org/apache/commons/math/linear/SingularValueDecomposition.java +++ b/src/main/java/org/apache/commons/math3/linear/SingularValueDecomposition.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.Precision; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.Precision; /** * Calculates the compact Singular Value Decomposition of a matrix. @@ -692,7 +692,7 @@ public class SingularValueDecomposition { * * @param b Right-hand side of the equation A × X = B * @return a vector X that minimizes the two norm of A × X - B - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if the matrices dimensions do not match. */ public RealVector solve(final RealVector b) { @@ -708,7 +708,7 @@ public class SingularValueDecomposition { * * @param b Right-hand side of the equation A × X = B * @return a matrix X that minimizes the two norm of A × X - B - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if the matrices dimensions do not match. */ public RealMatrix solve(final RealMatrix b) { diff --git a/src/main/java/org/apache/commons/math/linear/SparseFieldMatrix.java b/src/main/java/org/apache/commons/math3/linear/SparseFieldMatrix.java similarity index 95% rename from src/main/java/org/apache/commons/math/linear/SparseFieldMatrix.java rename to src/main/java/org/apache/commons/math3/linear/SparseFieldMatrix.java index acf8c0ae5..73a425906 100644 --- a/src/main/java/org/apache/commons/math/linear/SparseFieldMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/SparseFieldMatrix.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; -import org.apache.commons.math.util.OpenIntToFieldHashMap; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; +import org.apache.commons.math3.util.OpenIntToFieldHashMap; /** * Sparse matrix implementation based on an open addressed map. @@ -55,7 +55,7 @@ public class SparseFieldMatrix@@ -932,7 +932,7 @@ public class SymmLQ * dimensions inconsistent with {@code a} * @throws MaxCountExceededException at exhaustion of the iteration count, * unless a custom - * {@link org.apache.commons.math.util.Incrementor.MaxCountExceededCallback callback} + * {@link org.apache.commons.math3.util.Incrementor.MaxCountExceededCallback callback} * has been set at construction * @throws NonSelfAdjointOperatorException if {@link #getCheck()} is * {@code true}, and {@code a} or {@code minv} is not self-adjoint @@ -1020,7 +1020,7 @@ public class SymmLQ * inconsistent with {@code a} * @throws MaxCountExceededException at exhaustion of the iteration count, * unless a custom - * {@link org.apache.commons.math.util.Incrementor.MaxCountExceededCallback callback} + * {@link org.apache.commons.math3.util.Incrementor.MaxCountExceededCallback callback} * has been set at construction * @throws NonSelfAdjointOperatorException if {@link #getCheck()} is * {@code true}, and {@code a} is not self-adjoint @@ -1112,7 +1112,7 @@ public class SymmLQ * {@code x} have dimensions inconsistent with {@code a}. * @throws MaxCountExceededException at exhaustion of the iteration count, * unless a custom - * {@link org.apache.commons.math.util.Incrementor.MaxCountExceededCallback callback} + * {@link org.apache.commons.math3.util.Incrementor.MaxCountExceededCallback callback} * has been set at construction * @throws NonSelfAdjointOperatorException if {@link #getCheck()} is * {@code true}, and {@code a} or {@code minv} is not self-adjoint diff --git a/src/main/java/org/apache/commons/math/linear/TriDiagonalTransformer.java b/src/main/java/org/apache/commons/math3/linear/TriDiagonalTransformer.java similarity index 99% rename from src/main/java/org/apache/commons/math/linear/TriDiagonalTransformer.java rename to src/main/java/org/apache/commons/math3/linear/TriDiagonalTransformer.java index bf9b51376..601682567 100644 --- a/src/main/java/org/apache/commons/math/linear/TriDiagonalTransformer.java +++ b/src/main/java/org/apache/commons/math3/linear/TriDiagonalTransformer.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; import java.util.Arrays; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/linear/package-info.java b/src/main/java/org/apache/commons/math3/linear/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/linear/package-info.java rename to src/main/java/org/apache/commons/math3/linear/package-info.java index 4250cc372..4c989b8b5 100644 --- a/src/main/java/org/apache/commons/math/linear/package-info.java +++ b/src/main/java/org/apache/commons/math3/linear/package-info.java @@ -17,4 +17,4 @@ /** * Linear algebra support. */ -package org.apache.commons.math.linear; +package org.apache.commons.math3.linear; diff --git a/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java b/src/main/java/org/apache/commons/math3/ode/AbstractIntegrator.java similarity index 93% rename from src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/AbstractIntegrator.java index 9d38c2afc..0aadb15ad 100644 --- a/src/main/java/org/apache/commons/math/ode/AbstractIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/AbstractIntegrator.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.util.ArrayList; import java.util.Collection; @@ -26,21 +26,21 @@ import java.util.List; import java.util.SortedSet; import java.util.TreeSet; -import org.apache.commons.math.analysis.solvers.BracketingNthOrderBrentSolver; -import org.apache.commons.math.analysis.solvers.UnivariateSolver; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.ode.events.EventHandler; -import org.apache.commons.math.ode.events.EventState; -import org.apache.commons.math.ode.sampling.AbstractStepInterpolator; -import org.apache.commons.math.ode.sampling.StepHandler; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.Incrementor; -import org.apache.commons.math.util.Precision; +import org.apache.commons.math3.analysis.solvers.BracketingNthOrderBrentSolver; +import org.apache.commons.math3.analysis.solvers.UnivariateSolver; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.ode.events.EventHandler; +import org.apache.commons.math3.ode.events.EventState; +import org.apache.commons.math3.ode.sampling.AbstractStepInterpolator; +import org.apache.commons.math3.ode.sampling.StepHandler; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.Incrementor; +import org.apache.commons.math3.util.Precision; /** * Base class managing common boilerplate for all integrators. diff --git a/src/main/java/org/apache/commons/math/ode/AbstractParameterizable.java b/src/main/java/org/apache/commons/math3/ode/AbstractParameterizable.java similarity index 93% rename from src/main/java/org/apache/commons/math/ode/AbstractParameterizable.java rename to src/main/java/org/apache/commons/math3/ode/AbstractParameterizable.java index 4766aa23e..644592408 100644 --- a/src/main/java/org/apache/commons/math/ode/AbstractParameterizable.java +++ b/src/main/java/org/apache/commons/math3/ode/AbstractParameterizable.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.util.ArrayList; import java.util.Collection; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** This abstract class provides boilerplate parameters list. * diff --git a/src/main/java/org/apache/commons/math/ode/ContinuousOutputModel.java b/src/main/java/org/apache/commons/math3/ode/ContinuousOutputModel.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/ContinuousOutputModel.java rename to src/main/java/org/apache/commons/math3/ode/ContinuousOutputModel.java index b240206d8..4ea4e458b 100644 --- a/src/main/java/org/apache/commons/math/ode/ContinuousOutputModel.java +++ b/src/main/java/org/apache/commons/math3/ode/ContinuousOutputModel.java @@ -15,18 +15,18 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.ode.sampling.StepHandler; -import org.apache.commons.math.ode.sampling.StepInterpolator; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.ode.sampling.StepHandler; +import org.apache.commons.math3.ode.sampling.StepInterpolator; +import org.apache.commons.math3.util.FastMath; /** * This class stores all information provided by an ODE integrator @@ -77,7 +77,7 @@ import org.apache.commons.math.util.FastMath; * ContinuousOutputModel instance can be important if the state vector * is large, if the integration interval is long or if the steps are * small (which can result from small tolerance settings in {@link - * org.apache.commons.math.ode.nonstiff.AdaptiveStepsizeIntegrator adaptive + * org.apache.commons.math3.ode.nonstiff.AdaptiveStepsizeIntegrator adaptive * step size integrators}).
* * @see StepHandler diff --git a/src/main/java/org/apache/commons/math/ode/EquationsMapper.java b/src/main/java/org/apache/commons/math3/ode/EquationsMapper.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/EquationsMapper.java rename to src/main/java/org/apache/commons/math3/ode/EquationsMapper.java index 5972c669b..a5289dc4a 100644 --- a/src/main/java/org/apache/commons/math/ode/EquationsMapper.java +++ b/src/main/java/org/apache/commons/math3/ode/EquationsMapper.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.io.Serializable; -import org.apache.commons.math.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.DimensionMismatchException; /** * Class mapping the part of a complete state or derivative that pertains diff --git a/src/main/java/org/apache/commons/math/ode/ExpandableStatefulODE.java b/src/main/java/org/apache/commons/math3/ode/ExpandableStatefulODE.java similarity index 99% rename from src/main/java/org/apache/commons/math/ode/ExpandableStatefulODE.java rename to src/main/java/org/apache/commons/math3/ode/ExpandableStatefulODE.java index e05770564..167f87a06 100644 --- a/src/main/java/org/apache/commons/math/ode/ExpandableStatefulODE.java +++ b/src/main/java/org/apache/commons/math3/ode/ExpandableStatefulODE.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.DimensionMismatchException; /** diff --git a/src/main/java/org/apache/commons/math/ode/FirstOrderConverter.java b/src/main/java/org/apache/commons/math3/ode/FirstOrderConverter.java similarity index 99% rename from src/main/java/org/apache/commons/math/ode/FirstOrderConverter.java rename to src/main/java/org/apache/commons/math3/ode/FirstOrderConverter.java index 709dc2c73..e47be5dd4 100644 --- a/src/main/java/org/apache/commons/math/ode/FirstOrderConverter.java +++ b/src/main/java/org/apache/commons/math3/ode/FirstOrderConverter.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; /** This class converts second order differential equations to first diff --git a/src/main/java/org/apache/commons/math/ode/FirstOrderDifferentialEquations.java b/src/main/java/org/apache/commons/math3/ode/FirstOrderDifferentialEquations.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/FirstOrderDifferentialEquations.java rename to src/main/java/org/apache/commons/math3/ode/FirstOrderDifferentialEquations.java index 54b965fab..0c76a1866 100644 --- a/src/main/java/org/apache/commons/math/ode/FirstOrderDifferentialEquations.java +++ b/src/main/java/org/apache/commons/math3/ode/FirstOrderDifferentialEquations.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; diff --git a/src/main/java/org/apache/commons/math/ode/FirstOrderIntegrator.java b/src/main/java/org/apache/commons/math3/ode/FirstOrderIntegrator.java similarity index 87% rename from src/main/java/org/apache/commons/math/ode/FirstOrderIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/FirstOrderIntegrator.java index b2e01a13b..38bbf4d9e 100644 --- a/src/main/java/org/apache/commons/math/ode/FirstOrderIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/FirstOrderIntegrator.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; /** This interface represents a first order integrator for * differential equations. @@ -29,8 +29,8 @@ import org.apache.commons.math.exception.MathIllegalStateException; * FirstOrderDifferentialEquations} interface. * * @see FirstOrderDifferentialEquations - * @see org.apache.commons.math.ode.sampling.StepHandler - * @see org.apache.commons.math.ode.events.EventHandler + * @see org.apache.commons.math3.ode.sampling.StepHandler + * @see org.apache.commons.math3.ode.events.EventHandler * @version $Id$ * @since 1.2 */ @@ -51,7 +51,7 @@ public interface FirstOrderIntegrator extends ODEIntegrator { * step (and hence at the end of integration), can be the same object as y0 * @return stop time, will be the same as target time if integration reached its * target, but may be different if some {@link - * org.apache.commons.math.ode.events.EventHandler} stops it at some point. + * org.apache.commons.math3.ode.events.EventHandler} stops it at some point. * @throws MathIllegalStateException if the integrator cannot perform integration * @throws MathIllegalArgumentException if integration parameters are wrong (typically * too small integration span) diff --git a/src/main/java/org/apache/commons/math/ode/JacobianMatrices.java b/src/main/java/org/apache/commons/math3/ode/JacobianMatrices.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/JacobianMatrices.java rename to src/main/java/org/apache/commons/math3/ode/JacobianMatrices.java index 03aceb1e4..fd7c1139d 100644 --- a/src/main/java/org/apache/commons/math/ode/JacobianMatrices.java +++ b/src/main/java/org/apache/commons/math3/ode/JacobianMatrices.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * This class defines a set of {@link SecondaryEquations secondary equations} to diff --git a/src/main/java/org/apache/commons/math/ode/MainStateJacobianProvider.java b/src/main/java/org/apache/commons/math3/ode/MainStateJacobianProvider.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/MainStateJacobianProvider.java rename to src/main/java/org/apache/commons/math3/ode/MainStateJacobianProvider.java index 10b43e7a4..516acc130 100644 --- a/src/main/java/org/apache/commons/math/ode/MainStateJacobianProvider.java +++ b/src/main/java/org/apache/commons/math3/ode/MainStateJacobianProvider.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; /** Interface expanding {@link FirstOrderDifferentialEquations first order * differential equations} in order to compute exactly the main state jacobian diff --git a/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java b/src/main/java/org/apache/commons/math3/ode/MultistepIntegrator.java similarity index 95% rename from src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/MultistepIntegrator.java index f284a932d..87252baea 100644 --- a/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/MultistepIntegrator.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.ode.nonstiff.AdaptiveStepsizeIntegrator; -import org.apache.commons.math.ode.nonstiff.DormandPrince853Integrator; -import org.apache.commons.math.ode.sampling.StepHandler; -import org.apache.commons.math.ode.sampling.StepInterpolator; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.ode.nonstiff.AdaptiveStepsizeIntegrator; +import org.apache.commons.math3.ode.nonstiff.DormandPrince853Integrator; +import org.apache.commons.math3.ode.sampling.StepHandler; +import org.apache.commons.math3.ode.sampling.StepInterpolator; +import org.apache.commons.math3.util.FastMath; /** * This class is the base class for multistep integrators for Ordinary @@ -53,8 +53,8 @@ import org.apache.commons.math.util.FastMath; * factor is therefore set to a quite low value: 21/order. * * - * @see org.apache.commons.math.ode.nonstiff.AdamsBashforthIntegrator - * @see org.apache.commons.math.ode.nonstiff.AdamsMoultonIntegrator + * @see org.apache.commons.math3.ode.nonstiff.AdamsBashforthIntegrator + * @see org.apache.commons.math3.ode.nonstiff.AdamsMoultonIntegrator * @version $Id$ * @since 2.0 */ diff --git a/src/main/java/org/apache/commons/math/ode/ODEIntegrator.java b/src/main/java/org/apache/commons/math3/ode/ODEIntegrator.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/ODEIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/ODEIntegrator.java index 99acc3448..f5a231174 100644 --- a/src/main/java/org/apache/commons/math/ode/ODEIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/ODEIntegrator.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.util.Collection; -import org.apache.commons.math.analysis.solvers.UnivariateSolver; -import org.apache.commons.math.ode.events.EventHandler; -import org.apache.commons.math.ode.sampling.StepHandler; +import org.apache.commons.math3.analysis.solvers.UnivariateSolver; +import org.apache.commons.math3.ode.events.EventHandler; +import org.apache.commons.math3.ode.sampling.StepHandler; /** * This interface defines the common parts shared by integrators diff --git a/src/main/java/org/apache/commons/math/ode/ParameterConfiguration.java b/src/main/java/org/apache/commons/math3/ode/ParameterConfiguration.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/ParameterConfiguration.java rename to src/main/java/org/apache/commons/math3/ode/ParameterConfiguration.java index 0ffc7abce..b6da40a8c 100644 --- a/src/main/java/org/apache/commons/math/ode/ParameterConfiguration.java +++ b/src/main/java/org/apache/commons/math3/ode/ParameterConfiguration.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.io.Serializable; diff --git a/src/main/java/org/apache/commons/math/ode/ParameterJacobianProvider.java b/src/main/java/org/apache/commons/math3/ode/ParameterJacobianProvider.java similarity index 94% rename from src/main/java/org/apache/commons/math/ode/ParameterJacobianProvider.java rename to src/main/java/org/apache/commons/math3/ode/ParameterJacobianProvider.java index 778582907..0e964a937 100644 --- a/src/main/java/org/apache/commons/math/ode/ParameterJacobianProvider.java +++ b/src/main/java/org/apache/commons/math3/ode/ParameterJacobianProvider.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; -import org.apache.commons.math.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; /** Interface to compute exactly Jacobian matrix for some parameter * when computing {@link JacobianMatrices partial derivatives equations}. diff --git a/src/main/java/org/apache/commons/math/ode/ParameterJacobianWrapper.java b/src/main/java/org/apache/commons/math3/ode/ParameterJacobianWrapper.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/ParameterJacobianWrapper.java rename to src/main/java/org/apache/commons/math3/ode/ParameterJacobianWrapper.java index f87e1cf47..53d6f2608 100644 --- a/src/main/java/org/apache/commons/math/ode/ParameterJacobianWrapper.java +++ b/src/main/java/org/apache/commons/math3/ode/ParameterJacobianWrapper.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.util.Collection; import java.util.HashMap; diff --git a/src/main/java/org/apache/commons/math/ode/Parameterizable.java b/src/main/java/org/apache/commons/math3/ode/Parameterizable.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/Parameterizable.java rename to src/main/java/org/apache/commons/math3/ode/Parameterizable.java index f3dad46b5..4793026dc 100644 --- a/src/main/java/org/apache/commons/math/ode/Parameterizable.java +++ b/src/main/java/org/apache/commons/math3/ode/Parameterizable.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.util.Collection; diff --git a/src/main/java/org/apache/commons/math/ode/ParameterizedODE.java b/src/main/java/org/apache/commons/math3/ode/ParameterizedODE.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/ParameterizedODE.java rename to src/main/java/org/apache/commons/math3/ode/ParameterizedODE.java index df29f3e20..f18f95a28 100644 --- a/src/main/java/org/apache/commons/math/ode/ParameterizedODE.java +++ b/src/main/java/org/apache/commons/math3/ode/ParameterizedODE.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; /** Interface to compute by finite difference Jacobian matrix for some parameter * when computing {@link JacobianMatrices partial derivatives equations}. diff --git a/src/main/java/org/apache/commons/math/ode/ParameterizedWrapper.java b/src/main/java/org/apache/commons/math3/ode/ParameterizedWrapper.java similarity index 93% rename from src/main/java/org/apache/commons/math/ode/ParameterizedWrapper.java rename to src/main/java/org/apache/commons/math3/ode/ParameterizedWrapper.java index ef8fa4bc2..61d73acf9 100644 --- a/src/main/java/org/apache/commons/math/ode/ParameterizedWrapper.java +++ b/src/main/java/org/apache/commons/math3/ode/ParameterizedWrapper.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; import java.util.ArrayList; import java.util.Collection; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** Wrapper class enabling {@link FirstOrderDifferentialEquations basic simple} * ODE instances to be used when processing {@link JacobianMatrices}. diff --git a/src/main/java/org/apache/commons/math/ode/SecondOrderDifferentialEquations.java b/src/main/java/org/apache/commons/math3/ode/SecondOrderDifferentialEquations.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/SecondOrderDifferentialEquations.java rename to src/main/java/org/apache/commons/math3/ode/SecondOrderDifferentialEquations.java index db1e0b252..44985896b 100644 --- a/src/main/java/org/apache/commons/math/ode/SecondOrderDifferentialEquations.java +++ b/src/main/java/org/apache/commons/math3/ode/SecondOrderDifferentialEquations.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; /** This interface represents a second order differential equations set. diff --git a/src/main/java/org/apache/commons/math/ode/SecondOrderIntegrator.java b/src/main/java/org/apache/commons/math3/ode/SecondOrderIntegrator.java similarity index 93% rename from src/main/java/org/apache/commons/math/ode/SecondOrderIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/SecondOrderIntegrator.java index 73d4cf91b..76bec0383 100644 --- a/src/main/java/org/apache/commons/math/ode/SecondOrderIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/SecondOrderIntegrator.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; /** This interface represents a second order integrator for diff --git a/src/main/java/org/apache/commons/math/ode/SecondaryEquations.java b/src/main/java/org/apache/commons/math3/ode/SecondaryEquations.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/SecondaryEquations.java rename to src/main/java/org/apache/commons/math3/ode/SecondaryEquations.java index 6c1193a30..13f960007 100644 --- a/src/main/java/org/apache/commons/math/ode/SecondaryEquations.java +++ b/src/main/java/org/apache/commons/math3/ode/SecondaryEquations.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; /** * This interface allows users to add secondary differential equations to a primary diff --git a/src/main/java/org/apache/commons/math/ode/events/EventHandler.java b/src/main/java/org/apache/commons/math3/ode/events/EventHandler.java similarity index 91% rename from src/main/java/org/apache/commons/math/ode/events/EventHandler.java rename to src/main/java/org/apache/commons/math3/ode/events/EventHandler.java index 83e7f6054..53cd38455 100644 --- a/src/main/java/org/apache/commons/math/ode/events/EventHandler.java +++ b/src/main/java/org/apache/commons/math3/ode/events/EventHandler.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.events; +package org.apache.commons.math3.ode.events; /** This interface represents a handler for discrete events triggered * during ODE integration. @@ -73,7 +73,7 @@ public interface EventHandler { * #eventOccurred eventOccurred} method when the integration should * go on after the event ending the current step, with a new derivatives * vector (which will be retrieved thanks to the {@link - * org.apache.commons.math.ode.FirstOrderDifferentialEquations#computeDerivatives} + * org.apache.commons.math3.ode.FirstOrderDifferentialEquations#computeDerivatives} * method). */ RESET_DERIVATIVES, @@ -121,7 +121,7 @@ public interface EventHandler { * the step handler itself is called (see below for scheduling). It * allows the user to update his internal data to acknowledge the fact * the event has been handled (for example setting a flag in the {@link - * org.apache.commons.math.ode.FirstOrderDifferentialEquations + * org.apache.commons.math3.ode.FirstOrderDifferentialEquations * differential equations} to switch the derivatives computation in * case of discontinuity), or to direct the integrator to either stop * or continue integration, possibly with a reset state or derivatives. @@ -129,7 +129,7 @@ public interface EventHandler { *isLast
flag of the {@link
- * org.apache.commons.math.ode.sampling.StepHandler#handleStep handleStep}
+ * org.apache.commons.math3.ode.sampling.StepHandler#handleStep handleStep}
* method set to true and the integration will be stopped,The scheduling between this method and the {@link
- * org.apache.commons.math.ode.sampling.StepHandler StepHandler} method {@link
- * org.apache.commons.math.ode.sampling.StepHandler#handleStep(
- * org.apache.commons.math.ode.sampling.StepInterpolator, boolean)
+ * org.apache.commons.math3.ode.sampling.StepHandler StepHandler} method {@link
+ * org.apache.commons.math3.ode.sampling.StepHandler#handleStep(
+ * org.apache.commons.math3.ode.sampling.StepInterpolator, boolean)
* handleStep(interpolator, isLast)} is to call this method first and
* handleStep
afterwards. This scheduling allows the integrator to
* pass true
as the isLast
parameter to the step
* handler to make it aware the step will be the last one if this method
* returns {@link Action#STOP}. As the interpolator may be used to navigate back
* throughout the last step (as {@link
- * org.apache.commons.math.ode.sampling.StepNormalizer StepNormalizer}
+ * org.apache.commons.math3.ode.sampling.StepNormalizer StepNormalizer}
* does for example), user code called by this method and user
* code called by step handlers may experience apparently out of order values
* of the independent time variable. As an example, if the same user object
* implements both this {@link EventHandler EventHandler} interface and the
- * {@link org.apache.commons.math.ode.sampling.FixedStepHandler FixedStepHandler}
+ * {@link org.apache.commons.math3.ode.sampling.FixedStepHandler FixedStepHandler}
* interface, a forward integration may call its
* eventOccurred
method with t = 10 first and call its
* handleStep
method with t = 9 afterwards. Such out of order
* calls are limited to the size of the integration step for {@link
- * org.apache.commons.math.ode.sampling.StepHandler variable step handlers} and
+ * org.apache.commons.math3.ode.sampling.StepHandler variable step handlers} and
* to the size of the fixed step for {@link
- * org.apache.commons.math.ode.sampling.FixedStepHandler fixed step handlers}.
* Discrete events detection is based on switching functions. The user provides - * a simple {@link org.apache.commons.math.ode.events.EventHandler#g g(t, y)} + * a simple {@link org.apache.commons.math3.ode.events.EventHandler#g g(t, y)} * function depending on the current time and state. The integrator will monitor * the value of the function throughout integration range and will trigger the * event when its sign changes. The magnitude of the value is almost irrelevant, @@ -93,4 +93,4 @@ * * */ -package org.apache.commons.math.ode.events; +package org.apache.commons.math3.ode.events; diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsBashforthIntegrator.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsBashforthIntegrator.java index 3d1433fa8..8f118b190 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsBashforthIntegrator.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.ode.ExpandableStatefulODE; -import org.apache.commons.math.ode.sampling.NordsieckStepInterpolator; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.ode.ExpandableStatefulODE; +import org.apache.commons.math3.ode.sampling.NordsieckStepInterpolator; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsIntegrator.java similarity index 94% rename from src/main/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsIntegrator.java index a382fe123..381d23419 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsIntegrator.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.ode.ExpandableStatefulODE; -import org.apache.commons.math.ode.MultistepIntegrator; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.ode.ExpandableStatefulODE; +import org.apache.commons.math3.ode.MultistepIntegrator; /** Base class for {@link AdamsBashforthIntegrator Adams-Bashforth} and diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsMoultonIntegrator.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsMoultonIntegrator.java index ffe30c795..f0069aa82 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsMoultonIntegrator.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; import java.util.Arrays; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.RealMatrixPreservingVisitor; -import org.apache.commons.math.ode.ExpandableStatefulODE; -import org.apache.commons.math.ode.sampling.NordsieckStepInterpolator; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.RealMatrixPreservingVisitor; +import org.apache.commons.math3.ode.ExpandableStatefulODE; +import org.apache.commons.math3.ode.sampling.NordsieckStepInterpolator; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsNordsieckTransformer.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsNordsieckTransformer.java similarity index 95% rename from src/main/java/org/apache/commons/math/ode/nonstiff/AdamsNordsieckTransformer.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsNordsieckTransformer.java index 0732f5839..6872e590c 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsNordsieckTransformer.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdamsNordsieckTransformer.java @@ -15,22 +15,22 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.apache.commons.math.fraction.BigFraction; -import org.apache.commons.math.linear.Array2DRowFieldMatrix; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.ArrayFieldVector; -import org.apache.commons.math.linear.FieldDecompositionSolver; -import org.apache.commons.math.linear.FieldLUDecomposition; -import org.apache.commons.math.linear.FieldMatrix; -import org.apache.commons.math.linear.MatrixUtils; -import org.apache.commons.math.linear.QRDecomposition; -import org.apache.commons.math.linear.RealMatrix; +import org.apache.commons.math3.fraction.BigFraction; +import org.apache.commons.math3.linear.Array2DRowFieldMatrix; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.ArrayFieldVector; +import org.apache.commons.math3.linear.FieldDecompositionSolver; +import org.apache.commons.math3.linear.FieldLUDecomposition; +import org.apache.commons.math3.linear.FieldMatrix; +import org.apache.commons.math3.linear.MatrixUtils; +import org.apache.commons.math3.linear.QRDecomposition; +import org.apache.commons.math3.linear.RealMatrix; /** Transformer to Nordsieck vectors for Adams integrators. *
This class is used by {@link AdamsBashforthIntegrator Adams-Bashforth} and diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdaptiveStepsizeIntegrator.java similarity index 95% rename from src/main/java/org/apache/commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/AdaptiveStepsizeIntegrator.java index 265f89157..00848f8fb 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/AdaptiveStepsizeIntegrator.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.ode.AbstractIntegrator; -import org.apache.commons.math.ode.ExpandableStatefulODE; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.ode.AbstractIntegrator; +import org.apache.commons.math3.ode.ExpandableStatefulODE; +import org.apache.commons.math3.util.FastMath; /** * This abstract class holds the common part of all adaptive @@ -44,7 +44,7 @@ import org.apache.commons.math.util.FastMath; *
* If the Ordinary Differential Equations is an {@link ExpandableStatefulODE * extended ODE} rather than a {@link - * org.apache.commons.math.ode.FirstOrderDifferentialEquations basic ODE}, then + * org.apache.commons.math3.ode.FirstOrderDifferentialEquations basic ODE}, then * only the {@link ExpandableStatefulODE#getPrimaryState() primary part} * of the state vector is used for stepsize control, not the complete state vector. *
diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/ClassicalRungeKuttaIntegrator.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/ClassicalRungeKuttaIntegrator.java index 3ebd5be48..b3f569c62 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/ClassicalRungeKuttaIntegrator.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java index d0ff28fa7..510cd8f00 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.ode.sampling.StepInterpolator; +import org.apache.commons.math3.ode.sampling.StepInterpolator; /** * This class implements a step interpolator for the classical fourth diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince54Integrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince54Integrator.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince54Integrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince54Integrator.java index b626ccb7f..a6bcf7e53 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince54Integrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince54Integrator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince54StepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince54StepInterpolator.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince54StepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince54StepInterpolator.java index 1e5f86e12..54f067936 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince54StepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince54StepInterpolator.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.ode.AbstractIntegrator; -import org.apache.commons.math.ode.EquationsMapper; -import org.apache.commons.math.ode.sampling.StepInterpolator; +import org.apache.commons.math3.ode.AbstractIntegrator; +import org.apache.commons.math3.ode.EquationsMapper; +import org.apache.commons.math3.ode.sampling.StepInterpolator; /** * This class represents an interpolator over the last step during an diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince853Integrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince853Integrator.java similarity index 99% rename from src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince853Integrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince853Integrator.java index 666856b9a..c5bb0c3e2 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince853Integrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince853Integrator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince853StepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince853StepInterpolator.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince853StepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince853StepInterpolator.java index 64dd7d77b..4794d38c0 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/DormandPrince853StepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/DormandPrince853StepInterpolator.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.apache.commons.math.ode.AbstractIntegrator; -import org.apache.commons.math.ode.EquationsMapper; -import org.apache.commons.math.ode.sampling.StepInterpolator; +import org.apache.commons.math3.ode.AbstractIntegrator; +import org.apache.commons.math3.ode.EquationsMapper; +import org.apache.commons.math3.ode.sampling.StepInterpolator; /** * This class represents an interpolator over the last step during an diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java index d2bbf6725..956d428ba 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.ode.ExpandableStatefulODE; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.ode.ExpandableStatefulODE; +import org.apache.commons.math3.util.FastMath; /** * This class implements the common part of all embedded Runge-Kutta diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/EulerIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/EulerIntegrator.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/nonstiff/EulerIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/EulerIntegrator.java index 2d144a1fe..a9a1463fe 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/EulerIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/EulerIntegrator.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/EulerStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/EulerStepInterpolator.java similarity index 94% rename from src/main/java/org/apache/commons/math/ode/nonstiff/EulerStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/EulerStepInterpolator.java index 1d0531756..661149dda 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/EulerStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/EulerStepInterpolator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.ode.sampling.StepInterpolator; +import org.apache.commons.math3.ode.sampling.StepInterpolator; /** * This class implements a linear interpolator for step. @@ -52,7 +52,7 @@ class EulerStepInterpolator /** Simple constructor. * This constructor builds an instance that is not usable yet, the * {@link - * org.apache.commons.math.ode.sampling.AbstractStepInterpolator#reinitialize} + * org.apache.commons.math3.ode.sampling.AbstractStepInterpolator#reinitialize} * method should be called before using the instance in order to * initialize the internal arrays. This constructor is used only * in order to delay the initialization in some cases. The {@link diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/GillIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/GillIntegrator.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/nonstiff/GillIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/GillIntegrator.java index 03673e9b7..88eeb84b5 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/GillIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/GillIntegrator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/GillStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/GillStepInterpolator.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/nonstiff/GillStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/GillStepInterpolator.java index 7a91c6519..630d4df42 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/GillStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/GillStepInterpolator.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.ode.sampling.StepInterpolator; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.ode.sampling.StepInterpolator; +import org.apache.commons.math3.util.FastMath; /** * This class implements a step interpolator for the Gill fourth @@ -68,7 +68,7 @@ class GillStepInterpolator /** Simple constructor. * This constructor builds an instance that is not usable yet, the * {@link - * org.apache.commons.math.ode.sampling.AbstractStepInterpolator#reinitialize} + * org.apache.commons.math3.ode.sampling.AbstractStepInterpolator#reinitialize} * method should be called before using the instance in order to * initialize the internal arrays. This constructor is used only * in order to delay the initialization in some cases. The {@link diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/GraggBulirschStoerIntegrator.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/GraggBulirschStoerIntegrator.java index 8881a2ca3..03c39da2c 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/GraggBulirschStoerIntegrator.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.analysis.solvers.UnivariateSolver; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.ode.ExpandableStatefulODE; -import org.apache.commons.math.ode.events.EventHandler; -import org.apache.commons.math.ode.sampling.AbstractStepInterpolator; -import org.apache.commons.math.ode.sampling.StepHandler; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.analysis.solvers.UnivariateSolver; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.ode.ExpandableStatefulODE; +import org.apache.commons.math3.ode.events.EventHandler; +import org.apache.commons.math3.ode.sampling.AbstractStepInterpolator; +import org.apache.commons.math3.ode.sampling.StepHandler; +import org.apache.commons.math3.util.FastMath; /** * This class implements a Gragg-Bulirsch-Stoer integrator for diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/GraggBulirschStoerStepInterpolator.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/GraggBulirschStoerStepInterpolator.java index 6446beeec..228a00865 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/GraggBulirschStoerStepInterpolator.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.apache.commons.math.ode.EquationsMapper; -import org.apache.commons.math.ode.sampling.AbstractStepInterpolator; -import org.apache.commons.math.ode.sampling.StepInterpolator; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.ode.EquationsMapper; +import org.apache.commons.math3.ode.sampling.AbstractStepInterpolator; +import org.apache.commons.math3.ode.sampling.StepInterpolator; +import org.apache.commons.math3.util.FastMath; /** * This class implements an interpolator for the Gragg-Bulirsch-Stoer diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/HighamHall54Integrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54Integrator.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/nonstiff/HighamHall54Integrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54Integrator.java index 3212722fc..bde78a322 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/HighamHall54Integrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54Integrator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/HighamHall54StepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54StepInterpolator.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/nonstiff/HighamHall54StepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54StepInterpolator.java index 28c74f223..a3756ecad 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/HighamHall54StepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54StepInterpolator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.ode.sampling.StepInterpolator; +import org.apache.commons.math3.ode.sampling.StepInterpolator; /** * This class represents an interpolator over the last step during an @@ -38,7 +38,7 @@ class HighamHall54StepInterpolator /** Simple constructor. * This constructor builds an instance that is not usable yet, the * {@link - * org.apache.commons.math.ode.sampling.AbstractStepInterpolator#reinitialize} + * org.apache.commons.math3.ode.sampling.AbstractStepInterpolator#reinitialize} * method should be called before using the instance in order to * initialize the internal arrays. This constructor is used only * in order to delay the initialization in some cases. The {@link diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/MidpointIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/MidpointIntegrator.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/nonstiff/MidpointIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/MidpointIntegrator.java index 11c63e397..6c3ee2f7a 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/MidpointIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/MidpointIntegrator.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/MidpointStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/MidpointStepInterpolator.java similarity index 95% rename from src/main/java/org/apache/commons/math/ode/nonstiff/MidpointStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/MidpointStepInterpolator.java index 1340c1c0a..540450e75 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/MidpointStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/MidpointStepInterpolator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.ode.sampling.StepInterpolator; +import org.apache.commons.math3.ode.sampling.StepInterpolator; /** * This class implements a step interpolator for second order @@ -54,7 +54,7 @@ class MidpointStepInterpolator /** Simple constructor. * This constructor builds an instance that is not usable yet, the * {@link - * org.apache.commons.math.ode.sampling.AbstractStepInterpolator#reinitialize} + * org.apache.commons.math3.ode.sampling.AbstractStepInterpolator#reinitialize} * method should be called before using the instance in order to * initialize the internal arrays. This constructor is used only * in order to delay the initialization in some cases. The {@link diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/RungeKuttaIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaIntegrator.java similarity index 94% rename from src/main/java/org/apache/commons/math/ode/nonstiff/RungeKuttaIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaIntegrator.java index 39a810f16..b9878e7cd 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/RungeKuttaIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaIntegrator.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.ode.AbstractIntegrator; -import org.apache.commons.math.ode.ExpandableStatefulODE; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.ode.AbstractIntegrator; +import org.apache.commons.math3.ode.ExpandableStatefulODE; +import org.apache.commons.math3.util.FastMath; /** * This class implements the common part of all fixed step Runge-Kutta diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/RungeKuttaStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaStepInterpolator.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/nonstiff/RungeKuttaStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaStepInterpolator.java index 55146c32c..be266e164 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/RungeKuttaStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/RungeKuttaStepInterpolator.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.apache.commons.math.ode.AbstractIntegrator; -import org.apache.commons.math.ode.EquationsMapper; -import org.apache.commons.math.ode.sampling.AbstractStepInterpolator; +import org.apache.commons.math3.ode.AbstractIntegrator; +import org.apache.commons.math3.ode.EquationsMapper; +import org.apache.commons.math3.ode.sampling.AbstractStepInterpolator; /** This class represents an interpolator over the last step during an * ODE integration for Runge-Kutta and embedded Runge-Kutta integrators. diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/ThreeEighthesIntegrator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/ThreeEighthesIntegrator.java similarity index 97% rename from src/main/java/org/apache/commons/math/ode/nonstiff/ThreeEighthesIntegrator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/ThreeEighthesIntegrator.java index 6553f3760..3de3f2045 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/ThreeEighthesIntegrator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/ThreeEighthesIntegrator.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; /** diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/ThreeEighthesStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/ThreeEighthesStepInterpolator.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/nonstiff/ThreeEighthesStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/ThreeEighthesStepInterpolator.java index 5cb8a3e39..70ec216d5 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/ThreeEighthesStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/ThreeEighthesStepInterpolator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; -import org.apache.commons.math.ode.sampling.StepInterpolator; +import org.apache.commons.math3.ode.sampling.StepInterpolator; /** * This class implements a step interpolator for the 3/8 fourth @@ -64,7 +64,7 @@ class ThreeEighthesStepInterpolator /** Simple constructor. * This constructor builds an instance that is not usable yet, the * {@link - * org.apache.commons.math.ode.sampling.AbstractStepInterpolator#reinitialize} + * org.apache.commons.math3.ode.sampling.AbstractStepInterpolator#reinitialize} * method should be called before using the instance in order to * initialize the internal arrays. This constructor is used only * in order to delay the initialization in some cases. The {@link diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/package-info.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/ode/nonstiff/package-info.java rename to src/main/java/org/apache/commons/math3/ode/nonstiff/package-info.java index aa90713a8..b2387ce28 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/package-info.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/package-info.java @@ -22,4 +22,4 @@ * * */ -package org.apache.commons.math.ode.nonstiff; +package org.apache.commons.math3.ode.nonstiff; diff --git a/src/main/java/org/apache/commons/math/ode/package-info.java b/src/main/java/org/apache/commons/math3/ode/package-info.java similarity index 69% rename from src/main/java/org/apache/commons/math/ode/package-info.java rename to src/main/java/org/apache/commons/math3/ode/package-info.java index 49936ea58..615cc7d8d 100644 --- a/src/main/java/org/apache/commons/math/ode/package-info.java +++ b/src/main/java/org/apache/commons/math3/ode/package-info.java @@ -36,7 +36,7 @@ * computing the state vector at discrete times, they also provide a * cheap mean to get the state between the time steps. They do so through * classes extending the {@link - * org.apache.commons.math.ode.sampling.StepInterpolator StepInterpolator} + * org.apache.commons.math3.ode.sampling.StepInterpolator StepInterpolator} * abstract class, which are made available to the user at the end of * each step. * @@ -56,10 +56,10 @@ *
* The user should describe his problem in his own classes
* (UserProblem
in the diagram below) which should implement
- * the {@link org.apache.commons.math.ode.FirstOrderDifferentialEquations
+ * the {@link org.apache.commons.math3.ode.FirstOrderDifferentialEquations
* FirstOrderDifferentialEquations} interface. Then he should pass it to
* the integrator he prefers among all the classes that implement the
- * {@link org.apache.commons.math.ode.FirstOrderIntegrator
+ * {@link org.apache.commons.math3.ode.FirstOrderIntegrator
* FirstOrderIntegrator} interface.
*
y
array of the
- * {@link org.apache.commons.math.ode.FirstOrderIntegrator#integrate
+ * {@link org.apache.commons.math3.ode.FirstOrderIntegrator#integrate
* FirstOrderIntegrator.integrate} method. The second one should be used
* when more in-depth information is needed throughout the integration
* process. The user can register an object implementing the {@link
- * org.apache.commons.math.ode.sampling.StepHandler StepHandler} interface or a
- * {@link org.apache.commons.math.ode.sampling.StepNormalizer StepNormalizer}
+ * org.apache.commons.math3.ode.sampling.StepHandler StepHandler} interface or a
+ * {@link org.apache.commons.math3.ode.sampling.StepNormalizer StepNormalizer}
* object wrapping a user-specified object implementing the {@link
- * org.apache.commons.math.ode.sampling.FixedStepHandler FixedStepHandler}
+ * org.apache.commons.math3.ode.sampling.FixedStepHandler FixedStepHandler}
* interface into the integrator before calling the {@link
- * org.apache.commons.math.ode.FirstOrderIntegrator#integrate
+ * org.apache.commons.math3.ode.FirstOrderIntegrator#integrate
* FirstOrderIntegrator.integrate} method. The user object will be called
* appropriately during the integration process, allowing the user to
* process intermediate results. The default step handler does nothing.
*
*
* - * {@link org.apache.commons.math.ode.ContinuousOutputModel + * {@link org.apache.commons.math3.ode.ContinuousOutputModel * ContinuousOutputModel} is a special-purpose step handler that is able * to store all steps and to provide transparent access to any * intermediate result once the integration is over. An important feature @@ -98,10 +98,10 @@ * *
* Other default implementations of the {@link - * org.apache.commons.math.ode.sampling.StepHandler StepHandler} interface are + * org.apache.commons.math3.ode.sampling.StepHandler StepHandler} interface are * available for general needs ({@link - * org.apache.commons.math.ode.sampling.DummyStepHandler DummyStepHandler}, {@link - * org.apache.commons.math.ode.sampling.StepNormalizer StepNormalizer}) and custom + * org.apache.commons.math3.ode.sampling.DummyStepHandler DummyStepHandler}, {@link + * org.apache.commons.math3.ode.sampling.StepNormalizer StepNormalizer}) and custom * implementations can be developed for specific needs. As an example, * if an application is to be completely driven by the integration * process, then most of the application code will be run inside a step @@ -113,14 +113,14 @@ * creation time. The more efficient integrators use variable steps that * are handled internally in order to control the integration error with * respect to a specified accuracy (these integrators extend the {@link - * org.apache.commons.math.ode.nonstiff.AdaptiveStepsizeIntegrator + * org.apache.commons.math3.ode.nonstiff.AdaptiveStepsizeIntegrator * AdaptiveStepsizeIntegrator} abstract class). In this case, the step * handler which is called after each successful step shows up the * variable stepsize. The {@link - * org.apache.commons.math.ode.sampling.StepNormalizer StepNormalizer} class can + * org.apache.commons.math3.ode.sampling.StepNormalizer StepNormalizer} class can * be used to convert the variable stepsize into a fixed stepsize that * can be handled by classes implementing the {@link - * org.apache.commons.math.ode.sampling.FixedStepHandler FixedStepHandler} + * org.apache.commons.math3.ode.sampling.FixedStepHandler FixedStepHandler} * interface. Adaptive stepsize integrators can automatically compute the * initial stepsize by themselves, however the user can specify it if he * prefers to retain full control over the integration or if the @@ -131,33 +131,33 @@ *
Fixed Step Integrators | |
Name | Order |
{@link org.apache.commons.math.ode.nonstiff.EulerIntegrator Euler} | 1 |
{@link org.apache.commons.math.ode.nonstiff.MidpointIntegrator Midpoint} | 2 |
{@link org.apache.commons.math.ode.nonstiff.ClassicalRungeKuttaIntegrator Classical Runge-Kutta} | 4 |
{@link org.apache.commons.math.ode.nonstiff.GillIntegrator Gill} | 4 |
{@link org.apache.commons.math.ode.nonstiff.ThreeEighthesIntegrator 3/8} | 4 |
{@link org.apache.commons.math3.ode.nonstiff.EulerIntegrator Euler} | 1 |
{@link org.apache.commons.math3.ode.nonstiff.MidpointIntegrator Midpoint} | 2 |
{@link org.apache.commons.math3.ode.nonstiff.ClassicalRungeKuttaIntegrator Classical Runge-Kutta} | 4 |
{@link org.apache.commons.math3.ode.nonstiff.GillIntegrator Gill} | 4 |
{@link org.apache.commons.math3.ode.nonstiff.ThreeEighthesIntegrator 3/8} | 4 |
Adaptive Stepsize Integrators | ||
Name | Integration Order | Error Estimation Order |
{@link org.apache.commons.math.ode.nonstiff.HighamHall54Integrator Higham and Hall} | 5 | 4 |
{@link org.apache.commons.math.ode.nonstiff.DormandPrince54Integrator Dormand-Prince 5(4)} | 5 | 4 |
{@link org.apache.commons.math.ode.nonstiff.DormandPrince853Integrator Dormand-Prince 8(5,3)} | 8 | 5 and 3 |
{@link org.apache.commons.math.ode.nonstiff.GraggBulirschStoerIntegrator Gragg-Bulirsch-Stoer} | variable (up to 18 by default) | variable |
{@link org.apache.commons.math.ode.nonstiff.AdamsBashforthIntegrator Adams-Bashforth} | variable | variable |
{@link org.apache.commons.math.ode.nonstiff.AdamsMoultonIntegrator Adams-Moulton} | variable | variable |
{@link org.apache.commons.math3.ode.nonstiff.HighamHall54Integrator Higham and Hall} | 5 | 4 |
{@link org.apache.commons.math3.ode.nonstiff.DormandPrince54Integrator Dormand-Prince 5(4)} | 5 | 4 |
{@link org.apache.commons.math3.ode.nonstiff.DormandPrince853Integrator Dormand-Prince 8(5,3)} | 8 | 5 and 3 |
{@link org.apache.commons.math3.ode.nonstiff.GraggBulirschStoerIntegrator Gragg-Bulirsch-Stoer} | variable (up to 18 by default) | variable |
{@link org.apache.commons.math3.ode.nonstiff.AdamsBashforthIntegrator Adams-Bashforth} | variable | variable |
{@link org.apache.commons.math3.ode.nonstiff.AdamsMoultonIntegrator Adams-Moulton} | variable | variable |
- * In the table above, the {@link org.apache.commons.math.ode.nonstiff.AdamsBashforthIntegrator - * Adams-Bashforth} and {@link org.apache.commons.math.ode.nonstiff.AdamsMoultonIntegrator + * In the table above, the {@link org.apache.commons.math3.ode.nonstiff.AdamsBashforthIntegrator + * Adams-Bashforth} and {@link org.apache.commons.math3.ode.nonstiff.AdamsMoultonIntegrator * Adams-Moulton} integrators appear as variable-step ones. This is an experimental extension * to the classical algorithms using the Nordsieck vector representation. *
* * */ -package org.apache.commons.math.ode; +package org.apache.commons.math3.ode; diff --git a/src/main/java/org/apache/commons/math/ode/sampling/AbstractStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/sampling/AbstractStepInterpolator.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/sampling/AbstractStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/sampling/AbstractStepInterpolator.java index 31f104e72..2dc440d96 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/AbstractStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/AbstractStepInterpolator.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.apache.commons.math.ode.EquationsMapper; +import org.apache.commons.math3.ode.EquationsMapper; /** This abstract class represents an interpolator over the last step * during an ODE integration. @@ -31,8 +31,8 @@ import org.apache.commons.math.ode.EquationsMapper; * retrieve the state vector at intermediate times between the * previous and the current grid points (dense output). * - * @see org.apache.commons.math.ode.FirstOrderIntegrator - * @see org.apache.commons.math.ode.SecondOrderIntegrator + * @see org.apache.commons.math3.ode.FirstOrderIntegrator + * @see org.apache.commons.math3.ode.SecondOrderIntegrator * @see StepHandler * * @version $Id$ @@ -103,7 +103,7 @@ public abstract class AbstractStepInterpolator * instance in order to initialize the internal arrays. This * constructor is used only in order to delay the initialization in * some cases. As an example, the {@link - * org.apache.commons.math.ode.nonstiff.EmbeddedRungeKuttaIntegrator} + * org.apache.commons.math3.ode.nonstiff.EmbeddedRungeKuttaIntegrator} * class uses the prototyping design pattern to create the step * interpolators by cloning an uninitialized model and latter * initializing the copy. diff --git a/src/main/java/org/apache/commons/math/ode/sampling/DummyStepHandler.java b/src/main/java/org/apache/commons/math3/ode/sampling/DummyStepHandler.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/sampling/DummyStepHandler.java rename to src/main/java/org/apache/commons/math3/ode/sampling/DummyStepHandler.java index 0369053b7..d1c761d49 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/DummyStepHandler.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/DummyStepHandler.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; /** * This class is a step handler that does nothing. diff --git a/src/main/java/org/apache/commons/math/ode/sampling/FixedStepHandler.java b/src/main/java/org/apache/commons/math3/ode/sampling/FixedStepHandler.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/sampling/FixedStepHandler.java rename to src/main/java/org/apache/commons/math3/ode/sampling/FixedStepHandler.java index 6094b0b14..e3be43d19 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/FixedStepHandler.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/FixedStepHandler.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; /** diff --git a/src/main/java/org/apache/commons/math/ode/sampling/NordsieckStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/sampling/NordsieckStepInterpolator.java similarity index 96% rename from src/main/java/org/apache/commons/math/ode/sampling/NordsieckStepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/sampling/NordsieckStepInterpolator.java index 370f6c3b7..d98148f1f 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/NordsieckStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/NordsieckStepInterpolator.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.Arrays; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.ode.EquationsMapper; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.ode.EquationsMapper; +import org.apache.commons.math3.util.FastMath; /** * This class implements an interpolator for integrators using Nordsieck representation. @@ -32,8 +32,8 @@ import org.apache.commons.math.util.FastMath; *This interpolator computes dense output around the current point. * The interpolation equation is based on Taylor series formulas. * - * @see org.apache.commons.math.ode.nonstiff.AdamsBashforthIntegrator - * @see org.apache.commons.math.ode.nonstiff.AdamsMoultonIntegrator + * @see org.apache.commons.math3.ode.nonstiff.AdamsBashforthIntegrator + * @see org.apache.commons.math3.ode.nonstiff.AdamsMoultonIntegrator * @version $Id$ * @since 2.0 */ diff --git a/src/main/java/org/apache/commons/math/ode/sampling/StepHandler.java b/src/main/java/org/apache/commons/math3/ode/sampling/StepHandler.java similarity index 92% rename from src/main/java/org/apache/commons/math/ode/sampling/StepHandler.java rename to src/main/java/org/apache/commons/math3/ode/sampling/StepHandler.java index b3ac9f590..e044c3ea1 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/StepHandler.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/StepHandler.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; /** @@ -31,8 +31,8 @@ package org.apache.commons.math.ode.sampling; * last one, store the points in an ephemeris, or forward them to * specialized processing or output methods.
* - * @see org.apache.commons.math.ode.FirstOrderIntegrator - * @see org.apache.commons.math.ode.SecondOrderIntegrator + * @see org.apache.commons.math3.ode.FirstOrderIntegrator + * @see org.apache.commons.math3.ode.SecondOrderIntegrator * @see StepInterpolator * @version $Id$ * @since 1.2 @@ -59,7 +59,7 @@ public interface StepHandler { * object on each call, so if the instance wants to keep it across * all calls (for example to provide at the end of the integration a * continuous model valid throughout the integration range, as the - * {@link org.apache.commons.math.ode.ContinuousOutputModel + * {@link org.apache.commons.math3.ode.ContinuousOutputModel * ContinuousOutputModel} class does), it should build a local copy * using the clone method of the interpolator and store this copy. * Keeping only a reference to the interpolator and reusing it will diff --git a/src/main/java/org/apache/commons/math/ode/sampling/StepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/sampling/StepInterpolator.java similarity index 93% rename from src/main/java/org/apache/commons/math/ode/sampling/StepInterpolator.java rename to src/main/java/org/apache/commons/math3/ode/sampling/StepInterpolator.java index 892cae785..58b0b1054 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/StepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/StepInterpolator.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; import java.io.Externalizable; @@ -37,8 +37,8 @@ import java.io.Externalizable; * {@link #copy()} method. * * - * @see org.apache.commons.math.ode.FirstOrderIntegrator - * @see org.apache.commons.math.ode.SecondOrderIntegrator + * @see org.apache.commons.math3.ode.FirstOrderIntegrator + * @see org.apache.commons.math3.ode.SecondOrderIntegrator * @see StepHandler * @version $Id$ * @since 1.2 @@ -106,8 +106,8 @@ public interface StepInterpolator extends Externalizable { * it should not be modified and it should be copied if it needs * to be preserved across several calls. * @param index index of the secondary set, as returned by {@link - * org.apache.commons.math.ode.ExpandableStatefulODE#addSecondaryEquations( - * org.apache.commons.math.ode.SecondaryEquations) + * org.apache.commons.math3.ode.ExpandableStatefulODE#addSecondaryEquations( + * org.apache.commons.math3.ode.SecondaryEquations) * ExpandableStatefulODE.addSecondaryEquations(SecondaryEquations)} * @return interpolated secondary state at the current interpolation date * @see #getInterpolatedState() @@ -123,8 +123,8 @@ public interface StepInterpolator extends Externalizable { * it should not be modified and it should be copied if it needs * to be preserved across several calls. * @param index index of the secondary set, as returned by {@link - * org.apache.commons.math.ode.ExpandableStatefulODE#addSecondaryEquations( - * org.apache.commons.math.ode.SecondaryEquations) + * org.apache.commons.math3.ode.ExpandableStatefulODE#addSecondaryEquations( + * org.apache.commons.math3.ode.SecondaryEquations) * ExpandableStatefulODE.addSecondaryEquations(SecondaryEquations)} * @return interpolated secondary derivatives at the current interpolation date * @see #getInterpolatedState() diff --git a/src/main/java/org/apache/commons/math/ode/sampling/StepNormalizer.java b/src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizer.java similarity index 99% rename from src/main/java/org/apache/commons/math/ode/sampling/StepNormalizer.java rename to src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizer.java index f753689e1..9441ed288 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/StepNormalizer.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizer.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.Precision; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.Precision; /** * This class wraps an object implementing {@link FixedStepHandler} diff --git a/src/main/java/org/apache/commons/math/ode/sampling/StepNormalizerBounds.java b/src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizerBounds.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/sampling/StepNormalizerBounds.java rename to src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizerBounds.java index b26b48206..178883faf 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/StepNormalizerBounds.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizerBounds.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; /** {@link StepNormalizer Step normalizer} bounds settings. They influence * whether the underlying fixed step size step handler is called for the first diff --git a/src/main/java/org/apache/commons/math/ode/sampling/StepNormalizerMode.java b/src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizerMode.java similarity index 98% rename from src/main/java/org/apache/commons/math/ode/sampling/StepNormalizerMode.java rename to src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizerMode.java index 89493229d..550f1d0d8 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/StepNormalizerMode.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/StepNormalizerMode.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; /** {@link StepNormalizer Step normalizer} modes. Determines how the step size diff --git a/src/main/java/org/apache/commons/math/ode/sampling/package-info.java b/src/main/java/org/apache/commons/math3/ode/sampling/package-info.java similarity index 80% rename from src/main/java/org/apache/commons/math/ode/sampling/package-info.java rename to src/main/java/org/apache/commons/math3/ode/sampling/package-info.java index bb88dc7de..29c65e074 100644 --- a/src/main/java/org/apache/commons/math/ode/sampling/package-info.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/package-info.java @@ -25,8 +25,8 @@ * In addition to computing the evolution of the state vector at some grid points, all * ODE integrators also build up interpolation models of this evolution inside the * last computed step. If users are interested in these interpolators, they can register a - * {@link org.apache.commons.math.ode.sampling.StepHandler StepHandler} instance using the - * {@link org.apache.commons.math.ode.FirstOrderIntegrator#addStepHandler addStepHandler} + * {@link org.apache.commons.math3.ode.sampling.StepHandler StepHandler} instance using the + * {@link org.apache.commons.math3.ode.FirstOrderIntegrator#addStepHandler addStepHandler} * method which is supported by all integrators. The integrator will call this instance * at the end of each accepted step and provide it the interpolator. The user can do * whatever he wants with this interpolator, which computes both the state and its @@ -44,17 +44,17 @@ * ** Since some integrators may use variable step size, the generic {@link - * org.apache.commons.math.ode.sampling.StepHandler StepHandler} interface can be called + * org.apache.commons.math3.ode.sampling.StepHandler StepHandler} interface can be called * either at regular or irregular rate. This interface allows to navigate to any location * within the last computed step, thanks to the provided {@link - * org.apache.commons.math.ode.sampling.StepInterpolator StepInterpolator} object. + * org.apache.commons.math3.ode.sampling.StepInterpolator StepInterpolator} object. * If regular output is desired (for example in order to write an ephemeris file), then - * the simpler {@link org.apache.commons.math.ode.sampling.FixedStepHandler FixedStepHandler} + * the simpler {@link org.apache.commons.math3.ode.sampling.FixedStepHandler FixedStepHandler} * interface can be used. Objects implementing this interface should be wrapped within a - * {@link org.apache.commons.math.ode.sampling.StepNormalizer StepNormalizer} instance + * {@link org.apache.commons.math3.ode.sampling.StepNormalizer StepNormalizer} instance * in order to be registered to the integrator. *
* * */ -package org.apache.commons.math.ode.sampling; +package org.apache.commons.math3.ode.sampling; diff --git a/src/main/java/org/apache/commons/math/optimization/AbstractConvergenceChecker.java b/src/main/java/org/apache/commons/math3/optimization/AbstractConvergenceChecker.java similarity index 96% rename from src/main/java/org/apache/commons/math/optimization/AbstractConvergenceChecker.java rename to src/main/java/org/apache/commons/math3/optimization/AbstractConvergenceChecker.java index a0914d9a4..decf1fb3c 100644 --- a/src/main/java/org/apache/commons/math/optimization/AbstractConvergenceChecker.java +++ b/src/main/java/org/apache/commons/math3/optimization/AbstractConvergenceChecker.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.optimization; +package org.apache.commons.math3.optimization; -import org.apache.commons.math.util.Precision; +import org.apache.commons.math3.util.Precision; /** * Base class for all convergence checker implementations. diff --git a/src/main/java/org/apache/commons/math/optimization/BaseMultivariateMultiStartOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/BaseMultivariateMultiStartOptimizer.java similarity index 94% rename from src/main/java/org/apache/commons/math/optimization/BaseMultivariateMultiStartOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/BaseMultivariateMultiStartOptimizer.java index 3d8631c27..b2867a021 100644 --- a/src/main/java/org/apache/commons/math/optimization/BaseMultivariateMultiStartOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/BaseMultivariateMultiStartOptimizer.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math.optimization; +package org.apache.commons.math3.optimization; import java.util.Arrays; import java.util.Comparator; -import org.apache.commons.math.analysis.MultivariateFunction; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.random.RandomVectorGenerator; +import org.apache.commons.math3.analysis.MultivariateFunction; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.random.RandomVectorGenerator; /** * Base class for all implementations of a multi-start optimizer. diff --git a/src/main/java/org/apache/commons/math/optimization/BaseMultivariateOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/BaseMultivariateOptimizer.java similarity index 78% rename from src/main/java/org/apache/commons/math/optimization/BaseMultivariateOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/BaseMultivariateOptimizer.java index 97ec1dc21..e7651c8ad 100644 --- a/src/main/java/org/apache/commons/math/optimization/BaseMultivariateOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/BaseMultivariateOptimizer.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math.optimization; +package org.apache.commons.math3.optimization; -import org.apache.commons.math.analysis.MultivariateFunction; +import org.apache.commons.math3.analysis.MultivariateFunction; /** * This interface is mainly intended to enforce the internal coherence of * Commons-FastMath. Users of the API are advised to base their code on * the following interfaces: *Adapter for mapping bounded {@link MultivariateFunction} to unbounded ones.
@@ -53,8 +53,8 @@ import org.apache.commons.math.util.MathUtils; * user is responsible for converting his bounded point to unbounded by calling * {@link #boundedToUnbounded(double[])} before providing them to the optimizer. * For the same reason, the point returned by the {@link - * org.apache.commons.math.optimization.BaseMultivariateOptimizer#optimize(int, - * MultivariateFunction, org.apache.commons.math.optimization.GoalType, double[])} + * org.apache.commons.math3.optimization.BaseMultivariateOptimizer#optimize(int, + * MultivariateFunction, org.apache.commons.math3.optimization.GoalType, double[])} * method is unbounded. So to convert this point to bounded, users must call * {@link #unboundedToBounded(double[])} by themselves! *diff --git a/src/main/java/org/apache/commons/math/optimization/direct/MultivariateFunctionPenaltyAdapter.java b/src/main/java/org/apache/commons/math3/optimization/direct/MultivariateFunctionPenaltyAdapter.java similarity index 95% rename from src/main/java/org/apache/commons/math/optimization/direct/MultivariateFunctionPenaltyAdapter.java rename to src/main/java/org/apache/commons/math3/optimization/direct/MultivariateFunctionPenaltyAdapter.java index 10cb622e8..344764ba4 100644 --- a/src/main/java/org/apache/commons/math/optimization/direct/MultivariateFunctionPenaltyAdapter.java +++ b/src/main/java/org/apache/commons/math3/optimization/direct/MultivariateFunctionPenaltyAdapter.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.direct; +package org.apache.commons.math3.optimization.direct; -import org.apache.commons.math.analysis.MultivariateFunction; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.MathUtils; +import org.apache.commons.math3.analysis.MultivariateFunction; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.MathUtils; /** *
Adapter extending bounded {@link MultivariateFunction} to an unbouded diff --git a/src/main/java/org/apache/commons/math/optimization/direct/NelderMeadSimplex.java b/src/main/java/org/apache/commons/math3/optimization/direct/NelderMeadSimplex.java similarity index 96% rename from src/main/java/org/apache/commons/math/optimization/direct/NelderMeadSimplex.java rename to src/main/java/org/apache/commons/math3/optimization/direct/NelderMeadSimplex.java index 9292df6b2..199548521 100644 --- a/src/main/java/org/apache/commons/math/optimization/direct/NelderMeadSimplex.java +++ b/src/main/java/org/apache/commons/math3/optimization/direct/NelderMeadSimplex.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.direct; +package org.apache.commons.math3.optimization.direct; import java.util.Comparator; -import org.apache.commons.math.optimization.PointValuePair; -import org.apache.commons.math.analysis.MultivariateFunction; +import org.apache.commons.math3.optimization.PointValuePair; +import org.apache.commons.math3.analysis.MultivariateFunction; /** * This class implements the Nelder-Mead simplex algorithm. @@ -166,9 +166,9 @@ public class NelderMeadSimplex extends AbstractSimplex { * @param khi Expansion coefficient. * @param gamma Contraction coefficient. * @param sigma Shrinkage coefficient. - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if the reference simplex does not contain at least one point. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if there is a dimension mismatch in the reference simplex. */ public NelderMeadSimplex(final double[][] referenceSimplex, diff --git a/src/main/java/org/apache/commons/math/optimization/direct/PowellOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/direct/PowellOptimizer.java similarity index 90% rename from src/main/java/org/apache/commons/math/optimization/direct/PowellOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/direct/PowellOptimizer.java index bf678ed32..ffe1dffff 100644 --- a/src/main/java/org/apache/commons/math/optimization/direct/PowellOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/direct/PowellOptimizer.java @@ -15,21 +15,21 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.direct; +package org.apache.commons.math3.optimization.direct; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.MathArrays; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.analysis.MultivariateFunction; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.optimization.GoalType; -import org.apache.commons.math.optimization.PointValuePair; -import org.apache.commons.math.optimization.ConvergenceChecker; -import org.apache.commons.math.optimization.MultivariateOptimizer; -import org.apache.commons.math.optimization.univariate.BracketFinder; -import org.apache.commons.math.optimization.univariate.BrentOptimizer; -import org.apache.commons.math.optimization.univariate.UnivariatePointValuePair; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.analysis.MultivariateFunction; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.optimization.GoalType; +import org.apache.commons.math3.optimization.PointValuePair; +import org.apache.commons.math3.optimization.ConvergenceChecker; +import org.apache.commons.math3.optimization.MultivariateOptimizer; +import org.apache.commons.math3.optimization.univariate.BracketFinder; +import org.apache.commons.math3.optimization.univariate.BrentOptimizer; +import org.apache.commons.math3.optimization.univariate.UnivariatePointValuePair; /** * Powell algorithm. @@ -259,7 +259,7 @@ public class PowellOptimizer * @param p Starting point. * @param d Search direction. * @return the optimum. - * @throws org.apache.commons.math.exception.TooManyEvaluationsException + * @throws org.apache.commons.math3.exception.TooManyEvaluationsException * if the number of evaluations is exceeded. */ public UnivariatePointValuePair search(final double[] p, final double[] d) { diff --git a/src/main/java/org/apache/commons/math/optimization/direct/SimplexOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java similarity index 92% rename from src/main/java/org/apache/commons/math/optimization/direct/SimplexOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java index 14e5ff3c0..469a7ed54 100644 --- a/src/main/java/org/apache/commons/math/optimization/direct/SimplexOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.direct; +package org.apache.commons.math3.optimization.direct; import java.util.Comparator; -import org.apache.commons.math.analysis.MultivariateFunction; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.optimization.GoalType; -import org.apache.commons.math.optimization.ConvergenceChecker; -import org.apache.commons.math.optimization.PointValuePair; -import org.apache.commons.math.optimization.SimpleValueChecker; -import org.apache.commons.math.optimization.MultivariateOptimizer; +import org.apache.commons.math3.analysis.MultivariateFunction; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.optimization.GoalType; +import org.apache.commons.math3.optimization.ConvergenceChecker; +import org.apache.commons.math3.optimization.PointValuePair; +import org.apache.commons.math3.optimization.SimpleValueChecker; +import org.apache.commons.math3.optimization.MultivariateOptimizer; /** * This class implements simplex-based direct search optimization. diff --git a/src/main/java/org/apache/commons/math/optimization/direct/package-info.java b/src/main/java/org/apache/commons/math3/optimization/direct/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/optimization/direct/package-info.java rename to src/main/java/org/apache/commons/math3/optimization/direct/package-info.java index 0bd9e122d..a587bcfff 100644 --- a/src/main/java/org/apache/commons/math/optimization/direct/package-info.java +++ b/src/main/java/org/apache/commons/math3/optimization/direct/package-info.java @@ -21,4 +21,4 @@ *
* */ -package org.apache.commons.math.optimization.direct; +package org.apache.commons.math3.optimization.direct; diff --git a/src/main/java/org/apache/commons/math/optimization/fitting/CurveFitter.java b/src/main/java/org/apache/commons/math3/optimization/fitting/CurveFitter.java similarity index 91% rename from src/main/java/org/apache/commons/math/optimization/fitting/CurveFitter.java rename to src/main/java/org/apache/commons/math3/optimization/fitting/CurveFitter.java index 677768c5d..160970fe6 100644 --- a/src/main/java/org/apache/commons/math/optimization/fitting/CurveFitter.java +++ b/src/main/java/org/apache/commons/math3/optimization/fitting/CurveFitter.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.fitting; +package org.apache.commons.math3.optimization.fitting; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.analysis.DifferentiableMultivariateVectorFunction; -import org.apache.commons.math.analysis.ParametricUnivariateFunction; -import org.apache.commons.math.analysis.MultivariateMatrixFunction; -import org.apache.commons.math.optimization.DifferentiableMultivariateVectorOptimizer; -import org.apache.commons.math.optimization.PointVectorValuePair; +import org.apache.commons.math3.analysis.DifferentiableMultivariateVectorFunction; +import org.apache.commons.math3.analysis.ParametricUnivariateFunction; +import org.apache.commons.math3.analysis.MultivariateMatrixFunction; +import org.apache.commons.math3.optimization.DifferentiableMultivariateVectorOptimizer; +import org.apache.commons.math3.optimization.PointVectorValuePair; /** Fitter for parametric univariate real functions y = f(x). *When a univariate real function y = f(x) does depend on some @@ -117,7 +117,7 @@ public class CurveFitter { * @param f parametric function to fit. * @param initialGuess first guess of the function parameters. * @return the fitted parameters. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if the start point dimension is wrong. */ public double[] fit(final ParametricUnivariateFunction f, final double[] initialGuess) { @@ -135,9 +135,9 @@ public class CurveFitter { * @param initialGuess first guess of the function parameters. * @param maxEval Maximum number of function evaluations. * @return the fitted parameters. - * @throws org.apache.commons.math.exception.TooManyEvaluationsException + * @throws org.apache.commons.math3.exception.TooManyEvaluationsException * if the number of allowed evaluations is exceeded. - * @throws org.apache.commons.math.exception.DimensionMismatchException + * @throws org.apache.commons.math3.exception.DimensionMismatchException * if the start point dimension is wrong. * @since 3.0 */ diff --git a/src/main/java/org/apache/commons/math/optimization/fitting/GaussianFitter.java b/src/main/java/org/apache/commons/math3/optimization/fitting/GaussianFitter.java similarity index 92% rename from src/main/java/org/apache/commons/math/optimization/fitting/GaussianFitter.java rename to src/main/java/org/apache/commons/math3/optimization/fitting/GaussianFitter.java index af4666416..8c46bcde1 100644 --- a/src/main/java/org/apache/commons/math/optimization/fitting/GaussianFitter.java +++ b/src/main/java/org/apache/commons/math3/optimization/fitting/GaussianFitter.java @@ -15,26 +15,26 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.fitting; +package org.apache.commons.math3.optimization.fitting; import java.util.Arrays; import java.util.Comparator; -import org.apache.commons.math.analysis.function.Gaussian; -import org.apache.commons.math.analysis.ParametricUnivariateFunction; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.ZeroException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.optimization.DifferentiableMultivariateVectorOptimizer; -import org.apache.commons.math.optimization.fitting.CurveFitter; -import org.apache.commons.math.optimization.fitting.WeightedObservedPoint; +import org.apache.commons.math3.analysis.function.Gaussian; +import org.apache.commons.math3.analysis.ParametricUnivariateFunction; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.ZeroException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.optimization.DifferentiableMultivariateVectorOptimizer; +import org.apache.commons.math3.optimization.fitting.CurveFitter; +import org.apache.commons.math3.optimization.fitting.WeightedObservedPoint; /** * Fits points to a {@link - * org.apache.commons.math.analysis.function.Gaussian.Parametric Gaussian} function. + * org.apache.commons.math3.analysis.function.Gaussian.Parametric Gaussian} function. *
* Usage example: *
@@ -124,7 +124,7 @@ public class GaussianFitter extends CurveFitter { /** * Guesses the parameters {@code norm}, {@code mean}, and {@code sigma} - * of a {@link org.apache.commons.math.analysis.function.Gaussian.Parametric} + * of a {@link org.apache.commons.math3.analysis.function.Gaussian.Parametric} * based on the specified observed points. */ public static class ParameterGuesser { diff --git a/src/main/java/org/apache/commons/math/optimization/fitting/HarmonicFitter.java b/src/main/java/org/apache/commons/math3/optimization/fitting/HarmonicFitter.java similarity index 97% rename from src/main/java/org/apache/commons/math/optimization/fitting/HarmonicFitter.java rename to src/main/java/org/apache/commons/math3/optimization/fitting/HarmonicFitter.java index 928dfa676..8bdab74aa 100644 --- a/src/main/java/org/apache/commons/math/optimization/fitting/HarmonicFitter.java +++ b/src/main/java/org/apache/commons/math3/optimization/fitting/HarmonicFitter.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.fitting; +package org.apache.commons.math3.optimization.fitting; -import org.apache.commons.math.optimization.DifferentiableMultivariateVectorOptimizer; -import org.apache.commons.math.analysis.function.HarmonicOscillator; -import org.apache.commons.math.exception.ZeroException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.optimization.DifferentiableMultivariateVectorOptimizer; +import org.apache.commons.math3.analysis.function.HarmonicOscillator; +import org.apache.commons.math3.exception.ZeroException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** * Class that implements a curve fitting specialized for sinusoids. diff --git a/src/main/java/org/apache/commons/math/optimization/fitting/PolynomialFitter.java b/src/main/java/org/apache/commons/math3/optimization/fitting/PolynomialFitter.java similarity index 87% rename from src/main/java/org/apache/commons/math/optimization/fitting/PolynomialFitter.java rename to src/main/java/org/apache/commons/math3/optimization/fitting/PolynomialFitter.java index 9ece71930..f5fd4451c 100644 --- a/src/main/java/org/apache/commons/math/optimization/fitting/PolynomialFitter.java +++ b/src/main/java/org/apache/commons/math3/optimization/fitting/PolynomialFitter.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.fitting; +package org.apache.commons.math3.optimization.fitting; -import org.apache.commons.math.analysis.polynomials.PolynomialFunction; -import org.apache.commons.math.optimization.DifferentiableMultivariateVectorOptimizer; +import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; +import org.apache.commons.math3.optimization.DifferentiableMultivariateVectorOptimizer; /** This class implements a curve fitting specialized for polynomials. *Polynomial fitting is a very simple case of curve fitting. The @@ -49,7 +49,7 @@ public class PolynomialFitter extends CurveFitter { * Get the polynomial fitting the weighted (x, y) points. * * @return the coefficients of the polynomial that best fits the observed points. - * @throws org.apache.commons.math.exception.ConvergenceException + * @throws org.apache.commons.math3.exception.ConvergenceException * if the algorithm failed to converge. */ public double[] fit() { diff --git a/src/main/java/org/apache/commons/math/optimization/fitting/WeightedObservedPoint.java b/src/main/java/org/apache/commons/math3/optimization/fitting/WeightedObservedPoint.java similarity index 97% rename from src/main/java/org/apache/commons/math/optimization/fitting/WeightedObservedPoint.java rename to src/main/java/org/apache/commons/math3/optimization/fitting/WeightedObservedPoint.java index 892b8775a..7de425b96 100644 --- a/src/main/java/org/apache/commons/math/optimization/fitting/WeightedObservedPoint.java +++ b/src/main/java/org/apache/commons/math3/optimization/fitting/WeightedObservedPoint.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.fitting; +package org.apache.commons.math3.optimization.fitting; import java.io.Serializable; diff --git a/src/main/java/org/apache/commons/math/optimization/fitting/package-info.java b/src/main/java/org/apache/commons/math3/optimization/fitting/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/optimization/fitting/package-info.java rename to src/main/java/org/apache/commons/math3/optimization/fitting/package-info.java index 0ba73f05d..b25e5fd37 100644 --- a/src/main/java/org/apache/commons/math/optimization/fitting/package-info.java +++ b/src/main/java/org/apache/commons/math3/optimization/fitting/package-info.java @@ -27,4 +27,4 @@ * * */ -package org.apache.commons.math.optimization.fitting; +package org.apache.commons.math3.optimization.fitting; diff --git a/src/main/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java similarity index 88% rename from src/main/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java index 48f9de4ca..e156d65a2 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java @@ -15,21 +15,21 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.general; +package org.apache.commons.math3.optimization.general; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.analysis.DifferentiableMultivariateVectorFunction; -import org.apache.commons.math.analysis.MultivariateMatrixFunction; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.linear.QRDecomposition; -import org.apache.commons.math.linear.DecompositionSolver; -import org.apache.commons.math.linear.MatrixUtils; -import org.apache.commons.math.optimization.ConvergenceChecker; -import org.apache.commons.math.optimization.DifferentiableMultivariateVectorOptimizer; -import org.apache.commons.math.optimization.PointVectorValuePair; -import org.apache.commons.math.optimization.direct.BaseAbstractMultivariateVectorOptimizer; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.analysis.DifferentiableMultivariateVectorFunction; +import org.apache.commons.math3.analysis.MultivariateMatrixFunction; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.linear.QRDecomposition; +import org.apache.commons.math3.linear.DecompositionSolver; +import org.apache.commons.math3.linear.MatrixUtils; +import org.apache.commons.math3.optimization.ConvergenceChecker; +import org.apache.commons.math3.optimization.DifferentiableMultivariateVectorOptimizer; +import org.apache.commons.math3.optimization.PointVectorValuePair; +import org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateVectorOptimizer; +import org.apache.commons.math3.util.FastMath; /** * Base class for implementing least squares optimizers. @@ -83,7 +83,7 @@ public abstract class AbstractLeastSquaresOptimizer /** * Simple constructor with default settings. * The convergence check is set to a {@link - * org.apache.commons.math.optimization.SimpleVectorValueChecker}. + * org.apache.commons.math3.optimization.SimpleVectorValueChecker}. */ protected AbstractLeastSquaresOptimizer() {} /** @@ -129,7 +129,7 @@ public abstract class AbstractLeastSquaresOptimizer * Update the residuals array and cost function value. * @throws DimensionMismatchException if the dimension does not match the * problem dimension. - * @throws org.apache.commons.math.exception.TooManyEvaluationsException + * @throws org.apache.commons.math3.exception.TooManyEvaluationsException * if the maximal number of evaluations is exceeded. */ protected void updateResidualsAndCost() { @@ -178,7 +178,7 @@ public abstract class AbstractLeastSquaresOptimizer * Get the covariance matrix of the optimized parameters. * * @return the covariance matrix. - * @throws org.apache.commons.math.linear.SingularMatrixException + * @throws org.apache.commons.math3.linear.SingularMatrixException * if the covariance matrix cannot be computed (singular problem). * * @see #getCovariances(double) @@ -199,7 +199,7 @@ public abstract class AbstractLeastSquaresOptimizer * * @param threshold Singularity threshold. * @return the covariance matrix. - * @throws org.apache.commons.math.linear.SingularMatrixException + * @throws org.apache.commons.math3.linear.SingularMatrixException * if the covariance matrix cannot be computed (singular problem). */ public double[][] getCovariances(double threshold) { @@ -230,7 +230,7 @@ public abstract class AbstractLeastSquaresOptimizer * Guessing is covariance-based: It only gives a rough order of magnitude. * * @return errors in optimized parameters - * @throws org.apache.commons.math.linear.SingularMatrixException + * @throws org.apache.commons.math3.linear.SingularMatrixException * if the covariances matrix cannot be computed. * @throws NumberIsTooSmallException if the number of degrees of freedom is not * positive, i.e. the number of measurements is less or equal to the number of diff --git a/src/main/java/org/apache/commons/math/optimization/general/AbstractScalarDifferentiableOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/general/AbstractScalarDifferentiableOptimizer.java similarity index 78% rename from src/main/java/org/apache/commons/math/optimization/general/AbstractScalarDifferentiableOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/general/AbstractScalarDifferentiableOptimizer.java index 7a6783ffe..76be89ae1 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/AbstractScalarDifferentiableOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/AbstractScalarDifferentiableOptimizer.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.general; +package org.apache.commons.math3.optimization.general; -import org.apache.commons.math.analysis.DifferentiableMultivariateFunction; -import org.apache.commons.math.analysis.MultivariateVectorFunction; -import org.apache.commons.math.optimization.DifferentiableMultivariateOptimizer; -import org.apache.commons.math.optimization.GoalType; -import org.apache.commons.math.optimization.ConvergenceChecker; -import org.apache.commons.math.optimization.PointValuePair; -import org.apache.commons.math.optimization.direct.BaseAbstractMultivariateOptimizer; +import org.apache.commons.math3.analysis.DifferentiableMultivariateFunction; +import org.apache.commons.math3.analysis.MultivariateVectorFunction; +import org.apache.commons.math3.optimization.DifferentiableMultivariateOptimizer; +import org.apache.commons.math3.optimization.GoalType; +import org.apache.commons.math3.optimization.ConvergenceChecker; +import org.apache.commons.math3.optimization.PointValuePair; +import org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer; /** * Base class for implementing optimizers for multivariate scalar @@ -44,7 +44,7 @@ public abstract class AbstractScalarDifferentiableOptimizer /** * Simple constructor with default settings. * The convergence check is set to a - * {@link org.apache.commons.math.optimization.SimpleValueChecker + * {@link org.apache.commons.math3.optimization.SimpleValueChecker * SimpleValueChecker}. */ protected AbstractScalarDifferentiableOptimizer() {} @@ -60,7 +60,7 @@ public abstract class AbstractScalarDifferentiableOptimizer * * @param evaluationPoint Point at which the gradient must be evaluated. * @return the gradient at the specified point. - * @throws org.apache.commons.math.exception.TooManyEvaluationsException + * @throws org.apache.commons.math3.exception.TooManyEvaluationsException * if the allowed number of evaluations is exceeded. */ protected double[] computeObjectiveGradient(final double[] evaluationPoint) { diff --git a/src/main/java/org/apache/commons/math/optimization/general/ConjugateGradientFormula.java b/src/main/java/org/apache/commons/math3/optimization/general/ConjugateGradientFormula.java similarity index 97% rename from src/main/java/org/apache/commons/math/optimization/general/ConjugateGradientFormula.java rename to src/main/java/org/apache/commons/math3/optimization/general/ConjugateGradientFormula.java index 3f454d4f9..6db6b5539 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/ConjugateGradientFormula.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/ConjugateGradientFormula.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.general; +package org.apache.commons.math3.optimization.general; /** * Available choices of update formulas for the β parameter diff --git a/src/main/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java similarity index 87% rename from src/main/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java index 98b5e17d2..3d620c02b 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java @@ -15,20 +15,20 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.general; +package org.apache.commons.math3.optimization.general; -import org.apache.commons.math.exception.ConvergenceException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.linear.ArrayRealVector; -import org.apache.commons.math.linear.BlockRealMatrix; -import org.apache.commons.math.linear.DecompositionSolver; -import org.apache.commons.math.linear.LUDecomposition; -import org.apache.commons.math.linear.QRDecomposition; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.SingularMatrixException; -import org.apache.commons.math.optimization.ConvergenceChecker; -import org.apache.commons.math.optimization.SimpleVectorValueChecker; -import org.apache.commons.math.optimization.PointVectorValuePair; +import org.apache.commons.math3.exception.ConvergenceException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.linear.ArrayRealVector; +import org.apache.commons.math3.linear.BlockRealMatrix; +import org.apache.commons.math3.linear.DecompositionSolver; +import org.apache.commons.math3.linear.LUDecomposition; +import org.apache.commons.math3.linear.QRDecomposition; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.SingularMatrixException; +import org.apache.commons.math3.optimization.ConvergenceChecker; +import org.apache.commons.math3.optimization.SimpleVectorValueChecker; +import org.apache.commons.math3.optimization.PointVectorValuePair; /** * Gauss-Newton least-squares solver. diff --git a/src/main/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/general/LevenbergMarquardtOptimizer.java similarity index 98% rename from src/main/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/general/LevenbergMarquardtOptimizer.java index ce7206eb1..804364ed6 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/LevenbergMarquardtOptimizer.java @@ -14,16 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.optimization.general; +package org.apache.commons.math3.optimization.general; import java.util.Arrays; -import org.apache.commons.math.exception.ConvergenceException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.optimization.PointVectorValuePair; -import org.apache.commons.math.optimization.ConvergenceChecker; -import org.apache.commons.math.util.Precision; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.ConvergenceException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.optimization.PointVectorValuePair; +import org.apache.commons.math3.optimization.ConvergenceChecker; +import org.apache.commons.math3.util.Precision; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/general/NonLinearConjugateGradientOptimizer.java similarity index 94% rename from src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/general/NonLinearConjugateGradientOptimizer.java index 845c1ca03..a0af0bd97 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/NonLinearConjugateGradientOptimizer.java @@ -15,18 +15,18 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.general; +package org.apache.commons.math3.optimization.general; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.analysis.solvers.BrentSolver; -import org.apache.commons.math.analysis.solvers.UnivariateSolver; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.optimization.GoalType; -import org.apache.commons.math.optimization.PointValuePair; -import org.apache.commons.math.optimization.SimpleValueChecker; -import org.apache.commons.math.optimization.ConvergenceChecker; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.analysis.solvers.BrentSolver; +import org.apache.commons.math3.analysis.solvers.UnivariateSolver; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.optimization.GoalType; +import org.apache.commons.math3.optimization.PointValuePair; +import org.apache.commons.math3.optimization.SimpleValueChecker; +import org.apache.commons.math3.optimization.ConvergenceChecker; +import org.apache.commons.math3.util.FastMath; /** * Non-linear conjugate gradient optimizer. diff --git a/src/main/java/org/apache/commons/math/optimization/general/Preconditioner.java b/src/main/java/org/apache/commons/math3/optimization/general/Preconditioner.java similarity index 97% rename from src/main/java/org/apache/commons/math/optimization/general/Preconditioner.java rename to src/main/java/org/apache/commons/math3/optimization/general/Preconditioner.java index 34611b2e7..8f2994f6a 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/Preconditioner.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/Preconditioner.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.general; +package org.apache.commons.math3.optimization.general; /** * This interface represents a preconditioner for differentiable scalar diff --git a/src/main/java/org/apache/commons/math/optimization/general/package-info.java b/src/main/java/org/apache/commons/math3/optimization/general/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/optimization/general/package-info.java rename to src/main/java/org/apache/commons/math3/optimization/general/package-info.java index e8c19c6ef..ba140ce9e 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/package-info.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/package-info.java @@ -19,4 +19,4 @@ * This package provides optimization algorithms that require derivatives. * */ -package org.apache.commons.math.optimization.general; +package org.apache.commons.math3.optimization.general; diff --git a/src/main/java/org/apache/commons/math/optimization/linear/AbstractLinearOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/linear/AbstractLinearOptimizer.java similarity index 92% rename from src/main/java/org/apache/commons/math/optimization/linear/AbstractLinearOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/linear/AbstractLinearOptimizer.java index 6c5c02a18..37254b651 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/AbstractLinearOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/AbstractLinearOptimizer.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; import java.util.Collection; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.optimization.GoalType; -import org.apache.commons.math.optimization.PointValuePair; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.optimization.GoalType; +import org.apache.commons.math3.optimization.PointValuePair; /** * Base class for implementing linear optimizers. diff --git a/src/main/java/org/apache/commons/math/optimization/linear/LinearConstraint.java b/src/main/java/org/apache/commons/math3/optimization/linear/LinearConstraint.java similarity index 97% rename from src/main/java/org/apache/commons/math/optimization/linear/LinearConstraint.java rename to src/main/java/org/apache/commons/math3/optimization/linear/LinearConstraint.java index 760e6c093..acf9e1b5c 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/LinearConstraint.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/LinearConstraint.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; -import org.apache.commons.math.linear.MatrixUtils; -import org.apache.commons.math.linear.RealVector; -import org.apache.commons.math.linear.ArrayRealVector; +import org.apache.commons.math3.linear.MatrixUtils; +import org.apache.commons.math3.linear.RealVector; +import org.apache.commons.math3.linear.ArrayRealVector; /** diff --git a/src/main/java/org/apache/commons/math/optimization/linear/LinearObjectiveFunction.java b/src/main/java/org/apache/commons/math3/optimization/linear/LinearObjectiveFunction.java similarity index 95% rename from src/main/java/org/apache/commons/math/optimization/linear/LinearObjectiveFunction.java rename to src/main/java/org/apache/commons/math3/optimization/linear/LinearObjectiveFunction.java index 65779c9f2..d87b46f54 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/LinearObjectiveFunction.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/LinearObjectiveFunction.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; -import org.apache.commons.math.linear.MatrixUtils; -import org.apache.commons.math.linear.RealVector; -import org.apache.commons.math.linear.ArrayRealVector; +import org.apache.commons.math3.linear.MatrixUtils; +import org.apache.commons.math3.linear.RealVector; +import org.apache.commons.math3.linear.ArrayRealVector; /** * An objective function for a linear optimization problem. diff --git a/src/main/java/org/apache/commons/math/optimization/linear/LinearOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/linear/LinearOptimizer.java similarity index 94% rename from src/main/java/org/apache/commons/math/optimization/linear/LinearOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/linear/LinearOptimizer.java index 9a9ab8401..adba4a07b 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/LinearOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/LinearOptimizer.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; import java.util.Collection; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.optimization.GoalType; -import org.apache.commons.math.optimization.PointValuePair; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.optimization.GoalType; +import org.apache.commons.math3.optimization.PointValuePair; /** * This interface represents an optimization algorithm for linear problems. diff --git a/src/main/java/org/apache/commons/math/optimization/linear/NoFeasibleSolutionException.java b/src/main/java/org/apache/commons/math3/optimization/linear/NoFeasibleSolutionException.java similarity index 87% rename from src/main/java/org/apache/commons/math/optimization/linear/NoFeasibleSolutionException.java rename to src/main/java/org/apache/commons/math3/optimization/linear/NoFeasibleSolutionException.java index 2364d8850..559f9e6bf 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/NoFeasibleSolutionException.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/NoFeasibleSolutionException.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * This class represents exceptions thrown by optimizers when no solution diff --git a/src/main/java/org/apache/commons/math/optimization/linear/Relationship.java b/src/main/java/org/apache/commons/math3/optimization/linear/Relationship.java similarity index 97% rename from src/main/java/org/apache/commons/math/optimization/linear/Relationship.java rename to src/main/java/org/apache/commons/math3/optimization/linear/Relationship.java index c806a685b..7ea47b752 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/Relationship.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/Relationship.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; /** * Types of relationships between two cells in a Solver {@link LinearConstraint}. diff --git a/src/main/java/org/apache/commons/math/optimization/linear/SimplexSolver.java b/src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java similarity index 96% rename from src/main/java/org/apache/commons/math/optimization/linear/SimplexSolver.java rename to src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java index 45226e2c4..f94299cf6 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/SimplexSolver.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.optimization.PointValuePair; -import org.apache.commons.math.util.Precision; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.optimization.PointValuePair; +import org.apache.commons.math3.util.Precision; /** diff --git a/src/main/java/org/apache/commons/math/optimization/linear/SimplexTableau.java b/src/main/java/org/apache/commons/math3/optimization/linear/SimplexTableau.java similarity index 98% rename from src/main/java/org/apache/commons/math/optimization/linear/SimplexTableau.java rename to src/main/java/org/apache/commons/math3/optimization/linear/SimplexTableau.java index e2ffeb861..9a6993a55 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/SimplexTableau.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/SimplexTableau.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; import java.io.IOException; import java.io.ObjectInputStream; @@ -27,13 +27,13 @@ import java.util.HashSet; import java.util.List; import java.util.Set; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.MatrixUtils; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.RealVector; -import org.apache.commons.math.optimization.GoalType; -import org.apache.commons.math.optimization.PointValuePair; -import org.apache.commons.math.util.Precision; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.MatrixUtils; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.RealVector; +import org.apache.commons.math3.optimization.GoalType; +import org.apache.commons.math3.optimization.PointValuePair; +import org.apache.commons.math3.util.Precision; /** * A tableau for use in the Simplex method. diff --git a/src/main/java/org/apache/commons/math/optimization/linear/UnboundedSolutionException.java b/src/main/java/org/apache/commons/math3/optimization/linear/UnboundedSolutionException.java similarity index 87% rename from src/main/java/org/apache/commons/math/optimization/linear/UnboundedSolutionException.java rename to src/main/java/org/apache/commons/math3/optimization/linear/UnboundedSolutionException.java index 0050d6656..8dc0e7d27 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/UnboundedSolutionException.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/UnboundedSolutionException.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * This class represents exceptions thrown by optimizers when a solution diff --git a/src/main/java/org/apache/commons/math/optimization/linear/package-info.java b/src/main/java/org/apache/commons/math3/optimization/linear/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/optimization/linear/package-info.java rename to src/main/java/org/apache/commons/math3/optimization/linear/package-info.java index 5cee2644d..b61b03b1f 100644 --- a/src/main/java/org/apache/commons/math/optimization/linear/package-info.java +++ b/src/main/java/org/apache/commons/math3/optimization/linear/package-info.java @@ -19,4 +19,4 @@ * This package provides optimization algorithms for linear constrained problems. * */ -package org.apache.commons.math.optimization.linear; +package org.apache.commons.math3.optimization.linear; diff --git a/src/main/java/org/apache/commons/math/optimization/package-info.java b/src/main/java/org/apache/commons/math3/optimization/package-info.java similarity index 74% rename from src/main/java/org/apache/commons/math/optimization/package-info.java rename to src/main/java/org/apache/commons/math3/optimization/package-info.java index 2e0e8d2cc..9905ba4c9 100644 --- a/src/main/java/org/apache/commons/math/optimization/package-info.java +++ b/src/main/java/org/apache/commons/math3/optimization/package-info.java @@ -32,32 +32,32 @@ * interfaces defining the common behavior of optimizers, one for each supported type of objective * function: *
* Despite there are only four types of supported optimizers, it is possible to optimize a - * transform a {@link org.apache.commons.math.analysis.MultivariateVectorFunction + * transform a {@link org.apache.commons.math3.analysis.MultivariateVectorFunction * non-differentiable multivariate vectorial function} by converting it to a {@link - * org.apache.commons.math.analysis.MultivariateFunction non-differentiable multivariate + * org.apache.commons.math3.analysis.MultivariateFunction non-differentiable multivariate * real function} thanks to the {@link - * org.apache.commons.math.optimization.LeastSquaresConverter LeastSquaresConverter} helper class. + * org.apache.commons.math3.optimization.LeastSquaresConverter LeastSquaresConverter} helper class. * The transformed function can be optimized using any implementation of the {@link - * org.apache.commons.math.optimization.MultivariateOptimizer MultivariateOptimizer} interface. + * org.apache.commons.math3.optimization.MultivariateOptimizer MultivariateOptimizer} interface. *
* *@@ -69,4 +69,4 @@ *
* */ -package org.apache.commons.math.optimization; +package org.apache.commons.math3.optimization; diff --git a/src/main/java/org/apache/commons/math/optimization/univariate/BaseAbstractUnivariateOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.java similarity index 90% rename from src/main/java/org/apache/commons/math/optimization/univariate/BaseAbstractUnivariateOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.java index 3d0fa1e01..641a3633c 100644 --- a/src/main/java/org/apache/commons/math/optimization/univariate/BaseAbstractUnivariateOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.univariate; +package org.apache.commons.math3.optimization.univariate; -import org.apache.commons.math.util.Incrementor; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.exception.TooManyEvaluationsException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.optimization.GoalType; -import org.apache.commons.math.optimization.ConvergenceChecker; +import org.apache.commons.math3.util.Incrementor; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.optimization.GoalType; +import org.apache.commons.math3.optimization.ConvergenceChecker; /** * Provide a default implementation for several functions useful to generic diff --git a/src/main/java/org/apache/commons/math/optimization/univariate/BaseUnivariateOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.java similarity index 82% rename from src/main/java/org/apache/commons/math/optimization/univariate/BaseUnivariateOptimizer.java rename to src/main/java/org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.java index 610582f6b..38c86608f 100644 --- a/src/main/java/org/apache/commons/math/optimization/univariate/BaseUnivariateOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.java @@ -15,18 +15,18 @@ * limitations under the License. */ -package org.apache.commons.math.optimization.univariate; +package org.apache.commons.math3.optimization.univariate; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.optimization.BaseOptimizer; -import org.apache.commons.math.optimization.GoalType; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.optimization.BaseOptimizer; +import org.apache.commons.math3.optimization.GoalType; /** * This interface is mainly intended to enforce the internal coherence of * Commons-Math. Users of the API are advised to base their code on * the following interfaces: *Generates a random value from the - * {@link org.apache.commons.math.distribution.GammaDistribution Gamma Distribution}.
+ * {@link org.apache.commons.math3.distribution.GammaDistribution Gamma Distribution}. * *This implementation uses the following algorithms:
* diff --git a/src/main/java/org/apache/commons/math/random/RandomGenerator.java b/src/main/java/org/apache/commons/math3/random/RandomGenerator.java similarity index 99% rename from src/main/java/org/apache/commons/math/random/RandomGenerator.java rename to src/main/java/org/apache/commons/math3/random/RandomGenerator.java index e1301b57e..ce16be104 100644 --- a/src/main/java/org/apache/commons/math/random/RandomGenerator.java +++ b/src/main/java/org/apache/commons/math3/random/RandomGenerator.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; /** diff --git a/src/main/java/org/apache/commons/math/random/RandomVectorGenerator.java b/src/main/java/org/apache/commons/math3/random/RandomVectorGenerator.java similarity index 96% rename from src/main/java/org/apache/commons/math/random/RandomVectorGenerator.java rename to src/main/java/org/apache/commons/math3/random/RandomVectorGenerator.java index cd2eeffde..c6f3c86c8 100644 --- a/src/main/java/org/apache/commons/math/random/RandomVectorGenerator.java +++ b/src/main/java/org/apache/commons/math3/random/RandomVectorGenerator.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; /** This interface represents a random generator for whole vectors. diff --git a/src/main/java/org/apache/commons/math/random/StableRandomGenerator.java b/src/main/java/org/apache/commons/math3/random/StableRandomGenerator.java similarity index 94% rename from src/main/java/org/apache/commons/math/random/StableRandomGenerator.java rename to src/main/java/org/apache/commons/math3/random/StableRandomGenerator.java index a44d0602e..7effbc117 100644 --- a/src/main/java/org/apache/commons/math/random/StableRandomGenerator.java +++ b/src/main/java/org/apache/commons/math3/random/StableRandomGenerator.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** *This class provides a stable normalized random generator. It samples from a stable diff --git a/src/main/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java b/src/main/java/org/apache/commons/math3/random/UncorrelatedRandomVectorGenerator.java similarity index 96% rename from src/main/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java rename to src/main/java/org/apache/commons/math3/random/UncorrelatedRandomVectorGenerator.java index 329b593f2..6e32b5ba9 100644 --- a/src/main/java/org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.java +++ b/src/main/java/org/apache/commons/math3/random/UncorrelatedRandomVectorGenerator.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; import java.util.Arrays; -import org.apache.commons.math.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.DimensionMismatchException; /** * A {@link RandomVectorGenerator} that generates vectors with uncorrelated diff --git a/src/main/java/org/apache/commons/math/random/UniformRandomGenerator.java b/src/main/java/org/apache/commons/math3/random/UniformRandomGenerator.java similarity index 95% rename from src/main/java/org/apache/commons/math/random/UniformRandomGenerator.java rename to src/main/java/org/apache/commons/math3/random/UniformRandomGenerator.java index 6b7726f23..bdd0ba536 100644 --- a/src/main/java/org/apache/commons/math/random/UniformRandomGenerator.java +++ b/src/main/java/org/apache/commons/math3/random/UniformRandomGenerator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** * This class implements a normalized uniform random generator. diff --git a/src/main/java/org/apache/commons/math/random/UnitSphereRandomVectorGenerator.java b/src/main/java/org/apache/commons/math3/random/UnitSphereRandomVectorGenerator.java similarity index 96% rename from src/main/java/org/apache/commons/math/random/UnitSphereRandomVectorGenerator.java rename to src/main/java/org/apache/commons/math3/random/UnitSphereRandomVectorGenerator.java index 945ed6341..d3a01cf2d 100644 --- a/src/main/java/org/apache/commons/math/random/UnitSphereRandomVectorGenerator.java +++ b/src/main/java/org/apache/commons/math3/random/UnitSphereRandomVectorGenerator.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/random/ValueServer.java b/src/main/java/org/apache/commons/math3/random/ValueServer.java similarity index 98% rename from src/main/java/org/apache/commons/math/random/ValueServer.java rename to src/main/java/org/apache/commons/math3/random/ValueServer.java index 413f8bb34..d3ca8aff7 100644 --- a/src/main/java/org/apache/commons/math/random/ValueServer.java +++ b/src/main/java/org/apache/commons/math3/random/ValueServer.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Generates values for use in simulation applications. diff --git a/src/main/java/org/apache/commons/math/random/Well1024a.java b/src/main/java/org/apache/commons/math3/random/Well1024a.java similarity index 98% rename from src/main/java/org/apache/commons/math/random/Well1024a.java rename to src/main/java/org/apache/commons/math3/random/Well1024a.java index 47f7f7782..68f7d9209 100644 --- a/src/main/java/org/apache/commons/math/random/Well1024a.java +++ b/src/main/java/org/apache/commons/math3/random/Well1024a.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; /** This class implements the WELL1024a pseudo-random number generator diff --git a/src/main/java/org/apache/commons/math/random/Well19937a.java b/src/main/java/org/apache/commons/math3/random/Well19937a.java similarity index 98% rename from src/main/java/org/apache/commons/math/random/Well19937a.java rename to src/main/java/org/apache/commons/math3/random/Well19937a.java index 8f2f33975..56f352d2a 100644 --- a/src/main/java/org/apache/commons/math/random/Well19937a.java +++ b/src/main/java/org/apache/commons/math3/random/Well19937a.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; /** This class implements the WELL19937a pseudo-random number generator diff --git a/src/main/java/org/apache/commons/math/random/Well19937c.java b/src/main/java/org/apache/commons/math3/random/Well19937c.java similarity index 98% rename from src/main/java/org/apache/commons/math/random/Well19937c.java rename to src/main/java/org/apache/commons/math3/random/Well19937c.java index 68e37bba9..6e7b6860c 100644 --- a/src/main/java/org/apache/commons/math/random/Well19937c.java +++ b/src/main/java/org/apache/commons/math3/random/Well19937c.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; /** This class implements the WELL19937c pseudo-random number generator diff --git a/src/main/java/org/apache/commons/math/random/Well44497a.java b/src/main/java/org/apache/commons/math3/random/Well44497a.java similarity index 98% rename from src/main/java/org/apache/commons/math/random/Well44497a.java rename to src/main/java/org/apache/commons/math3/random/Well44497a.java index df71307e6..2c11158fe 100644 --- a/src/main/java/org/apache/commons/math/random/Well44497a.java +++ b/src/main/java/org/apache/commons/math3/random/Well44497a.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; /** This class implements the WELL44497a pseudo-random number generator diff --git a/src/main/java/org/apache/commons/math/random/Well44497b.java b/src/main/java/org/apache/commons/math3/random/Well44497b.java similarity index 99% rename from src/main/java/org/apache/commons/math/random/Well44497b.java rename to src/main/java/org/apache/commons/math3/random/Well44497b.java index 74e501533..8fd0e1d84 100644 --- a/src/main/java/org/apache/commons/math/random/Well44497b.java +++ b/src/main/java/org/apache/commons/math3/random/Well44497b.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; /** This class implements the WELL44497b pseudo-random number generator diff --git a/src/main/java/org/apache/commons/math/random/Well512a.java b/src/main/java/org/apache/commons/math3/random/Well512a.java similarity index 98% rename from src/main/java/org/apache/commons/math/random/Well512a.java rename to src/main/java/org/apache/commons/math3/random/Well512a.java index 1cdf440d2..aa20c52a0 100644 --- a/src/main/java/org/apache/commons/math/random/Well512a.java +++ b/src/main/java/org/apache/commons/math3/random/Well512a.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; /** This class implements the WELL512a pseudo-random number generator diff --git a/src/main/java/org/apache/commons/math/random/package-info.java b/src/main/java/org/apache/commons/math3/random/package-info.java similarity index 78% rename from src/main/java/org/apache/commons/math/random/package-info.java rename to src/main/java/org/apache/commons/math3/random/package-info.java index 09c76a9fe..06e57397e 100644 --- a/src/main/java/org/apache/commons/math/random/package-info.java +++ b/src/main/java/org/apache/commons/math3/random/package-info.java @@ -20,19 +20,19 @@ *
Commons-math provides a few pseudo random number generators. The top level interface is RandomGenerator. * It is implemented by three classes: *
Example of performances | |
Name | generation rate (relative to MersenneTwister) |
{@link org.apache.commons.math.random.MersenneTwister MersenneTwister} | 1 |
{@link org.apache.commons.math.random.JDKRandomGenerator JDKRandomGenerator} | between 0.96 and 1.16 |
{@link org.apache.commons.math.random.Well512a Well512a} | between 0.85 and 0.88 |
{@link org.apache.commons.math.random.Well1024a Well1024a} | between 0.63 and 0.73 |
{@link org.apache.commons.math.random.Well19937a Well19937a} | between 0.70 and 0.71 |
{@link org.apache.commons.math.random.Well19937c Well19937c} | between 0.57 and 0.71 |
{@link org.apache.commons.math.random.Well44497a Well44497a} | between 0.69 and 0.71 |
{@link org.apache.commons.math.random.Well44497b Well44497b} | between 0.65 and 0.71 |
{@link org.apache.commons.math3.random.MersenneTwister MersenneTwister} | 1 |
{@link org.apache.commons.math3.random.JDKRandomGenerator JDKRandomGenerator} | between 0.96 and 1.16 |
{@link org.apache.commons.math3.random.Well512a Well512a} | between 0.85 and 0.88 |
{@link org.apache.commons.math3.random.Well1024a Well1024a} | between 0.63 and 0.73 |
{@link org.apache.commons.math3.random.Well19937a Well19937a} | between 0.70 and 0.71 |
{@link org.apache.commons.math3.random.Well19937c Well19937c} | between 0.57 and 0.71 |
{@link org.apache.commons.math3.random.Well44497a Well44497a} | between 0.69 and 0.71 |
{@link org.apache.commons.math3.random.Well44497b Well44497b} | between 0.65 and 0.71 |
* So for most simulation problems, the better generators like {@link - * org.apache.commons.math.random.Well19937c Well19937c} and {@link - * org.apache.commons.math.random.Well44497b Well44497b} are probably very good choices. + * org.apache.commons.math3.random.Well19937c Well19937c} and {@link + * org.apache.commons.math3.random.Well44497b Well44497b} are probably very good choices. *
* *@@ -129,4 +129,4 @@ * * */ -package org.apache.commons.math.random; +package org.apache.commons.math3.random; diff --git a/src/main/java/org/apache/commons/math/special/Beta.java b/src/main/java/org/apache/commons/math3/special/Beta.java similarity index 94% rename from src/main/java/org/apache/commons/math/special/Beta.java rename to src/main/java/org/apache/commons/math3/special/Beta.java index bab4ced5f..8bb115de1 100644 --- a/src/main/java/org/apache/commons/math/special/Beta.java +++ b/src/main/java/org/apache/commons/math3/special/Beta.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.special; +package org.apache.commons.math3.special; -import org.apache.commons.math.util.ContinuedFraction; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.ContinuedFraction; +import org.apache.commons.math3.util.FastMath; /** * This is a utility class that provides computation methods related to the @@ -43,7 +43,7 @@ public class Beta { * @param a Parameter {@code a}. * @param b Parameter {@code b}. * @return the regularized beta function I(x, a, b). - * @throws org.apache.commons.math.exception.MaxCountExceededException + * @throws org.apache.commons.math3.exception.MaxCountExceededException * if the algorithm fails to converge. */ public static double regularizedBeta(double x, double a, double b) { @@ -62,7 +62,7 @@ public class Beta { * series is less than epsilon the approximation ceases to calculate * further elements in the series. * @return the regularized beta function I(x, a, b) - * @throws org.apache.commons.math.exception.MaxCountExceededException + * @throws org.apache.commons.math3.exception.MaxCountExceededException * if the algorithm fails to converge. */ public static double regularizedBeta(double x, @@ -79,7 +79,7 @@ public class Beta { * @param b Parameter {@code b}. * @param maxIterations Maximum number of "iterations" to complete. * @return the regularized beta function I(x, a, b) - * @throws org.apache.commons.math.exception.MaxCountExceededException + * @throws org.apache.commons.math3.exception.MaxCountExceededException * if the algorithm fails to converge. */ public static double regularizedBeta(double x, @@ -109,7 +109,7 @@ public class Beta { * further elements in the series. * @param maxIterations Maximum number of "iterations" to complete. * @return the regularized beta function I(x, a, b) - * @throws org.apache.commons.math.exception.MaxCountExceededException + * @throws org.apache.commons.math3.exception.MaxCountExceededException * if the algorithm fails to converge. */ public static double regularizedBeta(double x, diff --git a/src/main/java/org/apache/commons/math/special/Erf.java b/src/main/java/org/apache/commons/math3/special/Erf.java similarity index 94% rename from src/main/java/org/apache/commons/math/special/Erf.java rename to src/main/java/org/apache/commons/math3/special/Erf.java index f936be2f8..25341af28 100644 --- a/src/main/java/org/apache/commons/math/special/Erf.java +++ b/src/main/java/org/apache/commons/math3/special/Erf.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.special; +package org.apache.commons.math3.special; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.util.FastMath; /** * This is a utility class that provides computation methods related to the @@ -59,7 +59,7 @@ public class Erf { * * @param x the value. * @return the error function erf(x) - * @throws org.apache.commons.math.exception.MaxCountExceededException + * @throws org.apache.commons.math3.exception.MaxCountExceededException * if the algorithm fails to converge. * @see Gamma#regularizedGammaP(double, double, double, int) */ @@ -89,7 +89,7 @@ public class Erf { * * @param x the value * @return the complementary error function erfc(x) - * @throws org.apache.commons.math.exception.MaxCountExceededException + * @throws org.apache.commons.math3.exception.MaxCountExceededException * if the algorithm fails to converge. * @see Gamma#regularizedGammaQ(double, double, double, int) * @since 2.2 diff --git a/src/main/java/org/apache/commons/math/special/Gamma.java b/src/main/java/org/apache/commons/math3/special/Gamma.java similarity index 98% rename from src/main/java/org/apache/commons/math/special/Gamma.java rename to src/main/java/org/apache/commons/math3/special/Gamma.java index 162de750b..dee373a40 100644 --- a/src/main/java/org/apache/commons/math/special/Gamma.java +++ b/src/main/java/org/apache/commons/math3/special/Gamma.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.special; +package org.apache.commons.math3.special; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.util.ContinuedFraction; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.util.ContinuedFraction; +import org.apache.commons.math3.util.FastMath; /** * This is a utility class that provides computation methods related to the diff --git a/src/main/java/org/apache/commons/math/special/package-info.java b/src/main/java/org/apache/commons/math3/special/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/special/package-info.java rename to src/main/java/org/apache/commons/math3/special/package-info.java index 46fb274b5..6ebcbd51e 100644 --- a/src/main/java/org/apache/commons/math/special/package-info.java +++ b/src/main/java/org/apache/commons/math3/special/package-info.java @@ -17,4 +17,4 @@ /** * Implementations of special functions such as Beta and Gamma. */ -package org.apache.commons.math.special; +package org.apache.commons.math3.special; diff --git a/src/main/java/org/apache/commons/math/stat/Frequency.java b/src/main/java/org/apache/commons/math3/stat/Frequency.java similarity index 98% rename from src/main/java/org/apache/commons/math/stat/Frequency.java rename to src/main/java/org/apache/commons/math3/stat/Frequency.java index 7528777eb..46fc1a945 100644 --- a/src/main/java/org/apache/commons/math/stat/Frequency.java +++ b/src/main/java/org/apache/commons/math3/stat/Frequency.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat; +package org.apache.commons.math3.stat; import java.io.Serializable; import java.text.NumberFormat; @@ -22,8 +22,8 @@ import java.util.Iterator; import java.util.Comparator; import java.util.TreeMap; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Maintains a frequency distribution. diff --git a/src/main/java/org/apache/commons/math/stat/StatUtils.java b/src/main/java/org/apache/commons/math3/stat/StatUtils.java similarity index 92% rename from src/main/java/org/apache/commons/math/stat/StatUtils.java rename to src/main/java/org/apache/commons/math3/stat/StatUtils.java index 10a166e58..14adc3a83 100644 --- a/src/main/java/org/apache/commons/math/stat/StatUtils.java +++ b/src/main/java/org/apache/commons/math3/stat/StatUtils.java @@ -14,24 +14,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat; +package org.apache.commons.math3.stat; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.NoDataException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.stat.descriptive.DescriptiveStatistics; -import org.apache.commons.math.stat.descriptive.UnivariateStatistic; -import org.apache.commons.math.stat.descriptive.moment.GeometricMean; -import org.apache.commons.math.stat.descriptive.moment.Mean; -import org.apache.commons.math.stat.descriptive.moment.Variance; -import org.apache.commons.math.stat.descriptive.rank.Max; -import org.apache.commons.math.stat.descriptive.rank.Min; -import org.apache.commons.math.stat.descriptive.rank.Percentile; -import org.apache.commons.math.stat.descriptive.summary.Product; -import org.apache.commons.math.stat.descriptive.summary.Sum; -import org.apache.commons.math.stat.descriptive.summary.SumOfLogs; -import org.apache.commons.math.stat.descriptive.summary.SumOfSquares; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.NoDataException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; +import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math3.stat.descriptive.moment.GeometricMean; +import org.apache.commons.math3.stat.descriptive.moment.Mean; +import org.apache.commons.math3.stat.descriptive.moment.Variance; +import org.apache.commons.math3.stat.descriptive.rank.Max; +import org.apache.commons.math3.stat.descriptive.rank.Min; +import org.apache.commons.math3.stat.descriptive.rank.Percentile; +import org.apache.commons.math3.stat.descriptive.summary.Product; +import org.apache.commons.math3.stat.descriptive.summary.Sum; +import org.apache.commons.math3.stat.descriptive.summary.SumOfLogs; +import org.apache.commons.math3.stat.descriptive.summary.SumOfSquares; /** * StatUtils provides static methods for computing statistics based on data @@ -185,7 +185,7 @@ public final class StatUtils { *
* Throws IllegalArgumentException
if the array is null.
- * See {@link org.apache.commons.math.stat.descriptive.summary.SumOfLogs}. + * See {@link org.apache.commons.math3.stat.descriptive.summary.SumOfLogs}. *
* * @param values the input array @@ -204,7 +204,7 @@ public final class StatUtils { *
* Throws IllegalArgumentException
if the array is null.
- * See {@link org.apache.commons.math.stat.descriptive.summary.SumOfLogs}. + * See {@link org.apache.commons.math3.stat.descriptive.summary.SumOfLogs}. *
* * @param values the input array @@ -226,7 +226,7 @@ public final class StatUtils { *
* Throws IllegalArgumentException
if the array is null.
- * See {@link org.apache.commons.math.stat.descriptive.moment.Mean} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Mean} for * details on the computing algorithm.
* * @param values the input array @@ -244,7 +244,7 @@ public final class StatUtils { *
* Throws IllegalArgumentException
if the array is null.
- * See {@link org.apache.commons.math.stat.descriptive.moment.Mean} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Mean} for * details on the computing algorithm.
* * @param values the input array @@ -265,7 +265,7 @@ public final class StatUtils { *
* Throws IllegalArgumentException
if the array is null.
- * See {@link org.apache.commons.math.stat.descriptive.moment.GeometricMean} + * See {@link org.apache.commons.math3.stat.descriptive.moment.GeometricMean} * for details on the computing algorithm.
* * @param values the input array @@ -283,7 +283,7 @@ public final class StatUtils { *
* Throws IllegalArgumentException
if the array is null.
- * See {@link org.apache.commons.math.stat.descriptive.moment.GeometricMean} + * See {@link org.apache.commons.math3.stat.descriptive.moment.GeometricMean} * for details on the computing algorithm.
* * @param values the input array @@ -307,7 +307,7 @@ public final class StatUtils { * the denominator). Use {@link #populationVariance(double[])} for the non-bias-corrected * population variance. *- * See {@link org.apache.commons.math.stat.descriptive.moment.Variance} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Variance} for * details on the computing algorithm.
** Returns 0 for a single-value (i.e. length = 1) sample.
@@ -331,7 +331,7 @@ public final class StatUtils { * the denominator). Use {@link #populationVariance(double[], int, int)} for the non-bias-corrected * population variance. *- * See {@link org.apache.commons.math.stat.descriptive.moment.Variance} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Variance} for * details on the computing algorithm.
** Returns 0 for a single-value (i.e. length = 1) sample.
@@ -360,7 +360,7 @@ public final class StatUtils { * the denominator). Use {@link #populationVariance(double[], double, int, int)} for the non-bias-corrected * population variance. *- * See {@link org.apache.commons.math.stat.descriptive.moment.Variance} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Variance} for * details on the computing algorithm.
** The formula used assumes that the supplied mean value is the arithmetic @@ -395,7 +395,7 @@ public final class StatUtils { * the denominator). Use {@link #populationVariance(double[], double)} for the non-bias-corrected * population variance.
*- * See {@link org.apache.commons.math.stat.descriptive.moment.Variance} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Variance} for * details on the computing algorithm.
** The formula used assumes that the supplied mean value is the arithmetic @@ -421,7 +421,7 @@ public final class StatUtils { * population variance
Double.NaN
if the array is empty.
* - * See {@link org.apache.commons.math.stat.descriptive.moment.Variance} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Variance} for * details on the formula and computing algorithm.
** Returns 0 for a single-value (i.e. length = 1) sample.
@@ -442,7 +442,7 @@ public final class StatUtils { * the input array, orDouble.NaN
if the designated subarray
* is empty.
* - * See {@link org.apache.commons.math.stat.descriptive.moment.Variance} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Variance} for * details on the computing algorithm.
** Returns 0 for a single-value (i.e. length = 1) sample.
@@ -468,7 +468,7 @@ public final class StatUtils { * the input array, using the precomputed mean value. Returns *Double.NaN
if the designated subarray is empty.
* - * See {@link org.apache.commons.math.stat.descriptive.moment.Variance} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Variance} for * details on the computing algorithm.
*
* The formula used assumes that the supplied mean value is the arithmetic
@@ -500,7 +500,7 @@ public final class StatUtils {
* precomputed mean value. Returns Double.NaN
if the array
* is empty.
*
- * See {@link org.apache.commons.math.stat.descriptive.moment.Variance} for + * See {@link org.apache.commons.math3.stat.descriptive.moment.Variance} for * details on the computing algorithm.
** The formula used assumes that the supplied mean value is the arithmetic @@ -631,7 +631,7 @@ public final class StatUtils { * and less than or equal to 100)
- * See {@link org.apache.commons.math.stat.descriptive.rank.Percentile} for + * See {@link org.apache.commons.math3.stat.descriptive.rank.Percentile} for * a description of the percentile estimation algorithm used.
* * @param values input array of values @@ -660,7 +660,7 @@ public final class StatUtils { * and less than or equal to 100) * *- * See {@link org.apache.commons.math.stat.descriptive.rank.Percentile} for + * See {@link org.apache.commons.math3.stat.descriptive.rank.Percentile} for * a description of the percentile estimation algorithm used.
* * @param values array of input values diff --git a/src/main/java/org/apache/commons/math/stat/clustering/Cluster.java b/src/main/java/org/apache/commons/math3/stat/clustering/Cluster.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/clustering/Cluster.java rename to src/main/java/org/apache/commons/math3/stat/clustering/Cluster.java index 02fa652cb..793f443b8 100644 --- a/src/main/java/org/apache/commons/math/stat/clustering/Cluster.java +++ b/src/main/java/org/apache/commons/math3/stat/clustering/Cluster.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.stat.clustering; +package org.apache.commons.math3.stat.clustering; import java.io.Serializable; import java.util.ArrayList; diff --git a/src/main/java/org/apache/commons/math/stat/clustering/Clusterable.java b/src/main/java/org/apache/commons/math3/stat/clustering/Clusterable.java similarity index 96% rename from src/main/java/org/apache/commons/math/stat/clustering/Clusterable.java rename to src/main/java/org/apache/commons/math3/stat/clustering/Clusterable.java index 5b2e2e325..f7eb8533f 100644 --- a/src/main/java/org/apache/commons/math/stat/clustering/Clusterable.java +++ b/src/main/java/org/apache/commons/math3/stat/clustering/Clusterable.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.stat.clustering; +package org.apache.commons.math3.stat.clustering; import java.util.Collection; diff --git a/src/main/java/org/apache/commons/math/stat/clustering/EuclideanIntegerPoint.java b/src/main/java/org/apache/commons/math3/stat/clustering/EuclideanIntegerPoint.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/clustering/EuclideanIntegerPoint.java rename to src/main/java/org/apache/commons/math3/stat/clustering/EuclideanIntegerPoint.java index c6111c07d..b8c4bc266 100644 --- a/src/main/java/org/apache/commons/math/stat/clustering/EuclideanIntegerPoint.java +++ b/src/main/java/org/apache/commons/math3/stat/clustering/EuclideanIntegerPoint.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.stat.clustering; +package org.apache.commons.math3.stat.clustering; import java.io.Serializable; import java.util.Collection; -import org.apache.commons.math.util.MathArrays; +import org.apache.commons.math3.util.MathArrays; /** * A simple implementation of {@link Clusterable} for points with integer coordinates. diff --git a/src/main/java/org/apache/commons/math/stat/clustering/KMeansPlusPlusClusterer.java b/src/main/java/org/apache/commons/math3/stat/clustering/KMeansPlusPlusClusterer.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/clustering/KMeansPlusPlusClusterer.java rename to src/main/java/org/apache/commons/math3/stat/clustering/KMeansPlusPlusClusterer.java index 3de2a0648..62f84e5ff 100644 --- a/src/main/java/org/apache/commons/math/stat/clustering/KMeansPlusPlusClusterer.java +++ b/src/main/java/org/apache/commons/math3/stat/clustering/KMeansPlusPlusClusterer.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.stat.clustering; +package org.apache.commons.math3.stat.clustering; import java.util.ArrayList; import java.util.Collection; @@ -23,12 +23,12 @@ import java.util.Collections; import java.util.List; import java.util.Random; -import org.apache.commons.math.exception.ConvergenceException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.stat.descriptive.moment.Variance; -import org.apache.commons.math.util.MathUtils; +import org.apache.commons.math3.exception.ConvergenceException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.stat.descriptive.moment.Variance; +import org.apache.commons.math3.util.MathUtils; /** * Clustering algorithm based on David Arthur and Sergei Vassilvitski k-means++ algorithm. diff --git a/src/main/java/org/apache/commons/math/stat/clustering/package-info.java b/src/main/java/org/apache/commons/math3/stat/clustering/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/stat/clustering/package-info.java rename to src/main/java/org/apache/commons/math3/stat/clustering/package-info.java index af9bef3e1..b34bfd8ea 100644 --- a/src/main/java/org/apache/commons/math/stat/clustering/package-info.java +++ b/src/main/java/org/apache/commons/math3/stat/clustering/package-info.java @@ -17,4 +17,4 @@ /** * Clustering algorithms */ -package org.apache.commons.math.stat.clustering; +package org.apache.commons.math3.stat.clustering; diff --git a/src/main/java/org/apache/commons/math/stat/correlation/Covariance.java b/src/main/java/org/apache/commons/math3/stat/correlation/Covariance.java similarity index 95% rename from src/main/java/org/apache/commons/math/stat/correlation/Covariance.java rename to src/main/java/org/apache/commons/math3/stat/correlation/Covariance.java index 5a616e1c2..5d59c95b7 100644 --- a/src/main/java/org/apache/commons/math/stat/correlation/Covariance.java +++ b/src/main/java/org/apache/commons/math3/stat/correlation/Covariance.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.correlation; +package org.apache.commons.math3.stat.correlation; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.BlockRealMatrix; -import org.apache.commons.math.stat.descriptive.moment.Mean; -import org.apache.commons.math.stat.descriptive.moment.Variance; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.BlockRealMatrix; +import org.apache.commons.math3.stat.descriptive.moment.Mean; +import org.apache.commons.math3.stat.descriptive.moment.Variance; /** * Computes covariances for pairs of arrays or columns of a matrix. diff --git a/src/main/java/org/apache/commons/math/stat/correlation/PearsonsCorrelation.java b/src/main/java/org/apache/commons/math3/stat/correlation/PearsonsCorrelation.java similarity index 94% rename from src/main/java/org/apache/commons/math/stat/correlation/PearsonsCorrelation.java rename to src/main/java/org/apache/commons/math3/stat/correlation/PearsonsCorrelation.java index c1d7505af..0234ec435 100644 --- a/src/main/java/org/apache/commons/math/stat/correlation/PearsonsCorrelation.java +++ b/src/main/java/org/apache/commons/math3/stat/correlation/PearsonsCorrelation.java @@ -14,17 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.correlation; +package org.apache.commons.math3.stat.correlation; -import org.apache.commons.math.distribution.TDistribution; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.BlockRealMatrix; -import org.apache.commons.math.stat.regression.SimpleRegression; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.distribution.TDistribution; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.BlockRealMatrix; +import org.apache.commons.math3.stat.regression.SimpleRegression; +import org.apache.commons.math3.util.FastMath; /** * Computes Pearson's product-moment correlation coefficients for pairs of arrays @@ -157,7 +157,7 @@ public class PearsonsCorrelation { * significance of the corresponding correlation coefficients. * * @return matrix of p-values - * @throws org.apache.commons.math.exception.MaxCountExceededException + * @throws org.apache.commons.math3.exception.MaxCountExceededException * if an error occurs estimating probabilities */ public RealMatrix getCorrelationPValues() { diff --git a/src/main/java/org/apache/commons/math/stat/correlation/SpearmansCorrelation.java b/src/main/java/org/apache/commons/math3/stat/correlation/SpearmansCorrelation.java similarity index 92% rename from src/main/java/org/apache/commons/math/stat/correlation/SpearmansCorrelation.java rename to src/main/java/org/apache/commons/math3/stat/correlation/SpearmansCorrelation.java index b587ce2de..f4e9acc96 100644 --- a/src/main/java/org/apache/commons/math/stat/correlation/SpearmansCorrelation.java +++ b/src/main/java/org/apache/commons/math3/stat/correlation/SpearmansCorrelation.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math.stat.correlation; +package org.apache.commons.math3.stat.correlation; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.linear.BlockRealMatrix; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.stat.ranking.NaturalRanking; -import org.apache.commons.math.stat.ranking.RankingAlgorithm; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.linear.BlockRealMatrix; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.stat.ranking.NaturalRanking; +import org.apache.commons.math3.stat.ranking.RankingAlgorithm; /** *Spearman's rank correlation. This implementation performs a rank diff --git a/src/main/java/org/apache/commons/math/stat/correlation/StorelessBivariateCovariance.java b/src/main/java/org/apache/commons/math3/stat/correlation/StorelessBivariateCovariance.java similarity index 91% rename from src/main/java/org/apache/commons/math/stat/correlation/StorelessBivariateCovariance.java rename to src/main/java/org/apache/commons/math3/stat/correlation/StorelessBivariateCovariance.java index 812b21cb8..40121a8af 100644 --- a/src/main/java/org/apache/commons/math/stat/correlation/StorelessBivariateCovariance.java +++ b/src/main/java/org/apache/commons/math3/stat/correlation/StorelessBivariateCovariance.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.correlation; +package org.apache.commons.math3.stat.correlation; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Bivariate Covariance implementation that does not require input data to be diff --git a/src/main/java/org/apache/commons/math/stat/correlation/StorelessCovariance.java b/src/main/java/org/apache/commons/math3/stat/correlation/StorelessCovariance.java similarity index 91% rename from src/main/java/org/apache/commons/math/stat/correlation/StorelessCovariance.java rename to src/main/java/org/apache/commons/math3/stat/correlation/StorelessCovariance.java index 6127e114c..bb5514d8a 100644 --- a/src/main/java/org/apache/commons/math/stat/correlation/StorelessCovariance.java +++ b/src/main/java/org/apache/commons/math3/stat/correlation/StorelessCovariance.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.correlation; +package org.apache.commons.math3.stat.correlation; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathUnsupportedOperationException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.RealMatrix; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathUnsupportedOperationException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.RealMatrix; /** * Covariance implementation that does not require input data to be diff --git a/src/main/java/org/apache/commons/math/stat/correlation/package-info.java b/src/main/java/org/apache/commons/math3/stat/correlation/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/stat/correlation/package-info.java rename to src/main/java/org/apache/commons/math3/stat/correlation/package-info.java index 649372be5..adf285e63 100644 --- a/src/main/java/org/apache/commons/math/stat/correlation/package-info.java +++ b/src/main/java/org/apache/commons/math3/stat/correlation/package-info.java @@ -19,4 +19,4 @@ * Correlations/Covariance computations. * */ -package org.apache.commons.math.stat.correlation; +package org.apache.commons.math3.stat.correlation; diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java b/src/main/java/org/apache/commons/math3/stat/descriptive/AbstractStorelessUnivariateStatistic.java similarity index 89% rename from src/main/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/AbstractStorelessUnivariateStatistic.java index bbdb0dbce..db90fa879 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/AbstractStorelessUnivariateStatistic.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/AbstractStorelessUnivariateStatistic.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.util.Precision; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math3.util.Precision; /** * @@ -52,7 +52,7 @@ public abstract class AbstractStorelessUnivariateStatistic * If the array is null, an IllegalArgumentException is thrown.
* @param values input array * @return the value of the statistic applied to the input array - * @see org.apache.commons.math.stat.descriptive.UnivariateStatistic#evaluate(double[]) + * @see org.apache.commons.math3.stat.descriptive.UnivariateStatistic#evaluate(double[]) */ @Override public double evaluate(final double[] values) { @@ -81,7 +81,7 @@ public abstract class AbstractStorelessUnivariateStatistic * @param begin the index of the first element to include * @param length the number of elements to include * @return the value of the statistic applied to the included array entries - * @see org.apache.commons.math.stat.descriptive.UnivariateStatistic#evaluate(double[], int, int) + * @see org.apache.commons.math3.stat.descriptive.UnivariateStatistic#evaluate(double[], int, int) */ @Override public double evaluate(final double[] values, final int begin, final int length) { @@ -121,7 +121,7 @@ public abstract class AbstractStorelessUnivariateStatistic * * @param values values to add * @throws IllegalArgumentException if values is null - * @see org.apache.commons.math.stat.descriptive.StorelessUnivariateStatistic#incrementAll(double[]) + * @see org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic#incrementAll(double[]) */ public void incrementAll(double[] values) { if (values == null) { @@ -140,7 +140,7 @@ public abstract class AbstractStorelessUnivariateStatistic * @param begin index of the first array element to add * @param length number of array elements to add * @throws IllegalArgumentException if values is null - * @see org.apache.commons.math.stat.descriptive.StorelessUnivariateStatistic#incrementAll(double[], int, int) + * @see org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic#incrementAll(double[], int, int) */ public void incrementAll(double[] values, int begin, int length) { if (test(values, begin, length)) { diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/AbstractUnivariateStatistic.java b/src/main/java/org/apache/commons/math3/stat/descriptive/AbstractUnivariateStatistic.java similarity index 96% rename from src/main/java/org/apache/commons/math/stat/descriptive/AbstractUnivariateStatistic.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/AbstractUnivariateStatistic.java index 757456467..7e78d5e13 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/AbstractUnivariateStatistic.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/AbstractUnivariateStatistic.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.NotPositiveException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.NotPositiveException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Abstract base class for all implementations of the diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/AggregateSummaryStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.java similarity index 99% rename from src/main/java/org/apache/commons/math/stat/descriptive/AggregateSummaryStatistics.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.java index af989e0ef..ddb947db3 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/AggregateSummaryStatistics.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; import java.io.Serializable; import java.util.Collection; diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/DescriptiveStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/DescriptiveStatistics.java similarity index 95% rename from src/main/java/org/apache/commons/math/stat/descriptive/DescriptiveStatistics.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/DescriptiveStatistics.java index 3ad41d9cb..9792caeff 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/DescriptiveStatistics.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/DescriptiveStatistics.java @@ -14,29 +14,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; import java.io.Serializable; import java.lang.reflect.InvocationTargetException; import java.util.Arrays; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.stat.descriptive.moment.GeometricMean; -import org.apache.commons.math.stat.descriptive.moment.Kurtosis; -import org.apache.commons.math.stat.descriptive.moment.Mean; -import org.apache.commons.math.stat.descriptive.moment.Skewness; -import org.apache.commons.math.stat.descriptive.moment.Variance; -import org.apache.commons.math.stat.descriptive.rank.Max; -import org.apache.commons.math.stat.descriptive.rank.Min; -import org.apache.commons.math.stat.descriptive.rank.Percentile; -import org.apache.commons.math.stat.descriptive.summary.Sum; -import org.apache.commons.math.stat.descriptive.summary.SumOfSquares; -import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.util.ResizableDoubleArray; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.stat.descriptive.moment.GeometricMean; +import org.apache.commons.math3.stat.descriptive.moment.Kurtosis; +import org.apache.commons.math3.stat.descriptive.moment.Mean; +import org.apache.commons.math3.stat.descriptive.moment.Skewness; +import org.apache.commons.math3.stat.descriptive.moment.Variance; +import org.apache.commons.math3.stat.descriptive.rank.Max; +import org.apache.commons.math3.stat.descriptive.rank.Min; +import org.apache.commons.math3.stat.descriptive.rank.Percentile; +import org.apache.commons.math3.stat.descriptive.summary.Sum; +import org.apache.commons.math3.stat.descriptive.summary.SumOfSquares; +import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math3.util.ResizableDoubleArray; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatistics.java similarity index 95% rename from src/main/java/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatistics.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatistics.java index 8df5c375f..1987f9868 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatistics.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatistics.java @@ -14,27 +14,27 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; import java.io.Serializable; import java.util.Arrays; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.stat.descriptive.moment.GeometricMean; -import org.apache.commons.math.stat.descriptive.moment.Mean; -import org.apache.commons.math.stat.descriptive.moment.VectorialCovariance; -import org.apache.commons.math.stat.descriptive.rank.Max; -import org.apache.commons.math.stat.descriptive.rank.Min; -import org.apache.commons.math.stat.descriptive.summary.Sum; -import org.apache.commons.math.stat.descriptive.summary.SumOfLogs; -import org.apache.commons.math.stat.descriptive.summary.SumOfSquares; -import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.util.MathArrays; -import org.apache.commons.math.util.Precision; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.stat.descriptive.moment.GeometricMean; +import org.apache.commons.math3.stat.descriptive.moment.Mean; +import org.apache.commons.math3.stat.descriptive.moment.VectorialCovariance; +import org.apache.commons.math3.stat.descriptive.rank.Max; +import org.apache.commons.math3.stat.descriptive.rank.Min; +import org.apache.commons.math3.stat.descriptive.summary.Sum; +import org.apache.commons.math3.stat.descriptive.summary.SumOfLogs; +import org.apache.commons.math3.stat.descriptive.summary.SumOfSquares; +import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math3.util.Precision; +import org.apache.commons.math3.util.FastMath; /** *Computes summary statistics for a stream of n-tuples added using the diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/StatisticalMultivariateSummary.java b/src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalMultivariateSummary.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/descriptive/StatisticalMultivariateSummary.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalMultivariateSummary.java index 1e6622622..b08a83da1 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/StatisticalMultivariateSummary.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalMultivariateSummary.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; -import org.apache.commons.math.linear.RealMatrix; +import org.apache.commons.math3.linear.RealMatrix; /** * Reporting interface for basic multivariate statistics. diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/StatisticalSummary.java b/src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalSummary.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/descriptive/StatisticalSummary.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalSummary.java index 4f1537495..7eb1c76ad 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/StatisticalSummary.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalSummary.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; /** * Reporting interface for basic univariate statistics. diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/StatisticalSummaryValues.java b/src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalSummaryValues.java similarity index 96% rename from src/main/java/org/apache/commons/math/stat/descriptive/StatisticalSummaryValues.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalSummaryValues.java index 661ab2528..c13be9f75 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/StatisticalSummaryValues.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/StatisticalSummaryValues.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; import java.io.Serializable; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.util.Precision; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math3.util.Precision; /** * Value object representing the results of a univariate statistical summary. diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatistic.java b/src/main/java/org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatistic.java similarity index 98% rename from src/main/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatistic.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatistic.java index 69100d1dd..e93b5d390 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatistic.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatistic.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; /** * Extends the definition of {@link UnivariateStatistic} with diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java similarity index 96% rename from src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java rename to src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java index da987cd3c..3d9513a18 100644 --- a/src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java @@ -14,25 +14,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.descriptive; +package org.apache.commons.math3.stat.descriptive; import java.io.Serializable; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.stat.descriptive.moment.GeometricMean; -import org.apache.commons.math.stat.descriptive.moment.Mean; -import org.apache.commons.math.stat.descriptive.moment.SecondMoment; -import org.apache.commons.math.stat.descriptive.moment.Variance; -import org.apache.commons.math.stat.descriptive.rank.Max; -import org.apache.commons.math.stat.descriptive.rank.Min; -import org.apache.commons.math.stat.descriptive.summary.Sum; -import org.apache.commons.math.stat.descriptive.summary.SumOfLogs; -import org.apache.commons.math.stat.descriptive.summary.SumOfSquares; -import org.apache.commons.math.util.MathUtils; -import org.apache.commons.math.util.Precision; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.stat.descriptive.moment.GeometricMean; +import org.apache.commons.math3.stat.descriptive.moment.Mean; +import org.apache.commons.math3.stat.descriptive.moment.SecondMoment; +import org.apache.commons.math3.stat.descriptive.moment.Variance; +import org.apache.commons.math3.stat.descriptive.rank.Max; +import org.apache.commons.math3.stat.descriptive.rank.Min; +import org.apache.commons.math3.stat.descriptive.summary.Sum; +import org.apache.commons.math3.stat.descriptive.summary.SumOfLogs; +import org.apache.commons.math3.stat.descriptive.summary.SumOfSquares; +import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math3.util.Precision; +import org.apache.commons.math3.util.FastMath; /** *
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedDescriptiveStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedDescriptiveStatistics.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedDescriptiveStatistics.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedDescriptiveStatistics.java
index 0dc015e78..392ab0b5b 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedDescriptiveStatistics.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedDescriptiveStatistics.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive;
+package org.apache.commons.math3.stat.descriptive;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.util.MathUtils;
/**
* Implementation of
- * {@link org.apache.commons.math.stat.descriptive.DescriptiveStatistics} that
+ * {@link org.apache.commons.math3.stat.descriptive.DescriptiveStatistics} that
* is safe to use in a multithreaded environment. Multiple threads can safely
* operate on a single instance without causing runtime exceptions due to race
* conditions. In effect, this implementation makes modification and access
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedMultivariateSummaryStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedMultivariateSummaryStatistics.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedMultivariateSummaryStatistics.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedMultivariateSummaryStatistics.java
index b5a0ad013..1ed3eab84 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedMultivariateSummaryStatistics.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedMultivariateSummaryStatistics.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive;
+package org.apache.commons.math3.stat.descriptive;
-import org.apache.commons.math.linear.RealMatrix;
+import org.apache.commons.math3.linear.RealMatrix;
/**
* Implementation of
- * {@link org.apache.commons.math.stat.descriptive.MultivariateSummaryStatistics} that
+ * {@link org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics} that
* is safe to use in a multithreaded environment. Multiple threads can safely
* operate on a single instance without causing runtime exceptions due to race
* conditions. In effect, this implementation makes modification and access
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedSummaryStatistics.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedSummaryStatistics.java
index d131db1c6..2e3f3c8d6 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/SynchronizedSummaryStatistics.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive;
+package org.apache.commons.math3.stat.descriptive;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.util.MathUtils;
/**
* Implementation of
- * {@link org.apache.commons.math.stat.descriptive.SummaryStatistics} that
+ * {@link org.apache.commons.math3.stat.descriptive.SummaryStatistics} that
* is safe to use in a multithreaded environment. Multiple threads can safely
* operate on a single instance without causing runtime exceptions due to race
* conditions. In effect, this implementation makes modification and access
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/UnivariateStatistic.java b/src/main/java/org/apache/commons/math3/stat/descriptive/UnivariateStatistic.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/stat/descriptive/UnivariateStatistic.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/UnivariateStatistic.java
index 0735059c6..19aea9eff 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/UnivariateStatistic.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/UnivariateStatistic.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive;
+package org.apache.commons.math3.stat.descriptive;
/**
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/WeightedEvaluation.java b/src/main/java/org/apache/commons/math3/stat/descriptive/WeightedEvaluation.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/stat/descriptive/WeightedEvaluation.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/WeightedEvaluation.java
index 8b501db55..e6fdbd1e3 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/WeightedEvaluation.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/WeightedEvaluation.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive;
+package org.apache.commons.math3.stat.descriptive;
/**
* Weighted evaluation for statistics.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/FirstMoment.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java
similarity index 94%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/FirstMoment.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java
index b7a280314..16f9c8a60 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/FirstMoment.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.MathUtils;
/**
* Computes the first moment (arithmetic mean). Uses the definitional formula:
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/FourthMoment.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FourthMoment.java
similarity index 96%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/FourthMoment.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/FourthMoment.java
index 773d30fa5..596da1fd5 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/FourthMoment.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FourthMoment.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.util.MathUtils;
/**
* Computes a statistic related to the Fourth Central Moment. Specifically,
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/GeometricMean.java
similarity index 91%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/GeometricMean.java
index 2aaadc969..924f640b8 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/GeometricMean.java
@@ -14,18 +14,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.MathIllegalStateException;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.util.LocalizedFormats;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.stat.descriptive.StorelessUnivariateStatistic;
-import org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.MathIllegalStateException;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.util.LocalizedFormats;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic;
+import org.apache.commons.math3.stat.descriptive.summary.SumOfLogs;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathUtils;
/**
* Returns the
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/Kurtosis.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Kurtosis.java
similarity index 93%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/Kurtosis.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/Kurtosis.java
index 7ce0fcbf4..6b15b2328 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/Kurtosis.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Kurtosis.java
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.MathIllegalStateException;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.util.LocalizedFormats;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.MathIllegalStateException;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.util.LocalizedFormats;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathUtils;
/**
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/Mean.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Mean.java
similarity index 96%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/Mean.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/Mean.java
index b1b67fd1e..a531ec056 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/Mean.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Mean.java
@@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.stat.descriptive.WeightedEvaluation;
-import org.apache.commons.math.stat.descriptive.summary.Sum;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.stat.descriptive.WeightedEvaluation;
+import org.apache.commons.math3.stat.descriptive.summary.Sum;
+import org.apache.commons.math3.util.MathUtils;
/**
* Computes the arithmetic mean of a set of values. Uses the definitional
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/SecondMoment.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SecondMoment.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/SecondMoment.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/SecondMoment.java
index 53cdf3319..5fedb6279 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/SecondMoment.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SecondMoment.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.util.MathUtils;
/**
* Computes a statistic related to the Second Central Moment. Specifically,
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/SemiVariance.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SemiVariance.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/SemiVariance.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/SemiVariance.java
index 707a97675..01b2ef9da 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/SemiVariance.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/SemiVariance.java
@@ -15,13 +15,13 @@
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.util.LocalizedFormats;
-import org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.util.LocalizedFormats;
+import org.apache.commons.math3.stat.descriptive.AbstractUnivariateStatistic;
+import org.apache.commons.math3.util.MathUtils;
/**
* Computes the semivariance of a set of values with respect to a given cutoff value.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/Skewness.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Skewness.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/Skewness.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/Skewness.java
index a33cbbb2c..7f65e1553 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/Skewness.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Skewness.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathUtils;
/**
* Computes the skewness of the available values.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/StandardDeviation.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/StandardDeviation.java
similarity index 96%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/StandardDeviation.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/StandardDeviation.java
index 10a23ed1b..2e1b630ea 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/StandardDeviation.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/StandardDeviation.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathUtils;
/**
* Computes the sample standard deviation. The standard deviation
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/ThirdMoment.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/ThirdMoment.java
similarity index 96%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/ThirdMoment.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/ThirdMoment.java
index cdff758e1..2b2f49bbc 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/ThirdMoment.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/ThirdMoment.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.util.MathUtils;
/**
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/Variance.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Variance.java
similarity index 98%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/Variance.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/Variance.java
index 1de139f3e..1b74f57ea 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/Variance.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/Variance.java
@@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.util.LocalizedFormats;
-import org.apache.commons.math.stat.descriptive.WeightedEvaluation;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.util.LocalizedFormats;
+import org.apache.commons.math3.stat.descriptive.WeightedEvaluation;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.MathUtils;
/**
* Computes the variance of the available values. By default, the unbiased
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/VectorialCovariance.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/VectorialCovariance.java
index 8c026b8a8..90729a8d4 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/VectorialCovariance.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
import java.util.Arrays;
-import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.linear.MatrixUtils;
-import org.apache.commons.math.linear.RealMatrix;
+import org.apache.commons.math3.exception.DimensionMismatchException;
+import org.apache.commons.math3.linear.MatrixUtils;
+import org.apache.commons.math3.linear.RealMatrix;
/**
* Returns the covariance matrix of the available vectors.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialMean.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/VectorialMean.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialMean.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/VectorialMean.java
index 05b7afb66..b3dadb477 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialMean.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/VectorialMean.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
import java.io.Serializable;
import java.util.Arrays;
-import org.apache.commons.math.exception.DimensionMismatchException;
+import org.apache.commons.math3.exception.DimensionMismatchException;
/**
* Returns the arithmetic mean of the available vectors.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/moment/package-info.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/package-info.java
similarity index 93%
rename from src/main/java/org/apache/commons/math/stat/descriptive/moment/package-info.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/moment/package-info.java
index bc0d011c8..e23ead74d 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/moment/package-info.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/package-info.java
@@ -17,4 +17,4 @@
/**
* Summary statistics based on moments.
*/
-package org.apache.commons.math.stat.descriptive.moment;
+package org.apache.commons.math3.stat.descriptive.moment;
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/package-info.java b/src/main/java/org/apache/commons/math3/stat/descriptive/package-info.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/stat/descriptive/package-info.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/package-info.java
index cd97beda6..92fa5b312 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/package-info.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/package-info.java
@@ -41,4 +41,4 @@
*
*
*/
-package org.apache.commons.math.stat.descriptive;
+package org.apache.commons.math3.stat.descriptive;
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/rank/Max.java b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Max.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/stat/descriptive/rank/Max.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/rank/Max.java
index c59ed540c..92181c45b 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/rank/Max.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Max.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.rank;
+package org.apache.commons.math3.stat.descriptive.rank;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.MathUtils;
/**
* Returns the maximum of the available values.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/rank/Median.java b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Median.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/stat/descriptive/rank/Median.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/rank/Median.java
index 642999c1a..2c88ea080 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/rank/Median.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Median.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.rank;
+package org.apache.commons.math3.stat.descriptive.rank;
import java.io.Serializable;
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/rank/Min.java b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Min.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/stat/descriptive/rank/Min.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/rank/Min.java
index 6f5c82d28..1c3cd72d7 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/rank/Min.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Min.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.rank;
+package org.apache.commons.math3.stat.descriptive.rank;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.MathUtils;
/**
* Returns the minimum of the available values.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/rank/Percentile.java b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Percentile.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/stat/descriptive/rank/Percentile.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/rank/Percentile.java
index 97d272d85..7220cb4d3 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/rank/Percentile.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Percentile.java
@@ -14,17 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.rank;
+package org.apache.commons.math3.stat.descriptive.rank;
import java.io.Serializable;
import java.util.Arrays;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.OutOfRangeException;
-import org.apache.commons.math.exception.util.LocalizedFormats;
-import org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.exception.OutOfRangeException;
+import org.apache.commons.math3.exception.util.LocalizedFormats;
+import org.apache.commons.math3.stat.descriptive.AbstractUnivariateStatistic;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathUtils;
/**
* Provides percentile computation.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/rank/package-info.java b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/package-info.java
similarity index 93%
rename from src/main/java/org/apache/commons/math/stat/descriptive/rank/package-info.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/rank/package-info.java
index 7f26d608f..da37b37c0 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/rank/package-info.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/package-info.java
@@ -17,4 +17,4 @@
/**
* Summary statistics based on ranks.
*/
-package org.apache.commons.math.stat.descriptive.rank;
+package org.apache.commons.math3.stat.descriptive.rank;
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/summary/Product.java b/src/main/java/org/apache/commons/math3/stat/descriptive/summary/Product.java
similarity index 95%
rename from src/main/java/org/apache/commons/math/stat/descriptive/summary/Product.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/summary/Product.java
index bc656d3c4..8d4a6e947 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/summary/Product.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/summary/Product.java
@@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.summary;
+package org.apache.commons.math3.stat.descriptive.summary;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.stat.descriptive.WeightedEvaluation;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.stat.descriptive.WeightedEvaluation;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathUtils;
/**
* Returns the product of the available values.
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/summary/Sum.java b/src/main/java/org/apache/commons/math3/stat/descriptive/summary/Sum.java
similarity index 96%
rename from src/main/java/org/apache/commons/math/stat/descriptive/summary/Sum.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/summary/Sum.java
index f865f8d82..8ec91e647 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/summary/Sum.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/summary/Sum.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.summary;
+package org.apache.commons.math3.stat.descriptive.summary;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.MathUtils;
/**
diff --git a/src/main/java/org/apache/commons/math/stat/descriptive/summary/SumOfLogs.java b/src/main/java/org/apache/commons/math3/stat/descriptive/summary/SumOfLogs.java
similarity index 92%
rename from src/main/java/org/apache/commons/math/stat/descriptive/summary/SumOfLogs.java
rename to src/main/java/org/apache/commons/math3/stat/descriptive/summary/SumOfLogs.java
index 8166d289d..b8c3280ba 100644
--- a/src/main/java/org/apache/commons/math/stat/descriptive/summary/SumOfLogs.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/summary/SumOfLogs.java
@@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.descriptive.summary;
+package org.apache.commons.math3.stat.descriptive.summary;
import java.io.Serializable;
-import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathUtils;
+import org.apache.commons.math3.exception.NullArgumentException;
+import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathUtils;
/**
* Returns the sum of the natural logs for this collection of values.
*
- * Uses {@link org.apache.commons.math.util.FastMath#log(double)} to compute the logs.
+ * Uses {@link org.apache.commons.math3.util.FastMath#log(double)} to compute the logs.
* Therefore,
* Tests for differences between two or more categories of univariate data
* (for example, the body mass index of accountants, lawyers, doctors and
* computer programmers). When two categories are given, this is equivalent to
- * the {@link org.apache.commons.math.stat.inference.TTest}.
+ * the {@link org.apache.commons.math3.stat.inference.TTest}.
*
- * Uses the {@link org.apache.commons.math.distribution.FDistribution
+ * Uses the {@link org.apache.commons.math3.distribution.FDistribution
* commons-math F Distribution implementation} to estimate exact p-values. This implementation is based on a description at
* http://faculty.vassar.edu/lowry/ch13pt1.html
*
NaN.
categoryData
collection and each of these arrays must
* contain at least two values.
* This implementation uses the - * {@link org.apache.commons.math.distribution.FDistribution + * {@link org.apache.commons.math3.distribution.FDistribution * commons-math F Distribution implementation} to estimate the exact * p-value, using the formula
* p = 1 - cumulativeProbability(F)@@ -143,7 +143,7 @@ public class OneWayAnova { *
* This implementation uses the - * {@link org.apache.commons.math.distribution.FDistribution + * {@link org.apache.commons.math3.distribution.FDistribution * commons-math F Distribution implementation} to estimate the exact * p-value, using the formula
* p = 1 - cumulativeProbability(F)diff --git a/src/main/java/org/apache/commons/math/stat/inference/TTest.java b/src/main/java/org/apache/commons/math3/stat/inference/TTest.java similarity index 98% rename from src/main/java/org/apache/commons/math/stat/inference/TTest.java rename to src/main/java/org/apache/commons/math3/stat/inference/TTest.java index 4d611fe39..c55ce03d3 100644 --- a/src/main/java/org/apache/commons/math/stat/inference/TTest.java +++ b/src/main/java/org/apache/commons/math3/stat/inference/TTest.java @@ -14,19 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.inference; +package org.apache.commons.math3.stat.inference; -import org.apache.commons.math.distribution.TDistribution; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.exception.NoDataException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.stat.StatUtils; -import org.apache.commons.math.stat.descriptive.StatisticalSummary; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.distribution.TDistribution; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.NoDataException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.stat.StatUtils; +import org.apache.commons.math3.stat.descriptive.StatisticalSummary; +import org.apache.commons.math3.util.FastMath; /** * An implementation for Student's t-tests. @@ -49,7 +49,7 @@ import org.apache.commons.math.util.FastMath; *
* Input to tests can be either double[]
arrays or
* {@link StatisticalSummary} instances.
- * Uses commons-math {@link org.apache.commons.math.distribution.TDistribution} + * Uses commons-math {@link org.apache.commons.math3.distribution.TDistribution} * implementation to estimate exact p-values.
* * @version $Id$ diff --git a/src/main/java/org/apache/commons/math/stat/inference/TestUtils.java b/src/main/java/org/apache/commons/math3/stat/inference/TestUtils.java similarity index 71% rename from src/main/java/org/apache/commons/math/stat/inference/TestUtils.java rename to src/main/java/org/apache/commons/math3/stat/inference/TestUtils.java index c92f1d28b..239da7e8a 100644 --- a/src/main/java/org/apache/commons/math/stat/inference/TestUtils.java +++ b/src/main/java/org/apache/commons/math3/stat/inference/TestUtils.java @@ -14,20 +14,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.inference; +package org.apache.commons.math3.stat.inference; import java.util.Collection; -import org.apache.commons.math.exception.ConvergenceException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.exception.NoDataException; -import org.apache.commons.math.exception.NotPositiveException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.ZeroException; -import org.apache.commons.math.stat.descriptive.StatisticalSummary; +import org.apache.commons.math3.exception.ConvergenceException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.NoDataException; +import org.apache.commons.math3.exception.NotPositiveException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.ZeroException; +import org.apache.commons.math3.stat.descriptive.StatisticalSummary; /** * A collection of static methods to create inference test instances or to @@ -57,7 +57,7 @@ public class TestUtils { // CHECKSTYLE: stop JavadocMethodCheck /** - * @see org.apache.commons.math.stat.inference.TTest#homoscedasticT(double[], double[]) + * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticT(double[], double[]) */ public static double homoscedasticT(final double[] sample1, final double[] sample2) throws NullArgumentException, NumberIsTooSmallException { @@ -65,7 +65,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#homoscedasticT(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticT(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary) */ public static double homoscedasticT(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2) @@ -74,7 +74,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#homoscedasticTTest(double[], double[], double) + * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticTTest(double[], double[], double) */ public static boolean homoscedasticTTest(final double[] sample1, final double[] sample2, final double alpha) @@ -84,7 +84,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#homoscedasticTTest(double[], double[]) + * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticTTest(double[], double[]) */ public static double homoscedasticTTest(final double[] sample1, final double[] sample2) throws NullArgumentException, NumberIsTooSmallException, MaxCountExceededException { @@ -92,7 +92,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#homoscedasticTTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticTTest(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary) */ public static double homoscedasticTTest(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2) @@ -101,7 +101,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#pairedT(double[], double[]) + * @see org.apache.commons.math3.stat.inference.TTest#pairedT(double[], double[]) */ public static double pairedT(final double[] sample1, final double[] sample2) throws NullArgumentException, NoDataException, @@ -110,7 +110,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#pairedTTest(double[], double[], double) + * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[], double) */ public static boolean pairedTTest(final double[] sample1, final double[] sample2, final double alpha) @@ -120,7 +120,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#pairedTTest(double[], double[]) + * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[]) */ public static double pairedTTest(final double[] sample1, final double[] sample2) throws NullArgumentException, NoDataException, DimensionMismatchException, @@ -129,7 +129,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#t(double, double[]) + * @see org.apache.commons.math3.stat.inference.TTest#t(double, double[]) */ public static double t(final double mu, final double[] observed) throws NullArgumentException, NumberIsTooSmallException { @@ -137,7 +137,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#t(double, org.apache.commons.math.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math3.stat.inference.TTest#t(double, org.apache.commons.math3.stat.descriptive.StatisticalSummary) */ public static double t(final double mu, final StatisticalSummary sampleStats) throws NullArgumentException, NumberIsTooSmallException { @@ -145,7 +145,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#t(double[], double[]) + * @see org.apache.commons.math3.stat.inference.TTest#t(double[], double[]) */ public static double t(final double[] sample1, final double[] sample2) throws NullArgumentException, NumberIsTooSmallException { @@ -153,7 +153,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#t(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math3.stat.inference.TTest#t(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary) */ public static double t(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2) @@ -162,7 +162,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#tTest(double, double[], double) + * @see org.apache.commons.math3.stat.inference.TTest#tTest(double, double[], double) */ public static boolean tTest(final double mu, final double[] sample, final double alpha) throws NullArgumentException, NumberIsTooSmallException, @@ -171,7 +171,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#tTest(double, double[]) + * @see org.apache.commons.math3.stat.inference.TTest#tTest(double, double[]) */ public static double tTest(final double mu, final double[] sample) throws NullArgumentException, NumberIsTooSmallException, @@ -180,7 +180,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#tTest(double, org.apache.commons.math.stat.descriptive.StatisticalSummary, double) + * @see org.apache.commons.math3.stat.inference.TTest#tTest(double, org.apache.commons.math3.stat.descriptive.StatisticalSummary, double) */ public static boolean tTest(final double mu, final StatisticalSummary sampleStats, final double alpha) @@ -190,7 +190,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#tTest(double, org.apache.commons.math.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math3.stat.inference.TTest#tTest(double, org.apache.commons.math3.stat.descriptive.StatisticalSummary) */ public static double tTest(final double mu, final StatisticalSummary sampleStats) throws NullArgumentException, NumberIsTooSmallException, @@ -199,7 +199,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#tTest(double[], double[], double) + * @see org.apache.commons.math3.stat.inference.TTest#tTest(double[], double[], double) */ public static boolean tTest(final double[] sample1, final double[] sample2, final double alpha) @@ -209,7 +209,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#tTest(double[], double[]) + * @see org.apache.commons.math3.stat.inference.TTest#tTest(double[], double[]) */ public static double tTest(final double[] sample1, final double[] sample2) throws NullArgumentException, NumberIsTooSmallException, @@ -218,7 +218,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary, double) + * @see org.apache.commons.math3.stat.inference.TTest#tTest(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary, double) */ public static boolean tTest(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2, @@ -229,7 +229,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.TTest#tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math3.stat.inference.TTest#tTest(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary) */ public static double tTest(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2) @@ -239,7 +239,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.ChiSquareTest#chiSquare(double[], long[]) + * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquare(double[], long[]) */ public static double chiSquare(final double[] expected, final long[] observed) throws NotPositiveException, NotStrictlyPositiveException, @@ -248,7 +248,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.ChiSquareTest#chiSquare(long[][]) + * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquare(long[][]) */ public static double chiSquare(final long[][] counts) throws NullArgumentException, NotPositiveException, @@ -257,7 +257,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.ChiSquareTest#chiSquareTest(double[], long[], double) + * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTest(double[], long[], double) */ public static boolean chiSquareTest(final double[] expected, final long[] observed, final double alpha) @@ -267,7 +267,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.ChiSquareTest#chiSquareTest(double[], long[]) + * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTest(double[], long[]) */ public static double chiSquareTest(final double[] expected, final long[] observed) throws NotPositiveException, NotStrictlyPositiveException, @@ -276,7 +276,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.ChiSquareTest#chiSquareTest(long[][], double) + * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTest(long[][], double) */ public static boolean chiSquareTest(final long[][] counts, final double alpha) throws NullArgumentException, DimensionMismatchException, @@ -285,7 +285,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.ChiSquareTest#chiSquareTest(long[][]) + * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTest(long[][]) */ public static double chiSquareTest(final long[][] counts) throws NullArgumentException, DimensionMismatchException, @@ -294,7 +294,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.UnknownDistributionChiSquareTest#chiSquareDataSetsComparison(long[], long[]) + * @see org.apache.commons.math3.stat.inference.UnknownDistributionChiSquareTest#chiSquareDataSetsComparison(long[], long[]) * * @since 1.2 */ @@ -305,7 +305,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.UnknownDistributionChiSquareTest#chiSquareTestDataSetsComparison(long[], long[]) + * @see org.apache.commons.math3.stat.inference.UnknownDistributionChiSquareTest#chiSquareTestDataSetsComparison(long[], long[]) * * @since 1.2 */ @@ -317,7 +317,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.UnknownDistributionChiSquareTest#chiSquareTestDataSetsComparison(long[], long[], double) + * @see org.apache.commons.math3.stat.inference.UnknownDistributionChiSquareTest#chiSquareTestDataSetsComparison(long[], long[], double) * * @since 1.2 */ @@ -330,7 +330,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.OneWayAnova#anovaFValue(Collection) + * @see org.apache.commons.math3.stat.inference.OneWayAnova#anovaFValue(Collection) * * @since 1.2 */ @@ -340,7 +340,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.OneWayAnova#anovaPValue(Collection) + * @see org.apache.commons.math3.stat.inference.OneWayAnova#anovaPValue(Collection) * * @since 1.2 */ @@ -351,7 +351,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math.stat.inference.OneWayAnova#anovaTest(Collection,double) + * @see org.apache.commons.math3.stat.inference.OneWayAnova#anovaTest(Collection,double) * * @since 1.2 */ diff --git a/src/main/java/org/apache/commons/math/stat/inference/WilcoxonSignedRankTest.java b/src/main/java/org/apache/commons/math3/stat/inference/WilcoxonSignedRankTest.java similarity index 93% rename from src/main/java/org/apache/commons/math/stat/inference/WilcoxonSignedRankTest.java rename to src/main/java/org/apache/commons/math3/stat/inference/WilcoxonSignedRankTest.java index 3fcd35951..a482fbb56 100644 --- a/src/main/java/org/apache/commons/math/stat/inference/WilcoxonSignedRankTest.java +++ b/src/main/java/org/apache/commons/math3/stat/inference/WilcoxonSignedRankTest.java @@ -14,19 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.inference; +package org.apache.commons.math3.stat.inference; -import org.apache.commons.math.distribution.NormalDistribution; -import org.apache.commons.math.exception.ConvergenceException; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.exception.NoDataException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.stat.ranking.NaNStrategy; -import org.apache.commons.math.stat.ranking.NaturalRanking; -import org.apache.commons.math.stat.ranking.TiesStrategy; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.distribution.NormalDistribution; +import org.apache.commons.math3.exception.ConvergenceException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.NoDataException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.stat.ranking.NaNStrategy; +import org.apache.commons.math3.stat.ranking.NaturalRanking; +import org.apache.commons.math3.stat.ranking.TiesStrategy; +import org.apache.commons.math3.util.FastMath; /** * An implementation of the Wilcoxon signed-rank test. diff --git a/src/main/java/org/apache/commons/math/stat/inference/package-info.java b/src/main/java/org/apache/commons/math3/stat/inference/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/stat/inference/package-info.java rename to src/main/java/org/apache/commons/math3/stat/inference/package-info.java index d0dcaf03d..093d99461 100644 --- a/src/main/java/org/apache/commons/math/stat/inference/package-info.java +++ b/src/main/java/org/apache/commons/math3/stat/inference/package-info.java @@ -20,4 +20,4 @@ * construction. * */ -package org.apache.commons.math.stat.inference; +package org.apache.commons.math3.stat.inference; diff --git a/src/main/java/org/apache/commons/math/stat/package-info.java b/src/main/java/org/apache/commons/math3/stat/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/stat/package-info.java rename to src/main/java/org/apache/commons/math3/stat/package-info.java index 87caed558..0df94241a 100644 --- a/src/main/java/org/apache/commons/math/stat/package-info.java +++ b/src/main/java/org/apache/commons/math3/stat/package-info.java @@ -17,4 +17,4 @@ /** * Data storage, manipulation and summary routines. */ -package org.apache.commons.math.stat; +package org.apache.commons.math3.stat; diff --git a/src/main/java/org/apache/commons/math/stat/ranking/NaNStrategy.java b/src/main/java/org/apache/commons/math3/stat/ranking/NaNStrategy.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/ranking/NaNStrategy.java rename to src/main/java/org/apache/commons/math3/stat/ranking/NaNStrategy.java index 16bddfc98..620209635 100644 --- a/src/main/java/org/apache/commons/math/stat/ranking/NaNStrategy.java +++ b/src/main/java/org/apache/commons/math3/stat/ranking/NaNStrategy.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.stat.ranking; +package org.apache.commons.math3.stat.ranking; /** * Strategies for handling NaN values in rank transformations. diff --git a/src/main/java/org/apache/commons/math/stat/ranking/NaturalRanking.java b/src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java similarity index 98% rename from src/main/java/org/apache/commons/math/stat/ranking/NaturalRanking.java rename to src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java index ba62840e9..9018886c9 100644 --- a/src/main/java/org/apache/commons/math/stat/ranking/NaturalRanking.java +++ b/src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java @@ -15,18 +15,18 @@ * limitations under the License. */ -package org.apache.commons.math.stat.ranking; +package org.apache.commons.math3.stat.ranking; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; -import org.apache.commons.math.exception.MathInternalError; -import org.apache.commons.math.random.RandomData; -import org.apache.commons.math.random.RandomDataImpl; -import org.apache.commons.math.random.RandomGenerator; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathInternalError; +import org.apache.commons.math3.random.RandomData; +import org.apache.commons.math3.random.RandomDataImpl; +import org.apache.commons.math3.random.RandomGenerator; +import org.apache.commons.math3.util.FastMath; /** diff --git a/src/main/java/org/apache/commons/math/stat/ranking/RankingAlgorithm.java b/src/main/java/org/apache/commons/math3/stat/ranking/RankingAlgorithm.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/ranking/RankingAlgorithm.java rename to src/main/java/org/apache/commons/math3/stat/ranking/RankingAlgorithm.java index cacf9857d..3ef52d194 100644 --- a/src/main/java/org/apache/commons/math/stat/ranking/RankingAlgorithm.java +++ b/src/main/java/org/apache/commons/math3/stat/ranking/RankingAlgorithm.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.stat.ranking; +package org.apache.commons.math3.stat.ranking; /** * Interface representing a rank transformation. diff --git a/src/main/java/org/apache/commons/math/stat/ranking/TiesStrategy.java b/src/main/java/org/apache/commons/math3/stat/ranking/TiesStrategy.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/ranking/TiesStrategy.java rename to src/main/java/org/apache/commons/math3/stat/ranking/TiesStrategy.java index 7fe74d677..5c2af2711 100644 --- a/src/main/java/org/apache/commons/math/stat/ranking/TiesStrategy.java +++ b/src/main/java/org/apache/commons/math3/stat/ranking/TiesStrategy.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.stat.ranking; +package org.apache.commons.math3.stat.ranking; /** * Strategies for handling tied values in rank transformations. diff --git a/src/main/java/org/apache/commons/math/stat/ranking/package-info.java b/src/main/java/org/apache/commons/math3/stat/ranking/package-info.java similarity index 94% rename from src/main/java/org/apache/commons/math/stat/ranking/package-info.java rename to src/main/java/org/apache/commons/math3/stat/ranking/package-info.java index 0c0d073d0..b86575b46 100644 --- a/src/main/java/org/apache/commons/math/stat/ranking/package-info.java +++ b/src/main/java/org/apache/commons/math3/stat/ranking/package-info.java @@ -19,4 +19,4 @@ * Classes providing rank transformations. * */ -package org.apache.commons.math.stat.ranking; +package org.apache.commons.math3.stat.ranking; diff --git a/src/main/java/org/apache/commons/math/stat/regression/AbstractMultipleLinearRegression.java b/src/main/java/org/apache/commons/math3/stat/regression/AbstractMultipleLinearRegression.java similarity index 93% rename from src/main/java/org/apache/commons/math/stat/regression/AbstractMultipleLinearRegression.java rename to src/main/java/org/apache/commons/math3/stat/regression/AbstractMultipleLinearRegression.java index 6e4ede60a..26ac67a03 100644 --- a/src/main/java/org/apache/commons/math/stat/regression/AbstractMultipleLinearRegression.java +++ b/src/main/java/org/apache/commons/math3/stat/regression/AbstractMultipleLinearRegression.java @@ -14,21 +14,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.regression; +package org.apache.commons.math3.stat.regression; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.NoDataException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.NumberIsTooSmallException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.linear.NonSquareMatrixException; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.RealVector; -import org.apache.commons.math.linear.ArrayRealVector; -import org.apache.commons.math.stat.descriptive.moment.Variance; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.NoDataException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.linear.NonSquareMatrixException; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.RealVector; +import org.apache.commons.math3.linear.ArrayRealVector; +import org.apache.commons.math3.stat.descriptive.moment.Variance; +import org.apache.commons.math3.util.FastMath; /** * Abstract base class for implementations of MultipleLinearRegression. diff --git a/src/main/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java b/src/main/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegression.java similarity index 93% rename from src/main/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java rename to src/main/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegression.java index 912e8107a..a3a370cfe 100644 --- a/src/main/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java +++ b/src/main/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegression.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.regression; +package org.apache.commons.math3.stat.regression; -import org.apache.commons.math.linear.LUDecomposition; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.RealVector; +import org.apache.commons.math3.linear.LUDecomposition; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.RealVector; /** * The GLS implementation of the multiple linear regression. diff --git a/src/main/java/org/apache/commons/math/stat/regression/MillerUpdatingRegression.java b/src/main/java/org/apache/commons/math3/stat/regression/MillerUpdatingRegression.java similarity index 99% rename from src/main/java/org/apache/commons/math/stat/regression/MillerUpdatingRegression.java rename to src/main/java/org/apache/commons/math3/stat/regression/MillerUpdatingRegression.java index f9aca4675..73a0f95f8 100644 --- a/src/main/java/org/apache/commons/math/stat/regression/MillerUpdatingRegression.java +++ b/src/main/java/org/apache/commons/math3/stat/regression/MillerUpdatingRegression.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.regression; +package org.apache.commons.math3.stat.regression; import java.util.Arrays; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.Precision; -import org.apache.commons.math.util.MathArrays; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.Precision; +import org.apache.commons.math3.util.MathArrays; /** *This class is a concrete implementation of the {@link UpdatingMultipleLinearRegression} interface.
diff --git a/src/main/java/org/apache/commons/math/stat/regression/ModelSpecificationException.java b/src/main/java/org/apache/commons/math3/stat/regression/ModelSpecificationException.java similarity index 88% rename from src/main/java/org/apache/commons/math/stat/regression/ModelSpecificationException.java rename to src/main/java/org/apache/commons/math3/stat/regression/ModelSpecificationException.java index d0cb931a1..535517f43 100644 --- a/src/main/java/org/apache/commons/math/stat/regression/ModelSpecificationException.java +++ b/src/main/java/org/apache/commons/math3/stat/regression/ModelSpecificationException.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.regression; +package org.apache.commons.math3.stat.regression; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.Localizable; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.Localizable; /** * Exception thrown when a regression model is not correctly specified. diff --git a/src/main/java/org/apache/commons/math/stat/regression/MultipleLinearRegression.java b/src/main/java/org/apache/commons/math3/stat/regression/MultipleLinearRegression.java similarity index 97% rename from src/main/java/org/apache/commons/math/stat/regression/MultipleLinearRegression.java rename to src/main/java/org/apache/commons/math3/stat/regression/MultipleLinearRegression.java index 4114bef30..f6f8070ac 100644 --- a/src/main/java/org/apache/commons/math/stat/regression/MultipleLinearRegression.java +++ b/src/main/java/org/apache/commons/math3/stat/regression/MultipleLinearRegression.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.regression; +package org.apache.commons.math3.stat.regression; /** * The multiple linear regression can be represented in matrix-notation. diff --git a/src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java b/src/main/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegression.java similarity index 95% rename from src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java rename to src/main/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegression.java index 15945b673..1b39cc30b 100644 --- a/src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java +++ b/src/main/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegression.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.stat.regression; +package org.apache.commons.math3.stat.regression; -import org.apache.commons.math.linear.Array2DRowRealMatrix; -import org.apache.commons.math.linear.LUDecomposition; -import org.apache.commons.math.linear.QRDecomposition; -import org.apache.commons.math.linear.RealMatrix; -import org.apache.commons.math.linear.RealVector; -import org.apache.commons.math.stat.StatUtils; -import org.apache.commons.math.stat.descriptive.moment.SecondMoment; +import org.apache.commons.math3.linear.Array2DRowRealMatrix; +import org.apache.commons.math3.linear.LUDecomposition; +import org.apache.commons.math3.linear.QRDecomposition; +import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math3.linear.RealVector; +import org.apache.commons.math3.stat.StatUtils; +import org.apache.commons.math3.stat.descriptive.moment.SecondMoment; /** *Implements ordinary least squares (OLS) to estimate the parameters of a
diff --git a/src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java b/src/main/java/org/apache/commons/math3/stat/regression/RegressionResults.java
similarity index 99%
rename from src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java
rename to src/main/java/org/apache/commons/math3/stat/regression/RegressionResults.java
index 494d226e6..1a09b203d 100644
--- a/src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java
+++ b/src/main/java/org/apache/commons/math3/stat/regression/RegressionResults.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.stat.regression;
+package org.apache.commons.math3.stat.regression;
import java.io.Serializable;
import java.util.Arrays;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.MathArrays;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.MathArrays;
/**
* Results of a Multiple Linear Regression model fit.
diff --git a/src/main/java/org/apache/commons/math/stat/regression/SimpleRegression.java b/src/main/java/org/apache/commons/math3/stat/regression/SimpleRegression.java
similarity index 98%
rename from src/main/java/org/apache/commons/math/stat/regression/SimpleRegression.java
rename to src/main/java/org/apache/commons/math3/stat/regression/SimpleRegression.java
index 963350cb5..a05af23a4 100644
--- a/src/main/java/org/apache/commons/math/stat/regression/SimpleRegression.java
+++ b/src/main/java/org/apache/commons/math3/stat/regression/SimpleRegression.java
@@ -15,16 +15,16 @@
* limitations under the License.
*/
-package org.apache.commons.math.stat.regression;
+package org.apache.commons.math3.stat.regression;
import java.io.Serializable;
-import org.apache.commons.math.exception.OutOfRangeException;
-import org.apache.commons.math.distribution.TDistribution;
-import org.apache.commons.math.exception.MathIllegalArgumentException;
-import org.apache.commons.math.exception.NoDataException;
-import org.apache.commons.math.exception.util.LocalizedFormats;
-import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.util.Precision;
+import org.apache.commons.math3.exception.OutOfRangeException;
+import org.apache.commons.math3.distribution.TDistribution;
+import org.apache.commons.math3.exception.MathIllegalArgumentException;
+import org.apache.commons.math3.exception.NoDataException;
+import org.apache.commons.math3.exception.util.LocalizedFormats;
+import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.Precision;
/**
* Estimates an ordinary least squares regression model
@@ -674,7 +674,7 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
* Double.NaN
.
@@ -115,9 +115,9 @@ public class FastCosineTransformer implements RealTransformer, Serializable { /** * {@inheritDoc} * - * @throws org.apache.commons.math.exception.NonMonotonicSequenceException + * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException * if the lower bound is greater than, or equal to the upper bound - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if the number of sample points is negative * @throws MathIllegalArgumentException if the number of sample points is * not a power of two plus one diff --git a/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java b/src/main/java/org/apache/commons/math3/transform/FastFourierTransformer.java similarity index 97% rename from src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java rename to src/main/java/org/apache/commons/math3/transform/FastFourierTransformer.java index d5ca8d54a..212a2d330 100644 --- a/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java +++ b/src/main/java/org/apache/commons/math3/transform/FastFourierTransformer.java @@ -14,21 +14,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.transform; +package org.apache.commons.math3.transform; import java.io.Serializable; import java.lang.reflect.Array; -import org.apache.commons.math.analysis.FunctionUtils; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.complex.Complex; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.ArithmeticUtils; -import org.apache.commons.math.util.FastMath; -import org.apache.commons.math.util.MathArrays; +import org.apache.commons.math3.analysis.FunctionUtils; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.complex.Complex; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.ArithmeticUtils; +import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math3.util.MathArrays; /** *
@@ -397,9 +397,9 @@ public class FastFourierTransformer implements Serializable { * @param n the number of sample points * @param type the type of transform (forward, inverse) to be performed * @return the complex transformed array - * @throws org.apache.commons.math.exception.NumberIsTooLargeException + * @throws org.apache.commons.math3.exception.NumberIsTooLargeException * if the lower bound is greater than, or equal to the upper bound - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if the number of sample points {@code n} is negative * @throws MathIllegalArgumentException if the number of sample points * {@code n} is not a power of two diff --git a/src/main/java/org/apache/commons/math/transform/FastHadamardTransformer.java b/src/main/java/org/apache/commons/math3/transform/FastHadamardTransformer.java similarity index 95% rename from src/main/java/org/apache/commons/math/transform/FastHadamardTransformer.java rename to src/main/java/org/apache/commons/math3/transform/FastHadamardTransformer.java index 09009b3b3..c4b775567 100644 --- a/src/main/java/org/apache/commons/math/transform/FastHadamardTransformer.java +++ b/src/main/java/org/apache/commons/math3/transform/FastHadamardTransformer.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.transform; +package org.apache.commons.math3.transform; import java.io.Serializable; -import org.apache.commons.math.analysis.FunctionUtils; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.ArithmeticUtils; +import org.apache.commons.math3.analysis.FunctionUtils; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.ArithmeticUtils; /** * Implements the Fast Hadamard Transform (FHT). @@ -56,9 +56,9 @@ public class FastHadamardTransformer implements RealTransformer, Serializable { /** * {@inheritDoc} * - * @throws org.apache.commons.math.exception.NonMonotonicSequenceException + * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException * if the lower bound is greater than, or equal to the upper bound - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if the number of sample points is negative * @throws MathIllegalArgumentException if the number of sample points is * not a power of two diff --git a/src/main/java/org/apache/commons/math/transform/FastSineTransformer.java b/src/main/java/org/apache/commons/math3/transform/FastSineTransformer.java similarity index 92% rename from src/main/java/org/apache/commons/math/transform/FastSineTransformer.java rename to src/main/java/org/apache/commons/math3/transform/FastSineTransformer.java index b71919b9a..fe4cdecdb 100644 --- a/src/main/java/org/apache/commons/math/transform/FastSineTransformer.java +++ b/src/main/java/org/apache/commons/math3/transform/FastSineTransformer.java @@ -14,17 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.transform; +package org.apache.commons.math3.transform; import java.io.Serializable; -import org.apache.commons.math.analysis.FunctionUtils; -import org.apache.commons.math.analysis.UnivariateFunction; -import org.apache.commons.math.complex.Complex; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.ArithmeticUtils; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.analysis.FunctionUtils; +import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math3.complex.Complex; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.ArithmeticUtils; +import org.apache.commons.math3.util.FastMath; /** *
@@ -119,9 +119,9 @@ public class FastSineTransformer implements RealTransformer, Serializable { * * This implementation enforces {@code f(x) = 0.0} at {@code x = 0.0}. * - * @throws org.apache.commons.math.exception.NonMonotonicSequenceException + * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException * if the lower bound is greater than, or equal to the upper bound - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if the number of sample points is negative * @throws MathIllegalArgumentException if the number of sample points is * not a power of two diff --git a/src/main/java/org/apache/commons/math/transform/RealTransformer.java b/src/main/java/org/apache/commons/math3/transform/RealTransformer.java similarity index 87% rename from src/main/java/org/apache/commons/math/transform/RealTransformer.java rename to src/main/java/org/apache/commons/math3/transform/RealTransformer.java index ff18de554..69a18dfd6 100644 --- a/src/main/java/org/apache/commons/math/transform/RealTransformer.java +++ b/src/main/java/org/apache/commons/math3/transform/RealTransformer.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.transform; +package org.apache.commons.math3.transform; -import org.apache.commons.math.analysis.UnivariateFunction; +import org.apache.commons.math3.analysis.UnivariateFunction; /** *
Interface for one-dimensional data sets transformations producing real @@ -25,7 +25,7 @@ import org.apache.commons.math.analysis.UnivariateFunction; * {@link FastCosineTransformer cosine transform} or {@link * FastHadamardTransformer Hadamard transform}. {@link FastFourierTransformer * Fourier transform} is of a different kind and does not implement this - * interface since it produces {@link org.apache.commons.math.complex.Complex} + * interface since it produces {@link org.apache.commons.math3.complex.Complex} * results instead of real ones.
* * @version $Id$ @@ -52,9 +52,9 @@ public interface RealTransformer { * @param n the number of sample points * @param type the type of transform (forward, inverse) to be performed * @return the real transformed array - * @throws org.apache.commons.math.exception.NonMonotonicSequenceException + * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException * if the lower bound is greater than, or equal to the upper bound - * @throws org.apache.commons.math.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException * if the number of sample points is negative */ double[] transform(UnivariateFunction f, diff --git a/src/main/java/org/apache/commons/math/transform/TransformType.java b/src/main/java/org/apache/commons/math3/transform/TransformType.java similarity index 96% rename from src/main/java/org/apache/commons/math/transform/TransformType.java rename to src/main/java/org/apache/commons/math3/transform/TransformType.java index a744ae670..7f5a3eade 100644 --- a/src/main/java/org/apache/commons/math/transform/TransformType.java +++ b/src/main/java/org/apache/commons/math3/transform/TransformType.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.transform; +package org.apache.commons.math3.transform; /** * This enumeration defines the type of transform which is to be computed. diff --git a/src/main/java/org/apache/commons/math/transform/TransformUtils.java b/src/main/java/org/apache/commons/math3/transform/TransformUtils.java similarity index 94% rename from src/main/java/org/apache/commons/math/transform/TransformUtils.java rename to src/main/java/org/apache/commons/math3/transform/TransformUtils.java index 3a7600b5b..e23921f83 100644 --- a/src/main/java/org/apache/commons/math/transform/TransformUtils.java +++ b/src/main/java/org/apache/commons/math3/transform/TransformUtils.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.transform; +package org.apache.commons.math3.transform; import java.util.Arrays; -import org.apache.commons.math.complex.Complex; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.complex.Complex; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Useful functions for the implementation of various transforms. diff --git a/src/main/java/org/apache/commons/math/transform/package-info.java b/src/main/java/org/apache/commons/math3/transform/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/transform/package-info.java rename to src/main/java/org/apache/commons/math3/transform/package-info.java index b3ed7f565..6d6cfc62e 100644 --- a/src/main/java/org/apache/commons/math/transform/package-info.java +++ b/src/main/java/org/apache/commons/math3/transform/package-info.java @@ -19,4 +19,4 @@ * Implementations of transform methods, including Fast Fourier transforms. * */ -package org.apache.commons.math.transform; +package org.apache.commons.math3.transform; diff --git a/src/main/java/org/apache/commons/math/util/ArithmeticUtils.java b/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java similarity index 98% rename from src/main/java/org/apache/commons/math/util/ArithmeticUtils.java rename to src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java index d011d704a..64d35a78e 100644 --- a/src/main/java/org/apache/commons/math/util/ArithmeticUtils.java +++ b/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.math.BigInteger; -import org.apache.commons.math.exception.MathArithmeticException; -import org.apache.commons.math.exception.NotPositiveException; -import org.apache.commons.math.exception.NumberIsTooLargeException; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math3.exception.NotPositiveException; +import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Some useful, arithmetics related, additions to the built-in functions in diff --git a/src/main/java/org/apache/commons/math/util/BigReal.java b/src/main/java/org/apache/commons/math3/util/BigReal.java similarity index 98% rename from src/main/java/org/apache/commons/math/util/BigReal.java rename to src/main/java/org/apache/commons/math3/util/BigReal.java index 665976833..c4a814706 100644 --- a/src/main/java/org/apache/commons/math/util/BigReal.java +++ b/src/main/java/org/apache/commons/math3/util/BigReal.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.Serializable; @@ -23,8 +23,8 @@ import java.math.BigInteger; import java.math.MathContext; import java.math.RoundingMode; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; /** * Arbitrary precision decimal number. diff --git a/src/main/java/org/apache/commons/math/util/BigRealField.java b/src/main/java/org/apache/commons/math3/util/BigRealField.java similarity index 94% rename from src/main/java/org/apache/commons/math/util/BigRealField.java rename to src/main/java/org/apache/commons/math3/util/BigRealField.java index dcf203f3c..dea1e3b10 100644 --- a/src/main/java/org/apache/commons/math/util/BigRealField.java +++ b/src/main/java/org/apache/commons/math3/util/BigRealField.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.Serializable; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; /** * Representation of real numbers with arbitrary precision field. diff --git a/src/main/java/org/apache/commons/math/util/CompositeFormat.java b/src/main/java/org/apache/commons/math3/util/CompositeFormat.java similarity index 99% rename from src/main/java/org/apache/commons/math/util/CompositeFormat.java rename to src/main/java/org/apache/commons/math3/util/CompositeFormat.java index 6cd7bd2a8..491bc9ce9 100644 --- a/src/main/java/org/apache/commons/math/util/CompositeFormat.java +++ b/src/main/java/org/apache/commons/math3/util/CompositeFormat.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.text.FieldPosition; import java.text.NumberFormat; diff --git a/src/main/java/org/apache/commons/math/util/ContinuedFraction.java b/src/main/java/org/apache/commons/math3/util/ContinuedFraction.java similarity index 96% rename from src/main/java/org/apache/commons/math/util/ContinuedFraction.java rename to src/main/java/org/apache/commons/math3/util/ContinuedFraction.java index 1b0f673bd..35fe9160b 100644 --- a/src/main/java/org/apache/commons/math/util/ContinuedFraction.java +++ b/src/main/java/org/apache/commons/math3/util/ContinuedFraction.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; -import org.apache.commons.math.exception.ConvergenceException; -import org.apache.commons.math.exception.MaxCountExceededException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.ConvergenceException; +import org.apache.commons.math3.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Provides a generic means to evaluate continued fractions. Subclasses simply diff --git a/src/main/java/org/apache/commons/math/util/DefaultTransformer.java b/src/main/java/org/apache/commons/math3/util/DefaultTransformer.java similarity index 92% rename from src/main/java/org/apache/commons/math/util/DefaultTransformer.java rename to src/main/java/org/apache/commons/math3/util/DefaultTransformer.java index 8f2a1f53a..e2fd22ab5 100644 --- a/src/main/java/org/apache/commons/math/util/DefaultTransformer.java +++ b/src/main/java/org/apache/commons/math3/util/DefaultTransformer.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.Serializable; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.NullArgumentException; /** * A Default NumberTransformer for java.lang.Numbers and Numeric Strings. This diff --git a/src/main/java/org/apache/commons/math/util/DoubleArray.java b/src/main/java/org/apache/commons/math3/util/DoubleArray.java similarity index 99% rename from src/main/java/org/apache/commons/math/util/DoubleArray.java rename to src/main/java/org/apache/commons/math3/util/DoubleArray.java index 051fe4be4..4c8f0926a 100644 --- a/src/main/java/org/apache/commons/math/util/DoubleArray.java +++ b/src/main/java/org/apache/commons/math3/util/DoubleArray.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; /** diff --git a/src/main/java/org/apache/commons/math/util/FastMath.java b/src/main/java/org/apache/commons/math3/util/FastMath.java similarity index 99% rename from src/main/java/org/apache/commons/math/util/FastMath.java rename to src/main/java/org/apache/commons/math3/util/FastMath.java index 5fb5bdc94..d626d1247 100644 --- a/src/main/java/org/apache/commons/math/util/FastMath.java +++ b/src/main/java/org/apache/commons/math3/util/FastMath.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.PrintStream; diff --git a/src/main/java/org/apache/commons/math/util/FastMathCalc.java b/src/main/java/org/apache/commons/math3/util/FastMathCalc.java similarity index 99% rename from src/main/java/org/apache/commons/math/util/FastMathCalc.java rename to src/main/java/org/apache/commons/math3/util/FastMathCalc.java index b36618cf4..8637badec 100644 --- a/src/main/java/org/apache/commons/math/util/FastMathCalc.java +++ b/src/main/java/org/apache/commons/math3/util/FastMathCalc.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.PrintStream; -import org.apache.commons.math.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.DimensionMismatchException; /** Class used to compute the classical functions tables. * @version $Id$ diff --git a/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java b/src/main/java/org/apache/commons/math3/util/FastMathLiteralArrays.java similarity index 99% rename from src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java rename to src/main/java/org/apache/commons/math3/util/FastMathLiteralArrays.java index 4e2e5cd17..00ce86b02 100644 --- a/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java +++ b/src/main/java/org/apache/commons/math3/util/FastMathLiteralArrays.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; /** * Utility class for loading tabulated data used by {@link FastMath}. diff --git a/src/main/java/org/apache/commons/math/util/FastMathResources.java b/src/main/java/org/apache/commons/math3/util/FastMathResources.java similarity index 98% rename from src/main/java/org/apache/commons/math/util/FastMathResources.java rename to src/main/java/org/apache/commons/math3/util/FastMathResources.java index bcd71f0fc..84802c8dc 100644 --- a/src/main/java/org/apache/commons/math/util/FastMathResources.java +++ b/src/main/java/org/apache/commons/math3/util/FastMathResources.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.File; import java.io.DataOutputStream; @@ -28,7 +28,7 @@ import java.io.FileNotFoundException; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.DoubleBuffer; -import org.apache.commons.math.exception.MathInternalError; +import org.apache.commons.math3.exception.MathInternalError; /** * Utility class for saving and loading tabulated data used by diff --git a/src/main/java/org/apache/commons/math/util/Incrementor.java b/src/main/java/org/apache/commons/math3/util/Incrementor.java similarity index 97% rename from src/main/java/org/apache/commons/math/util/Incrementor.java rename to src/main/java/org/apache/commons/math3/util/Incrementor.java index 83a2a05f6..63ea7f9de 100644 --- a/src/main/java/org/apache/commons/math/util/Incrementor.java +++ b/src/main/java/org/apache/commons/math3/util/Incrementor.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; -import org.apache.commons.math.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.MaxCountExceededException; /** * Utility that increments a counter until a maximum is reached, at diff --git a/src/main/java/org/apache/commons/math/util/IterationEvent.java b/src/main/java/org/apache/commons/math3/util/IterationEvent.java similarity index 97% rename from src/main/java/org/apache/commons/math/util/IterationEvent.java rename to src/main/java/org/apache/commons/math3/util/IterationEvent.java index d0bc4184b..043a110b0 100644 --- a/src/main/java/org/apache/commons/math/util/IterationEvent.java +++ b/src/main/java/org/apache/commons/math3/util/IterationEvent.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.util.EventObject; diff --git a/src/main/java/org/apache/commons/math/util/IterationListener.java b/src/main/java/org/apache/commons/math3/util/IterationListener.java similarity index 98% rename from src/main/java/org/apache/commons/math/util/IterationListener.java rename to src/main/java/org/apache/commons/math3/util/IterationListener.java index 765e53fc8..2e7b7ec56 100644 --- a/src/main/java/org/apache/commons/math/util/IterationListener.java +++ b/src/main/java/org/apache/commons/math3/util/IterationListener.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.util.EventListener; diff --git a/src/main/java/org/apache/commons/math/util/IterationManager.java b/src/main/java/org/apache/commons/math3/util/IterationManager.java similarity index 97% rename from src/main/java/org/apache/commons/math/util/IterationManager.java rename to src/main/java/org/apache/commons/math3/util/IterationManager.java index f4f23ecfb..2c7e6b0ac 100644 --- a/src/main/java/org/apache/commons/math/util/IterationManager.java +++ b/src/main/java/org/apache/commons/math3/util/IterationManager.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.util.Collection; import java.util.concurrent.CopyOnWriteArrayList; -import org.apache.commons.math.exception.MaxCountExceededException; +import org.apache.commons.math3.exception.MaxCountExceededException; /** * This abstract class provides a general framework for managing iterative diff --git a/src/main/java/org/apache/commons/math/util/MathArrays.java b/src/main/java/org/apache/commons/math3/util/MathArrays.java similarity index 98% rename from src/main/java/org/apache/commons/math/util/MathArrays.java rename to src/main/java/org/apache/commons/math3/util/MathArrays.java index 983e42ff3..13ab75150 100644 --- a/src/main/java/org/apache/commons/math/util/MathArrays.java +++ b/src/main/java/org/apache/commons/math3/util/MathArrays.java @@ -15,20 +15,20 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Collections; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.MathInternalError; -import org.apache.commons.math.exception.NonMonotonicSequenceException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.exception.MathArithmeticException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.MathInternalError; +import org.apache.commons.math3.exception.NonMonotonicSequenceException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathArithmeticException; /** * Arrays utilities. diff --git a/src/main/java/org/apache/commons/math/util/MathUtils.java b/src/main/java/org/apache/commons/math3/util/MathUtils.java similarity index 96% rename from src/main/java/org/apache/commons/math/util/MathUtils.java rename to src/main/java/org/apache/commons/math3/util/MathUtils.java index 104475dac..239c1adfc 100644 --- a/src/main/java/org/apache/commons/math/util/MathUtils.java +++ b/src/main/java/org/apache/commons/math3/util/MathUtils.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.util.Arrays; -import org.apache.commons.math.exception.MathArithmeticException; -import org.apache.commons.math.exception.NotFiniteNumberException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.util.Localizable; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math3.exception.NotFiniteNumberException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.Localizable; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Miscellaneous utility functions. diff --git a/src/main/java/org/apache/commons/math/util/MultidimensionalCounter.java b/src/main/java/org/apache/commons/math3/util/MultidimensionalCounter.java similarity index 97% rename from src/main/java/org/apache/commons/math/util/MultidimensionalCounter.java rename to src/main/java/org/apache/commons/math3/util/MultidimensionalCounter.java index 35f6f788a..314a89537 100644 --- a/src/main/java/org/apache/commons/math/util/MultidimensionalCounter.java +++ b/src/main/java/org/apache/commons/math3/util/MultidimensionalCounter.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; -import org.apache.commons.math.exception.DimensionMismatchException; -import org.apache.commons.math.exception.OutOfRangeException; -import org.apache.commons.math.exception.NotStrictlyPositiveException; +import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math3.exception.NotStrictlyPositiveException; /** * Converter between unidimensional storage structure and multidimensional diff --git a/src/main/java/org/apache/commons/math/util/NumberTransformer.java b/src/main/java/org/apache/commons/math3/util/NumberTransformer.java similarity index 92% rename from src/main/java/org/apache/commons/math/util/NumberTransformer.java rename to src/main/java/org/apache/commons/math3/util/NumberTransformer.java index f0091c58f..9652ded50 100644 --- a/src/main/java/org/apache/commons/math/util/NumberTransformer.java +++ b/src/main/java/org/apache/commons/math3/util/NumberTransformer.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; -import org.apache.commons.math.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; /** * Subclasses implementing this interface can transform Objects to doubles. diff --git a/src/main/java/org/apache/commons/math/util/OpenIntToDoubleHashMap.java b/src/main/java/org/apache/commons/math3/util/OpenIntToDoubleHashMap.java similarity index 99% rename from src/main/java/org/apache/commons/math/util/OpenIntToDoubleHashMap.java rename to src/main/java/org/apache/commons/math3/util/OpenIntToDoubleHashMap.java index 186388554..10c633478 100644 --- a/src/main/java/org/apache/commons/math/util/OpenIntToDoubleHashMap.java +++ b/src/main/java/org/apache/commons/math3/util/OpenIntToDoubleHashMap.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.IOException; import java.io.ObjectInputStream; diff --git a/src/main/java/org/apache/commons/math/util/OpenIntToFieldHashMap.java b/src/main/java/org/apache/commons/math3/util/OpenIntToFieldHashMap.java similarity index 99% rename from src/main/java/org/apache/commons/math/util/OpenIntToFieldHashMap.java rename to src/main/java/org/apache/commons/math3/util/OpenIntToFieldHashMap.java index 3ae37a86c..c9acd2b48 100644 --- a/src/main/java/org/apache/commons/math/util/OpenIntToFieldHashMap.java +++ b/src/main/java/org/apache/commons/math3/util/OpenIntToFieldHashMap.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.IOException; import java.io.ObjectInputStream; @@ -23,8 +23,8 @@ import java.lang.reflect.Array; import java.util.ConcurrentModificationException; import java.util.NoSuchElementException; -import org.apache.commons.math.Field; -import org.apache.commons.math.FieldElement; +import org.apache.commons.math3.Field; +import org.apache.commons.math3.FieldElement; /** * Open addressed map from int to FieldElement. diff --git a/src/main/java/org/apache/commons/math/util/Pair.java b/src/main/java/org/apache/commons/math3/util/Pair.java similarity index 98% rename from src/main/java/org/apache/commons/math/util/Pair.java rename to src/main/java/org/apache/commons/math3/util/Pair.java index 3cbc1f346..cc5a66cff 100644 --- a/src/main/java/org/apache/commons/math/util/Pair.java +++ b/src/main/java/org/apache/commons/math3/util/Pair.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; /** * Generic pair. diff --git a/src/main/java/org/apache/commons/math/util/Precision.java b/src/main/java/org/apache/commons/math3/util/Precision.java similarity index 98% rename from src/main/java/org/apache/commons/math/util/Precision.java rename to src/main/java/org/apache/commons/math3/util/Precision.java index 8bf33e36e..d82ff1b31 100644 --- a/src/main/java/org/apache/commons/math/util/Precision.java +++ b/src/main/java/org/apache/commons/math3/util/Precision.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.math.BigDecimal; -import org.apache.commons.math.exception.MathArithmeticException; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; -import org.apache.commons.math.util.FastMath; +import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math3.util.FastMath; /** * Utilities for comparing numbers. diff --git a/src/main/java/org/apache/commons/math/util/ResizableDoubleArray.java b/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java similarity index 99% rename from src/main/java/org/apache/commons/math/util/ResizableDoubleArray.java rename to src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java index 3003ff4e8..ae9135af5 100644 --- a/src/main/java/org/apache/commons/math/util/ResizableDoubleArray.java +++ b/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.Serializable; import java.util.Arrays; -import org.apache.commons.math.exception.MathIllegalArgumentException; -import org.apache.commons.math.exception.MathIllegalStateException; -import org.apache.commons.math.exception.NullArgumentException; -import org.apache.commons.math.exception.util.LocalizedFormats; +import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** *diff --git a/src/main/java/org/apache/commons/math/util/TransformerMap.java b/src/main/java/org/apache/commons/math3/util/TransformerMap.java similarity index 96% rename from src/main/java/org/apache/commons/math/util/TransformerMap.java rename to src/main/java/org/apache/commons/math3/util/TransformerMap.java index da76ed5f5..246274f6a 100644 --- a/src/main/java/org/apache/commons/math/util/TransformerMap.java +++ b/src/main/java/org/apache/commons/math3/util/TransformerMap.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; import java.io.Serializable; import java.util.Collection; @@ -22,7 +22,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Set; -import org.apache.commons.math.exception.MathIllegalArgumentException; +import org.apache.commons.math3.exception.MathIllegalArgumentException; /** * This TansformerMap automates the transformation of mixed object types. @@ -136,7 +136,7 @@ public class TransformerMap implements NumberTransformer, Serializable { * @return the double value of the Object. * @throws MathIllegalArgumentException if the Object can not be * transformed into a Double. - * @see org.apache.commons.math.util.NumberTransformer#transform(java.lang.Object) + * @see org.apache.commons.math3.util.NumberTransformer#transform(java.lang.Object) */ public double transform(Object o) throws MathIllegalArgumentException { double value = Double.NaN; diff --git a/src/main/java/org/apache/commons/math/util/package-info.java b/src/main/java/org/apache/commons/math3/util/package-info.java similarity index 95% rename from src/main/java/org/apache/commons/math/util/package-info.java rename to src/main/java/org/apache/commons/math3/util/package-info.java index 388712819..5d753415b 100644 --- a/src/main/java/org/apache/commons/math/util/package-info.java +++ b/src/main/java/org/apache/commons/math3/util/package-info.java @@ -17,4 +17,4 @@ /** * Convenience routines and common data structures used throughout the commons-math library. */ -package org.apache.commons.math.util; +package org.apache.commons.math3.util; diff --git a/src/main/resources/data/org/apache/commons/math/util/FastMath__exp_frac b/src/main/resources/data/org/apache/commons/math3/util/FastMath__exp_frac similarity index 100% rename from src/main/resources/data/org/apache/commons/math/util/FastMath__exp_frac rename to src/main/resources/data/org/apache/commons/math3/util/FastMath__exp_frac diff --git a/src/main/resources/data/org/apache/commons/math/util/FastMath__exp_int b/src/main/resources/data/org/apache/commons/math3/util/FastMath__exp_int similarity index 100% rename from src/main/resources/data/org/apache/commons/math/util/FastMath__exp_int rename to src/main/resources/data/org/apache/commons/math3/util/FastMath__exp_int diff --git a/src/main/resources/data/org/apache/commons/math/util/FastMath__ln_mant b/src/main/resources/data/org/apache/commons/math3/util/FastMath__ln_mant similarity index 100% rename from src/main/resources/data/org/apache/commons/math/util/FastMath__ln_mant rename to src/main/resources/data/org/apache/commons/math3/util/FastMath__ln_mant diff --git a/src/site/resources/userguide/TrajectoryDeterminationProblem.java b/src/site/resources/userguide/TrajectoryDeterminationProblem.java index 96e585c25..0a0ad36db 100644 --- a/src/site/resources/userguide/TrajectoryDeterminationProblem.java +++ b/src/site/resources/userguide/TrajectoryDeterminationProblem.java @@ -15,12 +15,12 @@ * limitations under the License. */ -import org.apache.commons.math.optimization.general.EstimationException; -import org.apache.commons.math.optimization.general.EstimatedParameter; -import org.apache.commons.math.optimization.general.EstimationProblem; -import org.apache.commons.math.optimization.general.LevenbergMarquardtEstimator; -import org.apache.commons.math.optimization.general.SimpleEstimationProblem; -import org.apache.commons.math.optimization.general.WeightedMeasurement; +import org.apache.commons.math3.optimization.general.EstimationException; +import org.apache.commons.math3.optimization.general.EstimatedParameter; +import org.apache.commons.math3.optimization.general.EstimationProblem; +import org.apache.commons.math3.optimization.general.LevenbergMarquardtEstimator; +import org.apache.commons.math3.optimization.general.SimpleEstimationProblem; +import org.apache.commons.math3.optimization.general.WeightedMeasurement; public class TrajectoryDeterminationProblem extends SimpleEstimationProblem { diff --git a/src/site/xdoc/changes.xml b/src/site/xdoc/changes.xml index e7005bbf8..9de79eb03 100644 --- a/src/site/xdoc/changes.xml +++ b/src/site/xdoc/changes.xml @@ -777,7 +777,7 @@ This is primarily a maintenance release, but it also includes new features and e 2.1, there was no way to estimate models without intercept terms, and, while this was not clear from the documentation, design (X) matrices needed to include initial unitary columns. In 2.2, initial unitary columns are not necessary and whether or not models include intercept terms is configurable. - See the change log and javadoc for the classes in org.apache.commons.math.stat.regression for details. + See the change log and javadoc for the classes in org.apache.commons.math3.stat.regression for details. The major new features are: a new FastMath class, both faster, more accurate and with a few additional functions than StrictMath and Math; diff --git a/src/site/xdoc/proposal.xml b/src/site/xdoc/proposal.xml index d5cc87077..9ddbe437e 100644 --- a/src/site/xdoc/proposal.xml +++ b/src/site/xdoc/proposal.xml @@ -99,7 +99,7 @@ and mathematical algorithms such as the following:
The proposed package name for the new component is
-org.apache.commons.math
.
org.apache.commons.math3
.
The - org.apache.commons.math.analysis.polynomials package provides real + org.apache.commons.math3.analysis.polynomials package provides real coefficients polynomials.
diff --git a/src/site/xdoc/userguide/optimization.xml b/src/site/xdoc/userguide/optimization.xml index dfa22b84d..59fca5adf 100644 --- a/src/site/xdoc/userguide/optimization.xml +++ b/src/site/xdoc/userguide/optimization.xml @@ -454,7 +454,7 @@ can be seen below:
Below is the the class containing all the implementation details -(Taken from the Apache Commons Math org.apache.commons.math.optimization.general.LevenbergMarquardtOptimizerTest): +(Taken from the Apache Commons Math org.apache.commons.math3.optimization.general.LevenbergMarquardtOptimizerTest):