http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/IllinoisSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/IllinoisSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/IllinoisSolver.java index bd3bc71..051b10e 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/IllinoisSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/IllinoisSolver.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; /**
http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java index c127b42..23fd17a 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java @@ -14,18 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.complex.Complex; -import org.apache.commons.math3.complex.ComplexUtils; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; -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.math4.analysis.polynomials.PolynomialFunction; +import org.apache.commons.math4.complex.Complex; +import org.apache.commons.math4.complex.ComplexUtils; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; /** * Implements the <a href="http://mathworld.wolfram.com/LaguerresMethod.html"> @@ -182,7 +182,7 @@ public class LaguerreSolver extends AbstractPolynomialSolver { * @param coefficients Polynomial coefficients. * @param initial Start value. * @return the point at which the function value is zero. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException * if the maximum number of evaluations is exceeded. * @throws NullArgumentException if the {@code coefficients} is * {@code null}. @@ -212,7 +212,7 @@ public class LaguerreSolver extends AbstractPolynomialSolver { * @param coefficients Polynomial coefficients. * @param initial Start value. * @return the point at which the function value is zero. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException * if the maximum number of evaluations is exceeded. * @throws NullArgumentException if the {@code coefficients} is * {@code null}. @@ -262,7 +262,7 @@ public class LaguerreSolver extends AbstractPolynomialSolver { * @param coefficients Polynomial coefficients. * @param initial Start value. * @return the point at which the function value is zero. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException * if the maximum number of evaluations is exceeded. * @throws NullArgumentException if the {@code coefficients} is * {@code null}. @@ -311,7 +311,7 @@ public class LaguerreSolver extends AbstractPolynomialSolver { * @param coefficients Polynomial coefficients. * @param initial Start value. * @return the point at which the function value is zero. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException * if the maximum number of evaluations is exceeded. * @throws NullArgumentException if the {@code coefficients} is * {@code null}. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver.java index 06a7b6b..9a86406 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.FastMath; /** * This class implements the <a href="http://mathworld.wolfram.com/MullersMethod.html"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver2.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver2.java b/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver2.java index 2a79c11..1cbfdfd 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver2.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/MullerSolver2.java @@ -14,12 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.FastMath; /** * This class implements the <a href="http://mathworld.wolfram.com/MullersMethod.html"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonRaphsonSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonRaphsonSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonRaphsonSolver.java index 4cf2688..5539e3b 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonRaphsonSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonRaphsonSolver.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; -import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math4.analysis.differentiation.DerivativeStructure; +import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.FastMath; /** * Implements <a href="http://mathworld.wolfram.com/NewtonsMethod.html"> @@ -56,9 +56,9 @@ public class NewtonRaphsonSolver extends AbstractUnivariateDifferentiableSolver * @param max Upper bound for the interval. * @param maxEval Maximum number of evaluations. * @return the value where the function is zero. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException * if the maximum evaluation count is exceeded. - * @throws org.apache.commons.math3.exception.NumberIsTooLargeException + * @throws org.apache.commons.math4.exception.NumberIsTooLargeException * if {@code min >= max}. */ @Override http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonSolver.java index 3ba7bf2..f377030 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/NewtonSolver.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.FastMath; /** * Implements <a href="http://mathworld.wolfram.com/NewtonsMethod.html"> @@ -57,9 +57,9 @@ public class NewtonSolver extends AbstractDifferentiableUnivariateSolver { * @param max Upper bound for the interval. * @param maxEval Maximum number of evaluations. * @return the value where the function is zero. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException * if the maximum evaluation count is exceeded. - * @throws org.apache.commons.math3.exception.NumberIsTooLargeException + * @throws org.apache.commons.math4.exception.NumberIsTooLargeException * if {@code min >= max}. */ @Override http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/PegasusSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/PegasusSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/PegasusSolver.java index 0d80895..3abb279 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/PegasusSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/PegasusSolver.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; /** * Implements the <em>Pegasus</em> method for root-finding (approximating http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/PolynomialSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/PolynomialSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/PolynomialSolver.java index c21f076..e4d0c48 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/PolynomialSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/PolynomialSolver.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; +import org.apache.commons.math4.analysis.polynomials.PolynomialFunction; /** * Interface for (polynomial) root-finding algorithms. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/RegulaFalsiSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/RegulaFalsiSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/RegulaFalsiSolver.java index cfb7055..c59bd89 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/RegulaFalsiSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/RegulaFalsiSolver.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; /** * Implements the <em>Regula Falsi</em> or <em>False position</em> method for http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/RiddersSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/RiddersSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/RiddersSolver.java index d83f595..edce668 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/RiddersSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/RiddersSolver.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.FastMath; /** * Implements the <a href="http://mathworld.wolfram.com/RiddersMethod.html"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/SecantSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/SecantSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/SecantSolver.java index d866cf8..2600caf 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/SecantSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/SecantSolver.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.FastMath; /** * Implements the <em>Secant</em> method for root-finding (approximating a http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateDifferentiableSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateDifferentiableSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateDifferentiableSolver.java index 82bbead..254085e 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateDifferentiableSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateDifferentiableSolver.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; +import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolver.java index 484e67a..7755041 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolver.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; -import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.UnivariateFunction; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolverUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolverUtils.java b/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolverUtils.java index 4c2dd90..2521c9b 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolverUtils.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/UnivariateSolverUtils.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; - -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.analysis.solvers; + +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; /** * Utility routines for {@link UnivariateSolver} objects. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/package-info.java b/src/main/java/org/apache/commons/math4/analysis/solvers/package-info.java index eb15fbc..95d4660 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/package-info.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/package-info.java @@ -19,4 +19,4 @@ * Root finding algorithms, for univariate real functions. * */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/complex/Complex.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/complex/Complex.java b/src/main/java/org/apache/commons/math4/complex/Complex.java index c8bd211..546b8da 100644 --- a/src/main/java/org/apache/commons/math4/complex/Complex.java +++ b/src/main/java/org/apache/commons/math4/complex/Complex.java @@ -15,19 +15,19 @@ * limitations under the License. */ -package org.apache.commons.math3.complex; +package org.apache.commons.math4.complex; import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.FieldElement; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NullArgumentException; -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.Precision; +import org.apache.commons.math4.FieldElement; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; +import org.apache.commons.math4.util.Precision; /** * Representation of a Complex number, i.e. a number which has both a @@ -46,8 +46,8 @@ import org.apache.commons.math3.util.Precision; * Note that this is in contradiction with the IEEE-754 standard for floating * point numbers (according to which the test {@code x == x} must fail if * {@code x} is {@code NaN}). The method - * {@link org.apache.commons.math3.util.Precision#equals(double,double,int) - * equals for primitive double} in {@link org.apache.commons.math3.util.Precision} + * {@link org.apache.commons.math4.util.Precision#equals(double,double,int) + * equals for primitive double} in {@link org.apache.commons.math4.util.Precision} * conforms with IEEE-754 while this class conforms with the standard behavior * for Java object types. * <br/> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/complex/ComplexField.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/complex/ComplexField.java b/src/main/java/org/apache/commons/math4/complex/ComplexField.java index 939752d..8a91d00 100644 --- a/src/main/java/org/apache/commons/math4/complex/ComplexField.java +++ b/src/main/java/org/apache/commons/math4/complex/ComplexField.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math3.complex; +package org.apache.commons.math4.complex; import java.io.Serializable; -import org.apache.commons.math3.Field; -import org.apache.commons.math3.FieldElement; +import org.apache.commons.math4.Field; +import org.apache.commons.math4.FieldElement; /** * Representation of the complex numbers field. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java b/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java index affb638..f1ca864 100644 --- a/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java +++ b/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java @@ -15,19 +15,19 @@ * limitations under the License. */ -package org.apache.commons.math3.complex; +package org.apache.commons.math4.complex; import java.text.FieldPosition; import java.text.NumberFormat; import java.text.ParsePosition; import java.util.Locale; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.MathParseException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.util.CompositeFormat; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathParseException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.CompositeFormat; /** * Formats a Complex number in cartesian format "Re(c) + Im(c)i". 'i' can http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/complex/ComplexUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/complex/ComplexUtils.java b/src/main/java/org/apache/commons/math4/complex/ComplexUtils.java index 55db946..493374f 100644 --- a/src/main/java/org/apache/commons/math4/complex/ComplexUtils.java +++ b/src/main/java/org/apache/commons/math4/complex/ComplexUtils.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.complex; +package org.apache.commons.math4.complex; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; /** * Static implementations of common - * {@link org.apache.commons.math3.complex.Complex} utilities functions. + * {@link org.apache.commons.math4.complex.Complex} utilities functions. * */ public class ComplexUtils { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/complex/Quaternion.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/complex/Quaternion.java b/src/main/java/org/apache/commons/math4/complex/Quaternion.java index e845596..505b64e 100644 --- a/src/main/java/org/apache/commons/math4/complex/Quaternion.java +++ b/src/main/java/org/apache/commons/math4/complex/Quaternion.java @@ -15,15 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math3.complex; +package org.apache.commons.math4.complex; import java.io.Serializable; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; -import org.apache.commons.math3.util.Precision; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.ZeroException; -import org.apache.commons.math3.exception.util.LocalizedFormats; + +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.ZeroException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; +import org.apache.commons.math4.util.Precision; /** * This class implements <a href="http://mathworld.wolfram.com/Quaternion.html"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/complex/RootsOfUnity.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/complex/RootsOfUnity.java b/src/main/java/org/apache/commons/math4/complex/RootsOfUnity.java index 4e63835..80fcb4b 100644 --- a/src/main/java/org/apache/commons/math4/complex/RootsOfUnity.java +++ b/src/main/java/org/apache/commons/math4/complex/RootsOfUnity.java @@ -14,16 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.complex; +package org.apache.commons.math4.complex; import java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.MathIllegalStateException; -import org.apache.commons.math3.exception.OutOfRangeException; -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.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathIllegalStateException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.ZeroException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; /** * A helper class for the computation and caching of the {@code n}-th roots of http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/complex/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/complex/package-info.java b/src/main/java/org/apache/commons/math4/complex/package-info.java index 818806d..43effd5 100644 --- a/src/main/java/org/apache/commons/math4/complex/package-info.java +++ b/src/main/java/org/apache/commons/math4/complex/package-info.java @@ -20,4 +20,4 @@ * functions. * */ -package org.apache.commons.math3.complex; +package org.apache.commons.math4.complex; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/dfp/BracketingNthOrderBrentSolverDFP.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/dfp/BracketingNthOrderBrentSolverDFP.java b/src/main/java/org/apache/commons/math4/dfp/BracketingNthOrderBrentSolverDFP.java index c0328b6..86edeca 100644 --- a/src/main/java/org/apache/commons/math4/dfp/BracketingNthOrderBrentSolverDFP.java +++ b/src/main/java/org/apache/commons/math4/dfp/BracketingNthOrderBrentSolverDFP.java @@ -14,16 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.dfp; +package org.apache.commons.math4.dfp; -import org.apache.commons.math3.analysis.solvers.AllowedSolution; -import org.apache.commons.math3.exception.MathInternalError; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.util.Incrementor; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.analysis.solvers.AllowedSolution; +import org.apache.commons.math4.exception.MathInternalError; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.util.Incrementor; +import org.apache.commons.math4.util.MathUtils; /** * This class implements a modification of the <a http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/dfp/Dfp.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/dfp/Dfp.java b/src/main/java/org/apache/commons/math4/dfp/Dfp.java index 19d79a8..52b992c 100644 --- a/src/main/java/org/apache/commons/math4/dfp/Dfp.java +++ b/src/main/java/org/apache/commons/math4/dfp/Dfp.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math3.dfp; +package org.apache.commons.math4.dfp; import java.util.Arrays; -import org.apache.commons.math3.RealFieldElement; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.RealFieldElement; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.util.FastMath; /** * Decimal floating point library for Java @@ -625,12 +625,12 @@ public class Dfp implements RealFieldElement<Dfp> { return field.newDfp(sig, code); } - /** Get the {@link org.apache.commons.math3.Field Field} (really a {@link DfpField}) to which the instance belongs. + /** Get the {@link org.apache.commons.math4.Field Field} (really a {@link DfpField}) to which the instance belongs. * <p> * The field is linked to the number of digits and acts as a factory * for {@link Dfp} instances. * </p> - * @return {@link org.apache.commons.math3.Field Field} (really a {@link DfpField}) to which the instance belongs + * @return {@link org.apache.commons.math4.Field Field} (really a {@link DfpField}) to which the instance belongs */ public DfpField getField() { return field; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/dfp/DfpDec.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/dfp/DfpDec.java b/src/main/java/org/apache/commons/math4/dfp/DfpDec.java index 20875c0..6da5b2e 100644 --- a/src/main/java/org/apache/commons/math4/dfp/DfpDec.java +++ b/src/main/java/org/apache/commons/math4/dfp/DfpDec.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.dfp; +package org.apache.commons.math4.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 http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/dfp/DfpField.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/dfp/DfpField.java b/src/main/java/org/apache/commons/math4/dfp/DfpField.java index fcdec82..0e65b59 100644 --- a/src/main/java/org/apache/commons/math4/dfp/DfpField.java +++ b/src/main/java/org/apache/commons/math4/dfp/DfpField.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math3.dfp; +package org.apache.commons.math4.dfp; -import org.apache.commons.math3.Field; -import org.apache.commons.math3.FieldElement; +import org.apache.commons.math4.Field; +import org.apache.commons.math4.FieldElement; /** Field for Decimal floating point instances. * @since 2.2 http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/dfp/DfpMath.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/dfp/DfpMath.java b/src/main/java/org/apache/commons/math4/dfp/DfpMath.java index 3b19cb6..79c6821 100644 --- a/src/main/java/org/apache/commons/math4/dfp/DfpMath.java +++ b/src/main/java/org/apache/commons/math4/dfp/DfpMath.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.dfp; +package org.apache.commons.math4.dfp; /** Mathematical routines for use with {@link Dfp}. * The constants are defined in {@link DfpField} http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/dfp/UnivariateDfpFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/dfp/UnivariateDfpFunction.java b/src/main/java/org/apache/commons/math4/dfp/UnivariateDfpFunction.java index b627a32..5c4d4e5 100644 --- a/src/main/java/org/apache/commons/math4/dfp/UnivariateDfpFunction.java +++ b/src/main/java/org/apache/commons/math4/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.math3.dfp; +package org.apache.commons.math4.dfp; /** * An interface representing a univariate {@link Dfp} function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/dfp/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/dfp/package-info.java b/src/main/java/org/apache/commons/math4/dfp/package-info.java index 42a4b48..4013231 100644 --- a/src/main/java/org/apache/commons/math4/dfp/package-info.java +++ b/src/main/java/org/apache/commons/math4/dfp/package-info.java @@ -85,4 +85,4 @@ * this can be rendered invisible by a subclass.</p> * */ -package org.apache.commons.math3.dfp; +package org.apache.commons.math4.dfp; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java b/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java index 82a96c5..eccf9e7 100644 --- a/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java @@ -14,18 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; import java.io.Serializable; -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.RandomGenerator; -import org.apache.commons.math3.random.RandomDataImpl; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.MathInternalError; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomDataImpl; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.util.FastMath; /** * Base class for integer-valued discrete distributions. Default http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/AbstractMultivariateRealDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/AbstractMultivariateRealDistribution.java b/src/main/java/org/apache/commons/math4/distribution/AbstractMultivariateRealDistribution.java index a1dfd64..48de3c8 100644 --- a/src/main/java/org/apache/commons/math4/distribution/AbstractMultivariateRealDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/AbstractMultivariateRealDistribution.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.random.RandomGenerator; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; /** * Base class for multivariate probability distributions. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/AbstractRealDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/AbstractRealDistribution.java b/src/main/java/org/apache/commons/math4/distribution/AbstractRealDistribution.java index e3b1fac..f1e0233 100644 --- a/src/main/java/org/apache/commons/math4/distribution/AbstractRealDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/AbstractRealDistribution.java @@ -14,19 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; import java.io.Serializable; -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.RandomGenerator; -import org.apache.commons.math3.random.RandomDataImpl; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.solvers.UnivariateSolverUtils; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomDataImpl; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.util.FastMath; /** * Base class for probability distributions on the reals. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/BetaDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/BetaDistribution.java b/src/main/java/org/apache/commons/math4/distribution/BetaDistribution.java index 3f62f64..f2fb03c 100644 --- a/src/main/java/org/apache/commons/math4/distribution/BetaDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/BetaDistribution.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.special.Beta; -import org.apache.commons.math3.special.Gamma; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.special.Beta; +import org.apache.commons.math4.special.Gamma; +import org.apache.commons.math4.util.FastMath; /** * Implements the Beta distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/BinomialDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/BinomialDistribution.java b/src/main/java/org/apache/commons/math4/distribution/BinomialDistribution.java index f8cea26..bdb356b 100644 --- a/src/main/java/org/apache/commons/math4/distribution/BinomialDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/BinomialDistribution.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; - -import org.apache.commons.math3.exception.NotPositiveException; -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.Well19937c; -import org.apache.commons.math3.special.Beta; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.distribution; + +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.special.Beta; +import org.apache.commons.math4.util.FastMath; /** * Implementation of the binomial distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/CauchyDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/CauchyDistribution.java b/src/main/java/org/apache/commons/math4/distribution/CauchyDistribution.java index af3d33a..33d908e 100644 --- a/src/main/java/org/apache/commons/math4/distribution/CauchyDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/CauchyDistribution.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -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.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.FastMath; /** * Implementation of the Cauchy distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/ChiSquaredDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/ChiSquaredDistribution.java b/src/main/java/org/apache/commons/math4/distribution/ChiSquaredDistribution.java index 393d352..2627c33 100644 --- a/src/main/java/org/apache/commons/math4/distribution/ChiSquaredDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/ChiSquaredDistribution.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; /** * Implementation of the chi-squared distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/ConstantRealDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/ConstantRealDistribution.java b/src/main/java/org/apache/commons/math4/distribution/ConstantRealDistribution.java index 0dbb6aa..6149b31 100644 --- a/src/main/java/org/apache/commons/math4/distribution/ConstantRealDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/ConstantRealDistribution.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math4.exception.OutOfRangeException; /** * Implementation of the constant real distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java b/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java index 4cb23c1..8e45c0c 100644 --- a/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; import java.io.Serializable; import java.lang.reflect.Array; @@ -22,17 +22,17 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NotANumberException; -import org.apache.commons.math3.exception.NotFiniteNumberException; -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.util.LocalizedFormats; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.util.Pair; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NotANumberException; +import org.apache.commons.math4.exception.NotFiniteNumberException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.Pair; /** * <p>A generic implementation of a http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/EnumeratedIntegerDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/EnumeratedIntegerDistribution.java b/src/main/java/org/apache/commons/math4/distribution/EnumeratedIntegerDistribution.java index 9a07787..05f0d73 100644 --- a/src/main/java/org/apache/commons/math4/distribution/EnumeratedIntegerDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/EnumeratedIntegerDistribution.java @@ -14,19 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NotANumberException; -import org.apache.commons.math3.exception.NotFiniteNumberException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.Pair; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NotANumberException; +import org.apache.commons.math4.exception.NotFiniteNumberException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.Pair; /** * <p>Implementation of an integer-valued {@link EnumeratedDistribution}.</p> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/EnumeratedRealDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/EnumeratedRealDistribution.java b/src/main/java/org/apache/commons/math4/distribution/EnumeratedRealDistribution.java index 07b96bc..fabfe00 100644 --- a/src/main/java/org/apache/commons/math4/distribution/EnumeratedRealDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/EnumeratedRealDistribution.java @@ -14,20 +14,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NotANumberException; -import org.apache.commons.math3.exception.NotFiniteNumberException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.Pair; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NotANumberException; +import org.apache.commons.math4.exception.NotFiniteNumberException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.Pair; /** * <p>Implementation of a real-valued {@link EnumeratedDistribution}. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/ExponentialDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/ExponentialDistribution.java b/src/main/java/org/apache/commons/math4/distribution/ExponentialDistribution.java index 411f1a2..abb9985 100644 --- a/src/main/java/org/apache/commons/math4/distribution/ExponentialDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/ExponentialDistribution.java @@ -14,16 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; - -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.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.CombinatoricsUtils; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.ResizableDoubleArray; +package org.apache.commons.math4.distribution; + +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.CombinatoricsUtils; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.ResizableDoubleArray; /** * Implementation of the exponential distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/FDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/FDistribution.java b/src/main/java/org/apache/commons/math4/distribution/FDistribution.java index bd98c37..c34d45f 100644 --- a/src/main/java/org/apache/commons/math4/distribution/FDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/FDistribution.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.special.Beta; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.special.Beta; +import org.apache.commons.math4.util.FastMath; /** * Implementation of the F-distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/GammaDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/GammaDistribution.java b/src/main/java/org/apache/commons/math4/distribution/GammaDistribution.java index 4f60fa9..905c922 100644 --- a/src/main/java/org/apache/commons/math4/distribution/GammaDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/GammaDistribution.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; - -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.special.Gamma; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.distribution; + +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.special.Gamma; +import org.apache.commons.math4.util.FastMath; /** * Implementation of the Gamma distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/GeometricDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/GeometricDistribution.java b/src/main/java/org/apache/commons/math4/distribution/GeometricDistribution.java index f82a3ec..0963376 100644 --- a/src/main/java/org/apache/commons/math4/distribution/GeometricDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/GeometricDistribution.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -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.Well19937c; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.FastMath; /** * Implementation of the geometric distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/GumbelDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/GumbelDistribution.java b/src/main/java/org/apache/commons/math4/distribution/GumbelDistribution.java index 85dbedd..9ab0ef2 100644 --- a/src/main/java/org/apache/commons/math4/distribution/GumbelDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/GumbelDistribution.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; - -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.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +package org.apache.commons.math4.distribution; + +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * This class implements the Gumbel distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/HypergeometricDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/HypergeometricDistribution.java b/src/main/java/org/apache/commons/math4/distribution/HypergeometricDistribution.java index 7a1436a..86e0ad6 100644 --- a/src/main/java/org/apache/commons/math4/distribution/HypergeometricDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/HypergeometricDistribution.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -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.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.FastMath; /** * Implementation of the hypergeometric distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/IntegerDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/IntegerDistribution.java b/src/main/java/org/apache/commons/math4/distribution/IntegerDistribution.java index 9ab4a04..a905b3b 100644 --- a/src/main/java/org/apache/commons/math4/distribution/IntegerDistribution.java +++ b/src/main/java/org/apache/commons/math4/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.math3.distribution; +package org.apache.commons.math4.distribution; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.OutOfRangeException; /** * Interface for distributions on the integers. @@ -147,7 +147,7 @@ public interface IntegerDistribution { * * @param sampleSize the number of random values to generate * @return an array representing the random sample - * @throws org.apache.commons.math3.exception.NotStrictlyPositiveException + * @throws org.apache.commons.math4.exception.NotStrictlyPositiveException * if {@code sampleSize} is not positive * @since 3.0 */ http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/KolmogorovSmirnovDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/KolmogorovSmirnovDistribution.java b/src/main/java/org/apache/commons/math4/distribution/KolmogorovSmirnovDistribution.java index 7af514d..7199121 100644 --- a/src/main/java/org/apache/commons/math4/distribution/KolmogorovSmirnovDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/KolmogorovSmirnovDistribution.java @@ -15,23 +15,23 @@ * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; import java.io.Serializable; import java.math.BigDecimal; -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; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.fraction.BigFraction; +import org.apache.commons.math4.fraction.BigFractionField; +import org.apache.commons.math4.fraction.FractionConversionException; +import org.apache.commons.math4.linear.Array2DRowFieldMatrix; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.util.FastMath; /** * Implementation of the Kolmogorov-Smirnov distribution. @@ -69,7 +69,7 @@ import org.apache.commons.math3.util.FastMath; * @see <a href="http://en.wikipedia.org/wiki/Kolmogorov-Smirnov_test"> * Kolmogorov-Smirnov test (Wikipedia)</a> * @deprecated to be removed in version 4.0 - - * use {@link org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest} + * use {@link org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest} */ public class KolmogorovSmirnovDistribution implements Serializable { @@ -98,12 +98,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.math3.fraction.BigFraction}. + * {@link org.apache.commons.math4.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.math3.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math4.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -123,7 +123,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.math3.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math4.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -137,14 +137,14 @@ public class KolmogorovSmirnovDistribution implements Serializable { * * @param d statistic * @param exact whether the probability should be calculated exact using - * {@link org.apache.commons.math3.fraction.BigFraction} everywhere at the + * {@link org.apache.commons.math4.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.math3.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math4.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -183,13 +183,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.math3.fraction.BigFraction} (see + * in [1] and {@link org.apache.commons.math4.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.math3.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math4.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -221,7 +221,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.math3.fraction.BigFraction} in expressing + * to a {@link org.apache.commons.math4.fraction.BigFraction} in expressing * {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ @@ -261,7 +261,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.math3.fraction.BigFraction} in + * {@code h} to a {@link org.apache.commons.math4.fraction.BigFraction} in * expressing {@code d} as {@code (k - h) / m} for integer {@code k, m} and * {@code 0 <= h < 1}. */ http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/LaplaceDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/LaplaceDistribution.java b/src/main/java/org/apache/commons/math4/distribution/LaplaceDistribution.java index 0514bff..d3f21bb 100644 --- a/src/main/java/org/apache/commons/math4/distribution/LaplaceDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/LaplaceDistribution.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; - -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.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.distribution; + +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.FastMath; /** * This class implements the Laplace distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/LevyDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/LevyDistribution.java b/src/main/java/org/apache/commons/math4/distribution/LevyDistribution.java index 4580e50..a2bbab1 100644 --- a/src/main/java/org/apache/commons/math4/distribution/LevyDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/LevyDistribution.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.special.Erf; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.special.Erf; +import org.apache.commons.math4.util.FastMath; /** * This class implements the <a href="http://en.wikipedia.org/wiki/L%C3%A9vy_distribution"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/LogNormalDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/LogNormalDistribution.java b/src/main/java/org/apache/commons/math4/distribution/LogNormalDistribution.java index b8148b0..ec43db5 100644 --- a/src/main/java/org/apache/commons/math4/distribution/LogNormalDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/LogNormalDistribution.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.distribution; - -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.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.special.Erf; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.distribution; + +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.special.Erf; +import org.apache.commons.math4.util.FastMath; /** * Implementation of the log-normal (gaussian) distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/LogisticDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/LogisticDistribution.java b/src/main/java/org/apache/commons/math4/distribution/LogisticDistribution.java index 59313f5..ee29d3f 100644 --- a/src/main/java/org/apache/commons/math4/distribution/LogisticDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/LogisticDistribution.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; - -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.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +package org.apache.commons.math4.distribution; + +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * This class implements the Logistic distribution. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateNormalDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateNormalDistribution.java b/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateNormalDistribution.java index 0cf88c2..d7cd4cd 100644 --- a/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateNormalDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateNormalDistribution.java @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.util.Pair; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.util.Pair; /** * Multivariate normal mixture distribution. @@ -38,7 +38,7 @@ public class MixtureMultivariateNormalDistribution * Creates a multivariate normal mixture distribution. * <p> * <b>Note:</b> this constructor will implicitly create an instance of - * {@link org.apache.commons.math3.random.Well19937c Well19937c} as random + * {@link org.apache.commons.math4.random.Well19937c Well19937c} as random * generator to be used for sampling only (see {@link #sample()} and * {@link #sample(int)}). In case no sampling is needed for the created * distribution, it is advised to pass {@code null} as random generator via @@ -60,7 +60,7 @@ public class MixtureMultivariateNormalDistribution * associated weights. * <p> * <b>Note:</b> this constructor will implicitly create an instance of - * {@link org.apache.commons.math3.random.Well19937c Well19937c} as random + * {@link org.apache.commons.math4.random.Well19937c Well19937c} as random * generator to be used for sampling only (see {@link #sample()} and * {@link #sample(int)}). In case no sampling is needed for the created * distribution, it is advised to pass {@code null} as random generator via http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateRealDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateRealDistribution.java b/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateRealDistribution.java index f0939f6..d8bbb9a 100644 --- a/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateRealDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/MixtureMultivariateRealDistribution.java @@ -14,18 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; +package org.apache.commons.math4.distribution; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.Pair; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.Pair; /** * Class for representing <a href="http://en.wikipedia.org/wiki/Mixture_model"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/distribution/MultivariateNormalDistribution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/distribution/MultivariateNormalDistribution.java b/src/main/java/org/apache/commons/math4/distribution/MultivariateNormalDistribution.java index 7fc8b74..345fc5f 100644 --- a/src/main/java/org/apache/commons/math4/distribution/MultivariateNormalDistribution.java +++ b/src/main/java/org/apache/commons/math4/distribution/MultivariateNormalDistribution.java @@ -14,18 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.distribution; - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.linear.Array2DRowRealMatrix; -import org.apache.commons.math3.linear.EigenDecomposition; -import org.apache.commons.math3.linear.NonPositiveDefiniteMatrixException; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.linear.SingularMatrixException; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; +package org.apache.commons.math4.distribution; + +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.EigenDecomposition; +import org.apache.commons.math4.linear.NonPositiveDefiniteMatrixException; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.SingularMatrixException; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; /** * Implementation of the multivariate normal (Gaussian) distribution.