http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/integration/gauss/LegendreRuleFactory.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/integration/gauss/LegendreRuleFactory.java b/src/main/java/org/apache/commons/math4/analysis/integration/gauss/LegendreRuleFactory.java index 225fa01..9742b95 100644 --- a/src/main/java/org/apache/commons/math4/analysis/integration/gauss/LegendreRuleFactory.java +++ b/src/main/java/org/apache/commons/math4/analysis/integration/gauss/LegendreRuleFactory.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.integration.gauss; +package org.apache.commons.math4.analysis.integration.gauss; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.util.Pair; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.util.Pair; /** * Factory that creates Gauss-type quadrature rule using Legendre polynomials.
http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/integration/gauss/SymmetricGaussIntegrator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/integration/gauss/SymmetricGaussIntegrator.java b/src/main/java/org/apache/commons/math4/analysis/integration/gauss/SymmetricGaussIntegrator.java index 7fa4884..ee3a466 100644 --- a/src/main/java/org/apache/commons/math4/analysis/integration/gauss/SymmetricGaussIntegrator.java +++ b/src/main/java/org/apache/commons/math4/analysis/integration/gauss/SymmetricGaussIntegrator.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.integration.gauss; +package org.apache.commons.math4.analysis.integration.gauss; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.util.Pair; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.util.Pair; /** * This class's implements {@link #integrate(UnivariateFunction) integrate} http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/integration/gauss/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/integration/gauss/package-info.java b/src/main/java/org/apache/commons/math4/analysis/integration/gauss/package-info.java index 066da30..9fd1bc8 100644 --- a/src/main/java/org/apache/commons/math4/analysis/integration/gauss/package-info.java +++ b/src/main/java/org/apache/commons/math4/analysis/integration/gauss/package-info.java @@ -19,4 +19,4 @@ * Gauss family of quadrature schemes. * */ -package org.apache.commons.math3.analysis.integration.gauss; +package org.apache.commons.math4.analysis.integration.gauss; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/integration/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/integration/package-info.java b/src/main/java/org/apache/commons/math4/analysis/integration/package-info.java index f4df3ba..4afe6b0 100644 --- a/src/main/java/org/apache/commons/math4/analysis/integration/package-info.java +++ b/src/main/java/org/apache/commons/math4/analysis/integration/package-info.java @@ -19,4 +19,4 @@ * Numerical integration (quadrature) algorithms for univariate real functions. * */ -package org.apache.commons.math3.analysis.integration; +package org.apache.commons.math4.analysis.integration; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/AkimaSplineInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/AkimaSplineInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/AkimaSplineInterpolator.java index 5b89dfe..ac54924 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/AkimaSplineInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/AkimaSplineInterpolator.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.interpolation; - -import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; -import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -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.util.FastMath; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.util.Precision; +package org.apache.commons.math4.analysis.interpolation; + +import org.apache.commons.math4.analysis.polynomials.PolynomialFunction; +import org.apache.commons.math4.analysis.polynomials.PolynomialSplineFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.Precision; /** * Computes a cubic spline interpolation for the data set using the Akima http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolatingFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolatingFunction.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolatingFunction.java index 7fe947f..cea9766 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolatingFunction.java @@ -14,15 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.util.Arrays; -import org.apache.commons.math3.analysis.BivariateFunction; -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.NonMonotonicSequenceException; -import org.apache.commons.math3.util.MathArrays; + +import org.apache.commons.math4.analysis.BivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.util.MathArrays; /** * Function that implements the http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolator.java index 82ab44e..95617f5 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicInterpolator.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.util.MathArrays; /** * Generates a {@link BicubicInterpolatingFunction bicubic interpolating http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolatingFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolatingFunction.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolatingFunction.java index 522c2a5..e9f7e19 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolatingFunction.java @@ -14,15 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.util.Arrays; -import org.apache.commons.math3.analysis.BivariateFunction; -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.NonMonotonicSequenceException; -import org.apache.commons.math3.util.MathArrays; + +import org.apache.commons.math4.analysis.BivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.util.MathArrays; /** * Function that implements the @@ -32,7 +33,7 @@ import org.apache.commons.math3.util.MathArrays; * * @since 2.1 * @deprecated as of 3.4 replaced by - * {@link org.apache.commons.math3.analysis.interpolation.PiecewiseBicubicSplineInterpolatingFunction} + * {@link org.apache.commons.math4.analysis.interpolation.PiecewiseBicubicSplineInterpolatingFunction} */ @Deprecated public class BicubicSplineInterpolatingFunction http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolator.java index 09acd07..53e726f 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/BicubicSplineInterpolator.java @@ -14,22 +14,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.polynomials.PolynomialSplineFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.util.MathArrays; /** * Generates a bicubic interpolating function. Due to numerical accuracy issues this should not * be used. * * @since 2.2 - * @deprecated as of 3.4 replaced by {@link org.apache.commons.math3.analysis.interpolation.PiecewiseBicubicSplineInterpolator} + * @deprecated as of 3.4 replaced by {@link org.apache.commons.math4.analysis.interpolation.PiecewiseBicubicSplineInterpolator} */ @Deprecated public class BicubicSplineInterpolator http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/BivariateGridInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/BivariateGridInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/BivariateGridInterpolator.java index 94d75ad..97ed969 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/BivariateGridInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/BivariateGridInterpolator.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.analysis.BivariateFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math4.analysis.BivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; /** * Interface representing a bivariate real interpolating function where the http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/DividedDifferenceInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/DividedDifferenceInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/DividedDifferenceInterpolator.java index e308160..7624298 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/DividedDifferenceInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/DividedDifferenceInterpolator.java @@ -14,14 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.io.Serializable; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunctionLagrangeForm; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunctionNewtonForm; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; + +import org.apache.commons.math4.analysis.polynomials.PolynomialFunctionLagrangeForm; +import org.apache.commons.math4.analysis.polynomials.PolynomialFunctionNewtonForm; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; /** * Implements the <a href=" http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/FieldHermiteInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/FieldHermiteInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/FieldHermiteInterpolator.java index 9125b83..8945aae 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/FieldHermiteInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/FieldHermiteInterpolator.java @@ -14,20 +14,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.FieldElement; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NoDataException; -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.MathArrays; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.FieldElement; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.ZeroException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.MathUtils; /** Polynomial interpolator using both sample values and sample derivatives. * <p> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/HermiteInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/HermiteInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/HermiteInterpolator.java index 15ed322..1903579 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/HermiteInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/HermiteInterpolator.java @@ -14,20 +14,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; -import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableVectorFunction; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.ZeroException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.util.CombinatoricsUtils; +import org.apache.commons.math4.analysis.differentiation.DerivativeStructure; +import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableVectorFunction; +import org.apache.commons.math4.analysis.polynomials.PolynomialFunction; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.ZeroException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.CombinatoricsUtils; /** Polynomial interpolator using both sample values and sample derivatives. * <p> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/LinearInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/LinearInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/LinearInterpolator.java index 7e0e69b..2eb19f0 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/LinearInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/LinearInterpolator.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.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; -import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math4.analysis.polynomials.PolynomialFunction; +import org.apache.commons.math4.analysis.polynomials.PolynomialSplineFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.MathArrays; /** * Implements a linear function for interpolation of real univariate functions. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/LoessInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/LoessInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/LoessInterpolator.java index 7f0788d..a362511 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/LoessInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/LoessInterpolator.java @@ -14,23 +14,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.io.Serializable; import java.util.Arrays; -import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NotFiniteNumberException; -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.MathArrays; +import org.apache.commons.math4.analysis.polynomials.PolynomialSplineFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NotFiniteNumberException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.MathUtils; /** * Implements the <a href="http://en.wikipedia.org/wiki/Local_regression"> @@ -163,7 +163,7 @@ public class LoessInterpolator * Compute an interpolating function by performing a loess fit * on the data at the original abscissae and then building a cubic spline * with a - * {@link org.apache.commons.math3.analysis.interpolation.SplineInterpolator} + * {@link org.apache.commons.math4.analysis.interpolation.SplineInterpolator} * on the resulting fit. * * @param xval the arguments for the interpolation points @@ -462,7 +462,7 @@ public class LoessInterpolator * Check that all elements of an array are finite real numbers. * * @param values Values array. - * @throws org.apache.commons.math3.exception.NotFiniteNumberException + * @throws org.apache.commons.math4.exception.NotFiniteNumberException * if one of the values is not a finite real number. */ private static void checkAllFiniteReal(final double[] values) { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolatingFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolatingFunction.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolatingFunction.java index b747841..a18cbc0 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolatingFunction.java @@ -14,21 +14,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.linear.ArrayRealVector; -import org.apache.commons.math3.linear.RealVector; -import org.apache.commons.math3.random.UnitSphereRandomVectorGenerator; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.random.UnitSphereRandomVectorGenerator; +import org.apache.commons.math4.util.FastMath; /** * Interpolating function that implements the http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolator.java index c9881ce..b267874 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/MicrosphereInterpolator.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.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.random.UnitSphereRandomVectorGenerator; +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +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.random.UnitSphereRandomVectorGenerator; /** * Interpolator that implements the algorithm described in http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/MultivariateInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/MultivariateInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/MultivariateInterpolator.java index 7d76374..97ae5b6 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/MultivariateInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/MultivariateInterpolator.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.analysis.MultivariateFunction; -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.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; /** * Interface representing a univariate real interpolating function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/NevilleInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/NevilleInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/NevilleInterpolator.java index 6b47451..ee39b7f 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/NevilleInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/NevilleInterpolator.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.io.Serializable; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunctionLagrangeForm; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.analysis.polynomials.PolynomialFunctionLagrangeForm; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; /** * Implements the <a href="http://mathworld.wolfram.com/NevillesAlgorithm.html"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolatingFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolatingFunction.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolatingFunction.java index 7dd135a..8a53453 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolatingFunction.java @@ -14,18 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; import java.util.Arrays; -import org.apache.commons.math3.analysis.BivariateFunction; -import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.InsufficientDataException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.util.MathArrays; + +import org.apache.commons.math4.analysis.BivariateFunction; +import org.apache.commons.math4.analysis.polynomials.PolynomialSplineFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.InsufficientDataException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.util.MathArrays; /** * Function that implements the http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolator.java index 826f328..bd3f620 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/PiecewiseBicubicSplineInterpolator.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.util.MathArrays; /** * Generates a piecewise-bicubic interpolating function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolator.java index e1639b2..243da0c 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolator.java @@ -14,19 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.util.Precision; -import org.apache.commons.math3.optim.nonlinear.vector.jacobian.GaussNewtonOptimizer; -import org.apache.commons.math3.fitting.PolynomialFitter; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; -import org.apache.commons.math3.optim.SimpleVectorValueChecker; +package org.apache.commons.math4.analysis.interpolation; + +import org.apache.commons.math4.analysis.polynomials.PolynomialFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.fitting.PolynomialFitter; +import org.apache.commons.math4.optim.SimpleVectorValueChecker; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.GaussNewtonOptimizer; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.Precision; /** * Generates a bicubic interpolation function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/SplineInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/SplineInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/SplineInterpolator.java index a9ca862..393281e 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/SplineInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/SplineInterpolator.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.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.analysis.polynomials.PolynomialFunction; -import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.analysis.polynomials.PolynomialFunction; +import org.apache.commons.math4.analysis.polynomials.PolynomialSplineFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.MathArrays; /** * Computes a natural (also known as "free", "unclamped") cubic spline interpolation for the data set. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunction.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunction.java index 9344d89..450a2e3 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolatingFunction.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; - -import org.apache.commons.math3.analysis.TrivariateFunction; -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.NonMonotonicSequenceException; -import org.apache.commons.math3.util.MathArrays; +package org.apache.commons.math4.analysis.interpolation; + +import org.apache.commons.math4.analysis.TrivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.util.MathArrays; /** * Function that implements the http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolator.java index 531e736..0270882 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicInterpolator.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.util.MathArrays; /** * Generates a tricubic interpolating function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolatingFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolatingFunction.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolatingFunction.java index 4260606..fa5f76c 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolatingFunction.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; - -import org.apache.commons.math3.analysis.TrivariateFunction; -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.NonMonotonicSequenceException; -import org.apache.commons.math3.util.MathArrays; +package org.apache.commons.math4.analysis.interpolation; + +import org.apache.commons.math4.analysis.TrivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.util.MathArrays; /** * Function that implements the http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolator.java index da19986..c068f74 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/TricubicSplineInterpolator.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.util.MathArrays; /** * Generates a tricubic interpolating function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/TrivariateGridInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/TrivariateGridInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/TrivariateGridInterpolator.java index ec69715..18e264d 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/TrivariateGridInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/TrivariateGridInterpolator.java @@ -14,13 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.analysis.TrivariateFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math4.analysis.TrivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; /** * Interface representing a trivariate real interpolating function where the http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariateInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariateInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariateInterpolator.java index f7a1bd1..349d22d 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariateInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariateInterpolator.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.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; /** * Interface representing a univariate real interpolating function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariatePeriodicInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariatePeriodicInterpolator.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariatePeriodicInterpolator.java index 6b788b1..88b0f55 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariatePeriodicInterpolator.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/UnivariatePeriodicInterpolator.java @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.util.MathUtils; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.MathUtils; /** * Adapter for classes implementing the {@link UnivariateInterpolator} http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/interpolation/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/interpolation/package-info.java b/src/main/java/org/apache/commons/math4/analysis/interpolation/package-info.java index b4b25dd..231da35 100644 --- a/src/main/java/org/apache/commons/math4/analysis/interpolation/package-info.java +++ b/src/main/java/org/apache/commons/math4/analysis/interpolation/package-info.java @@ -19,4 +19,4 @@ * Univariate real functions interpolation algorithms. * */ -package org.apache.commons.math3.analysis.interpolation; +package org.apache.commons.math4.analysis.interpolation; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/package-info.java b/src/main/java/org/apache/commons/math4/analysis/package-info.java index 46e0477..472dcb0 100644 --- a/src/main/java/org/apache/commons/math4/analysis/package-info.java +++ b/src/main/java/org/apache/commons/math4/analysis/package-info.java @@ -29,4 +29,4 @@ * </p> * */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunction.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunction.java index d424a88..886e2d7 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunction.java @@ -14,21 +14,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.polynomials; +package org.apache.commons.math4.analysis.polynomials; import java.io.Serializable; import java.util.Arrays; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.ParametricUnivariateFunction; -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.util.MathUtils; +import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction; +import org.apache.commons.math4.analysis.ParametricUnivariateFunction; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.differentiation.DerivativeStructure; +import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction; +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.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * Immutable representation of a real polynomial function with real coefficients. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionLagrangeForm.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionLagrangeForm.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionLagrangeForm.java index 9d812df..b499d44 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionLagrangeForm.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionLagrangeForm.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.polynomials; +package org.apache.commons.math4.analysis.polynomials; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; /** * Implements the representation of a real polynomial function in @@ -90,7 +90,7 @@ public class PolynomialFunctionLagrangeForm implements UnivariateFunction { * @return the function value. * @throws DimensionMismatchException if {@code x} and {@code y} have * different lengths. - * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException + * @throws org.apache.commons.math4.exception.NonMonotonicSequenceException * if {@code x} is not sorted in strictly increasing order. * @throws NumberIsTooSmallException if the size of {@code x} is less * than 2. @@ -198,7 +198,7 @@ public class PolynomialFunctionLagrangeForm implements UnivariateFunction { * @return the function value. * @throws DimensionMismatchException if {@code x} and {@code y} have * different lengths. - * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException + * @throws org.apache.commons.math4.exception.NonMonotonicSequenceException * if {@code x} is not sorted in strictly increasing order. * @throws NumberIsTooSmallException if the size of {@code x} is less * than 2. @@ -304,7 +304,7 @@ public class PolynomialFunctionLagrangeForm implements UnivariateFunction { * @param abort Whether to throw an exception if {@code x} is not sorted. * @throws DimensionMismatchException if the array lengths are different. * @throws NumberIsTooSmallException if the number of points is less than 2. - * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException + * @throws org.apache.commons.math4.exception.NonMonotonicSequenceException * if {@code x} is not sorted in strictly increasing order and {@code abort} * is {@code true}. * @return {@code false} if the {@code x} is not sorted in increasing order, http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionNewtonForm.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionNewtonForm.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionNewtonForm.java index fc2f1fd..a87eee8 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionNewtonForm.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialFunctionNewtonForm.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.polynomials; +package org.apache.commons.math4.analysis.polynomials; -import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; -import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -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.MathUtils; +import org.apache.commons.math4.analysis.differentiation.DerivativeStructure; +import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +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.MathUtils; /** * Implements the representation of a real polynomial function in @@ -226,7 +226,7 @@ public class PolynomialFunctionNewtonForm implements UnivariateDifferentiableFun * @throws NoDataException if any array has zero length. * @throws DimensionMismatchException if the size difference between * {@code a} and {@code c} is not equal to 1. - * @see org.apache.commons.math3.analysis.interpolation.DividedDifferenceInterpolator#computeDividedDifference(double[], + * @see org.apache.commons.math4.analysis.interpolation.DividedDifferenceInterpolator#computeDividedDifference(double[], * double[]) */ protected static void verifyInputArray(double a[], double c[]) http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java index 7b402e5..8bf1aaa 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java @@ -14,21 +14,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.polynomials; +package org.apache.commons.math4.analysis.polynomials; import java.util.Arrays; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; -import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; -import org.apache.commons.math3.exception.NonMonotonicSequenceException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -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.math4.analysis.DifferentiableUnivariateFunction; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.differentiation.DerivativeStructure; +import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NonMonotonicSequenceException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.MathArrays; /** * Represents a polynomial spline function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java index e6eccef..5416e19 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java @@ -14,16 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis.polynomials; +package org.apache.commons.math4.analysis.polynomials; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.apache.commons.math3.fraction.BigFraction; -import org.apache.commons.math3.util.CombinatoricsUtils; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.fraction.BigFraction; +import org.apache.commons.math4.util.CombinatoricsUtils; +import org.apache.commons.math4.util.FastMath; /** * A collection of static methods that operate on or return polynomials. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/polynomials/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/package-info.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/package-info.java index 85b99f7..8c8232c 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/package-info.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/package-info.java @@ -20,4 +20,4 @@ * univariate real functions. * */ -package org.apache.commons.math3.analysis.polynomials; +package org.apache.commons.math4.analysis.polynomials; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractDifferentiableUnivariateSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractDifferentiableUnivariateSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractDifferentiableUnivariateSolver.java index d0fda00..1fba119 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractDifferentiableUnivariateSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractDifferentiableUnivariateSolver.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.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.TooManyEvaluationsException; /** * Provide a default implementation for several functions useful to generic http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractPolynomialSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractPolynomialSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractPolynomialSolver.java index d641e87..ec25f98 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractPolynomialSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractPolynomialSolver.java @@ -15,9 +15,9 @@ * 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; /** * Base class for solvers. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateDifferentiableSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateDifferentiableSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateDifferentiableSolver.java index 9745e9b..50a1ac0 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateDifferentiableSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateDifferentiableSolver.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.differentiation.DerivativeStructure; -import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; -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; /** * Provide a default implementation for several functions useful to generic http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateSolver.java index 078c70f..ebc8cb3 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/AbstractUnivariateSolver.java @@ -15,9 +15,9 @@ * 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; /** * Base class for solvers. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/AllowedSolution.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/AllowedSolution.java b/src/main/java/org/apache/commons/math4/analysis/solvers/AllowedSolution.java index a02a29b..61d5c03 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/AllowedSolution.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/AllowedSolution.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.solvers; +package org.apache.commons.math4.analysis.solvers; /** The kinds of solutions that a {@link BracketedUnivariateSolver @@ -29,8 +29,8 @@ package org.apache.commons.math3.analysis.solvers; * or slightly larger than the actual root. Root-finding algorithms generally * only guarantee that the returned solution is within the requested * tolerances. In certain cases however, in particular for - * {@link org.apache.commons.math3.ode.events.EventHandler state events} of - * {@link org.apache.commons.math3.ode.ODEIntegrator ODE solvers}, it + * {@link org.apache.commons.math4.ode.events.EventHandler state events} of + * {@link org.apache.commons.math4.ode.ODEIntegrator ODE solvers}, it * may be necessary to guarantee that a solution is returned that lies on a * specific side the solution.</p> * http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java index 4fb9ecf..f74e860 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java @@ -15,16 +15,16 @@ * 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.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.util.Incrementor; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +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.util.Incrementor; +import org.apache.commons.math4.util.MathUtils; /** * Provide a default implementation for several functions useful to generic http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/BaseSecantSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BaseSecantSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BaseSecantSolver.java index 44a2173..076fe7e 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/BaseSecantSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BaseSecantSolver.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.util.FastMath; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.ConvergenceException; -import org.apache.commons.math3.exception.MathInternalError; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.ConvergenceException; +import org.apache.commons.math4.exception.MathInternalError; +import org.apache.commons.math4.util.FastMath; /** * Base class for all bracketing <em>Secant</em>-based methods for root-finding http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/BaseUnivariateSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BaseUnivariateSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BaseUnivariateSolver.java index f00590e..d5b90dc 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/BaseUnivariateSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BaseUnivariateSolver.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.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; /** @@ -133,9 +133,9 @@ public interface BaseUnivariateSolver<FUNC extends UnivariateFunction> { * @param startValue Start value to use. * @return a value where the function is zero. * @param maxEval Maximum number of evaluations. - * @throws org.apache.commons.math3.exception.MathIllegalArgumentException + * @throws org.apache.commons.math4.exception.MathIllegalArgumentException * if the arguments do not satisfy the requirements specified by the solver. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException if + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException if * the allowed number of evaluations is exceeded. */ double solve(int maxEval, FUNC f, double startValue); http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/BisectionSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BisectionSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BisectionSolver.java index 49f4057..658c2a0 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/BisectionSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BisectionSolver.java @@ -14,10 +14,10 @@ * 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.TooManyEvaluationsException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.FastMath; /** * Implements the <a href="http://mathworld.wolfram.com/Bisection.html"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/BracketedUnivariateSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BracketedUnivariateSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BracketedUnivariateSolver.java index 789fc99..60e8a25 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/BracketedUnivariateSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BracketedUnivariateSolver.java @@ -15,9 +15,9 @@ * 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; /** Interface for {@link UnivariateSolver (univariate real) root-finding * algorithms} that maintain a bracketed solution. There are several advantages @@ -59,9 +59,9 @@ public interface BracketedUnivariateSolver<FUNC extends UnivariateFunction> * @param allowedSolution The kind of solutions that the root-finding algorithm may * accept as solutions. * @return A value where the function is zero. - * @throws org.apache.commons.math3.exception.MathIllegalArgumentException + * @throws org.apache.commons.math4.exception.MathIllegalArgumentException * if the arguments do not satisfy the requirements specified by the solver. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException if + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException if * the allowed number of evaluations is exceeded. */ double solve(int maxEval, FUNC f, double min, double max, @@ -81,9 +81,9 @@ public interface BracketedUnivariateSolver<FUNC extends UnivariateFunction> * @param allowedSolution The kind of solutions that the root-finding algorithm may * accept as solutions. * @return A value where the function is zero. - * @throws org.apache.commons.math3.exception.MathIllegalArgumentException + * @throws org.apache.commons.math4.exception.MathIllegalArgumentException * if the arguments do not satisfy the requirements specified by the solver. - * @throws org.apache.commons.math3.exception.TooManyEvaluationsException if + * @throws org.apache.commons.math4.exception.TooManyEvaluationsException if * the allowed number of evaluations is exceeded. */ double solve(int maxEval, FUNC f, double min, double max, double startValue, http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/BracketingNthOrderBrentSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BracketingNthOrderBrentSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BracketingNthOrderBrentSolver.java index 4981592..4bb46d2 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/BracketingNthOrderBrentSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BracketingNthOrderBrentSolver.java @@ -14,17 +14,17 @@ * 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.math3.exception.MathInternalError; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -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.math3.util.Precision; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.MathInternalError; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.Precision; /** * 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/analysis/solvers/BrentSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BrentSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BrentSolver.java index 0cc8750..0d2afee 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/BrentSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BrentSolver.java @@ -14,14 +14,14 @@ * 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.TooManyEvaluationsException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.Precision; +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; +import org.apache.commons.math4.util.Precision; /** * This class implements the <a href="http://mathworld.wolfram.com/BrentsMethod.html"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/solvers/DifferentiableUnivariateSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/DifferentiableUnivariateSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/DifferentiableUnivariateSolver.java index b9ae158..09a1d20 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/DifferentiableUnivariateSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/DifferentiableUnivariateSolver.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.DifferentiableUnivariateFunction; +import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction; /**