http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 73cafa4..08172f4 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Alternatively you can pull it from the central Maven repositories: <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-math3</artifactId> - <version>3.4</version> + <version>3.4.1</version> </dependency> ```
http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/build.xml ---------------------------------------------------------------------- diff --git a/build.xml b/build.xml index 09177b0..8072d8e 100644 --- a/build.xml +++ b/build.xml @@ -44,13 +44,13 @@ <property name="component.name" value="commons-math"/> <!-- The primary package name of this component --> - <property name="component.package" value="org.apache.commons.math3"/> + <property name="component.package" value="org.apache.commons.math4"/> <!-- The title of this component --> <property name="component.title" value="Commons MATH"/> <!-- The current version number of this component --> - <property name="component.version" value="3.1-SNAPSHOT"/> + <property name="component.version" value="4.0-SNAPSHOT"/> <!-- The base directory for component sources --> <property name="source.home" value="src/main/java"/> @@ -203,7 +203,7 @@ <classpath refid="test.classpath"/> <!-- If test.entry is defined, run a single test, otherwise run all valid tests --> <!-- N.B. test.entry must be the full path to the test class, for example: - ant test -Dtest.entry=org.apache.commons.math3.util.FastMathTestPerformance + ant test -Dtest.entry=org.apache.commons.math4.util.FastMathTestPerformance --> <test name="${test.entry}" todir="${test.reports}" if="test.entry"/> <batchtest todir="${test.reports}" unless="test.entry"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/clirr-ignored.xml ---------------------------------------------------------------------- diff --git a/clirr-ignored.xml b/clirr-ignored.xml index 297b0de..1e90cae 100644 --- a/clirr-ignored.xml +++ b/clirr-ignored.xml @@ -19,166 +19,166 @@ <differences> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Region</className> + <className>org/apache/commons/math4/geometry/partitioning/Region</className> <differenceType>7005</differenceType> <!-- Method Argument Type changed --> - <method>org.apache.commons.math3.geometry.partitioning.Region$Location checkPoint(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.partitioning.Region$Location checkPoint(org.apache.commons.math3.geometry.Point)</to> + <method>org.apache.commons.math4.geometry.partitioning.Region$Location checkPoint(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.partitioning.Region$Location checkPoint(org.apache.commons.math4.geometry.Point)</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Region</className> + <className>org/apache/commons/math4/geometry/partitioning/Region</className> <differenceType>7012</differenceType> <!-- Method Added to Interface --> <method>boolean isFull()</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Region</className> + <className>org/apache/commons/math4/geometry/partitioning/Region</className> <differenceType>7012</differenceType> <!-- Method Added to Interface --> - <method>boolean isFull(org.apache.commons.math3.geometry.partitioning.BSPTree)</method> + <method>boolean isFull(org.apache.commons.math4.geometry.partitioning.BSPTree)</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Region</className> + <className>org/apache/commons/math4/geometry/partitioning/Region</className> <differenceType>7012</differenceType> <!-- Method Added to Interface --> - <method>org.apache.commons.math3.geometry.partitioning.BoundaryProjection projectToBoundary(org.apache.commons.math3.geometry.Point)</method> + <method>org.apache.commons.math4.geometry.partitioning.BoundaryProjection projectToBoundary(org.apache.commons.math4.geometry.Point)</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Region</className> + <className>org/apache/commons/math4/geometry/partitioning/Region</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector getBarycenter()</method> - <to>org.apache.commons.math3.geometry.Point</to> + <method>org.apache.commons.math4.geometry.Vector getBarycenter()</method> + <to>org.apache.commons.math4.geometry.Point</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Hyperplane</className> + <className>org/apache/commons/math4/geometry/partitioning/Hyperplane</className> <differenceType>7012</differenceType> <!-- Method Added to Interface --> <method>double getTolerance()</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Hyperplane</className> + <className>org/apache/commons/math4/geometry/partitioning/Hyperplane</className> <differenceType>7012</differenceType> <!-- Method Added to Interface --> - <method>org.apache.commons.math3.geometry.Point project(org.apache.commons.math3.geometry.Point)</method> + <method>org.apache.commons.math4.geometry.Point project(org.apache.commons.math4.geometry.Point)</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Hyperplane</className> + <className>org/apache/commons/math4/geometry/partitioning/Hyperplane</className> <differenceType>7005</differenceType> <!-- Method Argument Type changed --> - <method>double getOffset(org.apache.commons.math3.geometry.Vector)</method> - <to>double getOffset(org.apache.commons.math3.geometry.Point)</to> + <method>double getOffset(org.apache.commons.math4.geometry.Vector)</method> + <to>double getOffset(org.apache.commons.math4.geometry.Point)</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Embedding</className> + <className>org/apache/commons/math4/geometry/partitioning/Embedding</className> <differenceType>7005</differenceType> <!-- Method Argument Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Point)</to> + <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Point)</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Embedding</className> + <className>org/apache/commons/math4/geometry/partitioning/Embedding</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.Point</to> + <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.Point</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Embedding</className> + <className>org/apache/commons/math4/geometry/partitioning/Embedding</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSubSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.Point</to> + <method>org.apache.commons.math4.geometry.Vector toSubSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.Point</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Transform</className> + <className>org/apache/commons/math4/geometry/partitioning/Transform</className> <differenceType>7005</differenceType> <!-- Method Argument Type changed --> - <method>org.apache.commons.math3.geometry.Vector apply(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.Vector apply(org.apache.commons.math3.geometry.Point)</to> + <method>org.apache.commons.math4.geometry.Vector apply(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.Vector apply(org.apache.commons.math4.geometry.Point)</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/Transform</className> + <className>org/apache/commons/math4/geometry/partitioning/Transform</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector apply(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.Point</to> + <method>org.apache.commons.math4.geometry.Vector apply(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.Point</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/AbstractRegion</className> + <className>org/apache/commons/math4/geometry/partitioning/AbstractRegion</className> <differenceType>7005</differenceType> <!-- Method Argument Type changed --> - <method>AbstractRegion(org.apache.commons.math3.geometry.partitioning.BSPTree)</method> + <method>AbstractRegion(org.apache.commons.math4.geometry.partitioning.BSPTree)</method> <to>AbstractRegion(double)</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/AbstractRegion</className> + <className>org/apache/commons/math4/geometry/partitioning/AbstractRegion</className> <differenceType>7004</differenceType> <!-- Method Argument Count Changed --> <method>AbstractRegion(java.util.Collection)</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/AbstractRegion</className> + <className>org/apache/commons/math4/geometry/partitioning/AbstractRegion</className> <differenceType>7004</differenceType> <!-- Method Argument Count Changed --> <method>AbstractRegion()</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/AbstractRegion</className> + <className>org/apache/commons/math4/geometry/partitioning/AbstractRegion</className> <differenceType>7004</differenceType> <!-- Method Argument Count Changed --> - <method>AbstractRegion(org.apache.commons.math3.geometry.partitioning.Hyperplane[])</method> + <method>AbstractRegion(org.apache.commons.math4.geometry.partitioning.Hyperplane[])</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/AbstractRegion</className> + <className>org/apache/commons/math4/geometry/partitioning/AbstractRegion</className> <differenceType>7009</differenceType> <!-- Method is now Less Accessible --> - <method>AbstractRegion(org.apache.commons.math3.geometry.partitioning.Hyperplane[])</method> + <method>AbstractRegion(org.apache.commons.math4.geometry.partitioning.Hyperplane[])</method> </difference> <difference> - <className>org/apache/commons/math3/geometry/partitioning/AbstractRegion</className> + <className>org/apache/commons/math4/geometry/partitioning/AbstractRegion</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector getBarycenter()</method> - <to>org.apache.commons.math3.geometry.Point</to> + <method>org.apache.commons.math4.geometry.Vector getBarycenter()</method> + <to>org.apache.commons.math4.geometry.Point</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/threed/Plane</className> + <className>org/apache/commons/math4/geometry/euclidean/threed/Plane</className> <differenceType>7005</differenceType> <!-- Method Argument Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Point)</to> + <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Point)</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/threed/Plane</className> + <className>org/apache/commons/math4/geometry/euclidean/threed/Plane</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.euclidean.threed.Vector3D</to> + <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.euclidean.threed.Vector3D</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/threed/Plane</className> + <className>org/apache/commons/math4/geometry/euclidean/threed/Plane</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSubSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.euclidean.twod.Vector2D</to> + <method>org.apache.commons.math4.geometry.Vector toSubSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.euclidean.twod.Vector2D</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/threed/Line</className> + <className>org/apache/commons/math4/geometry/euclidean/threed/Line</className> <differenceType>7005</differenceType> <!-- Method Argument Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Point)</to> + <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Point)</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/threed/Line</className> + <className>org/apache/commons/math4/geometry/euclidean/threed/Line</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.euclidean.threed.Vector3D</to> + <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.euclidean.threed.Vector3D</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/threed/Line</className> + <className>org/apache/commons/math4/geometry/euclidean/threed/Line</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSubSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.euclidean.oned.Vector1D</to> + <method>org.apache.commons.math4.geometry.Vector toSubSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.euclidean.oned.Vector1D</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/twod/Line</className> + <className>org/apache/commons/math4/geometry/euclidean/twod/Line</className> <differenceType>7005</differenceType> <!-- Method Argument Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Point)</to> + <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Point)</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/twod/Line</className> + <className>org/apache/commons/math4/geometry/euclidean/twod/Line</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.euclidean.twod.Vector2D</to> + <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.euclidean.twod.Vector2D</to> </difference> <difference> - <className>org/apache/commons/math3/geometry/euclidean/twod/Line</className> + <className>org/apache/commons/math4/geometry/euclidean/twod/Line</className> <differenceType>7006</differenceType> <!-- Method Return Type changed --> - <method>org.apache.commons.math3.geometry.Vector toSubSpace(org.apache.commons.math3.geometry.Vector)</method> - <to>org.apache.commons.math3.geometry.euclidean.oned.Vector1D</to> + <method>org.apache.commons.math4.geometry.Vector toSubSpace(org.apache.commons.math4.geometry.Vector)</method> + <to>org.apache.commons.math4.geometry.euclidean.oned.Vector1D</to> </difference> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/findbugs-exclude-filter.xml ---------------------------------------------------------------------- diff --git a/findbugs-exclude-filter.xml b/findbugs-exclude-filter.xml index b971772..6659ad5 100644 --- a/findbugs-exclude-filter.xml +++ b/findbugs-exclude-filter.xml @@ -26,12 +26,12 @@ <!-- the following equality tests are part of the reference algorithms --> <!-- which already know about limited precision of the double numbers --> <Match> - <Class name="org.apache.commons.math3.analysis.solvers.BaseSecantSolver" /> + <Class name="org.apache.commons.math4.analysis.solvers.BaseSecantSolver" /> <Method name="doSolve" params="" returns="double" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.distribution.SaddlePointExpansion" /> + <Class name="org.apache.commons.math4.distribution.SaddlePointExpansion" /> <Or> <Method name="getDeviancePart" params="double,double" returns="double" /> <Method name="getStirlingError" params="double" returns="double" /> @@ -39,91 +39,91 @@ <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.optimization.univariate.BrentOptimizer" /> + <Class name="org.apache.commons.math4.optimization.univariate.BrentOptimizer" /> <Method name="localMin" params="boolean,double,double,double,double,double" returns="double" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.optim.univariate.BrentOptimizer" /> + <Class name="org.apache.commons.math4.optim.univariate.BrentOptimizer" /> <Method name="localMin" params="boolean,double,double,double,double,double" returns="double" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.analysis.solvers.BrentSolver" /> + <Class name="org.apache.commons.math4.analysis.solvers.BrentSolver" /> <Method name="brent" params="double,double,double,double" returns="double" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.analysis.solvers.MullerSolver" /> + <Class name="org.apache.commons.math4.analysis.solvers.MullerSolver" /> <Or> <Method name="solve" params="double,double,double,double" returns="double" /> </Or> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.analysis.solvers.MullerSolver2" /> + <Class name="org.apache.commons.math4.analysis.solvers.MullerSolver2" /> <Or> <Method name="doSolve" params="" returns="double" /> </Or> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.EigenDecomposition" /> + <Class name="org.apache.commons.math4.linear.EigenDecomposition" /> <Method name="findEigenVectors" params="double[][]" returns="void" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> <Or> - <Class name="org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" /> - <Class name="org.apache.commons.math3.optimization.direct.BOBYQAOptimizer" /> + <Class name="org.apache.commons.math4.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" /> + <Class name="org.apache.commons.math4.optimization.direct.BOBYQAOptimizer" /> </Or> <Method name="altmov" params="int,double" returns="double[]" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer" /> - <Method name="doOptimize" params="" returns="org.apache.commons.math3.optim.PointValuePair" /> + <Class name="org.apache.commons.math4.optim.nonlinear.scalar.noderiv.CMAESOptimizer" /> + <Method name="doOptimize" params="" returns="org.apache.commons.math4.optim.PointValuePair" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <!-- The following equality test is intentional and needed for semantic purposes --> <Match> <Or> - <Class name="org.apache.commons.math3.geometry.euclidean.oned.Vector1D" /> - <Class name="org.apache.commons.math3.geometry.euclidean.twod.Vector2D" /> - <Class name="org.apache.commons.math3.geometry.euclidean.threed.Vector3D" /> + <Class name="org.apache.commons.math4.geometry.euclidean.oned.Vector1D" /> + <Class name="org.apache.commons.math4.geometry.euclidean.twod.Vector2D" /> + <Class name="org.apache.commons.math4.geometry.euclidean.threed.Vector3D" /> </Or> <Method name="equals" params="java.lang.Object" returns="boolean" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.optimization.linear.LinearConstraint" /> + <Class name="org.apache.commons.math4.optimization.linear.LinearConstraint" /> <Method name="equals" params="java.lang.Object" returns="boolean" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <Match> - <Class name="org.apache.commons.math3.optim.linear.LinearConstraint" /> + <Class name="org.apache.commons.math4.optim.linear.LinearConstraint" /> <Method name="equals" params="java.lang.Object" returns="boolean" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <!-- The following equality test is intentional and needed for rounding purposes --> <Match> - <Class name="org.apache.commons.math3.util.Precision" /> + <Class name="org.apache.commons.math4.util.Precision" /> <Method name="roundUnscaled" params="double,double,int" returns="double" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <!-- The following equality test is intentional for division protection --> <Match> - <Class name="org.apache.commons.math3.analysis.interpolation.LoessInterpolator" /> + <Class name="org.apache.commons.math4.analysis.interpolation.LoessInterpolator" /> <Method name="smooth" params="double[],double[]" returns="double[]" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> <!-- The following equality test is intentional for infinity detection --> <Match> - <Class name="org.apache.commons.math3.util.FastMath" /> + <Class name="org.apache.commons.math4.util.FastMath" /> <Method name="atan2" params="double,double" returns="double" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" /> </Match> @@ -134,8 +134,8 @@ --> <Match> <Or> - <Class name="org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" /> - <Class name="org.apache.commons.math3.optimization.direct.BOBYQAOptimizer" /> + <Class name="org.apache.commons.math4.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" /> + <Class name="org.apache.commons.math4.optimization.direct.BOBYQAOptimizer" /> </Or> <Or> <Method name="bobyqb" params="double[],double[]" returns="double" /> @@ -148,7 +148,7 @@ (to be removed in 4.0) --> <Match> - <Class name="org.apache.commons.math3.optimization.general.AbstractLeastSquaresOptimizer" /> + <Class name="org.apache.commons.math4.optimization.general.AbstractLeastSquaresOptimizer" /> <Or> <Field name="weightedResidualJacobian" /> <Field name="weightedResiduals" /> @@ -158,54 +158,54 @@ <!-- Spurious: Findbugs confused by final local variables --> <Match> - <Class name="org.apache.commons.math3.util.FastMath" /> + <Class name="org.apache.commons.math4.util.FastMath" /> <Method name="atan" params="double,double,boolean" returns="double" /> <Bug pattern="DLS_DEAD_LOCAL_STORE" /> </Match> <!-- the following expositions of internal representation are intentional and documented --> <Match> - <Class name="org.apache.commons.math3.stat.regression.RegressionResults"/> + <Class name="org.apache.commons.math4.stat.regression.RegressionResults"/> <Method name="<init>" params="double[],double[][],boolean,long,int,double,double,double,boolean,boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.stat.descriptive.AbstractUnivariateStatistic"/> + <Class name="org.apache.commons.math4.stat.descriptive.AbstractUnivariateStatistic"/> <Method name="getDataRef" params="" returns="double[]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.optimization.PointValuePair"/> + <Class name="org.apache.commons.math4.optimization.PointValuePair"/> <Method name="getPointRef" params="" returns="double[]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.optim.PointValuePair"/> + <Class name="org.apache.commons.math4.optim.PointValuePair"/> <Method name="getPointRef" params="" returns="double[]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.optimization.PointValuePair"/> + <Class name="org.apache.commons.math4.optimization.PointValuePair"/> <Method name="<init>" params="double[],double,boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.optim.PointValuePair"/> + <Class name="org.apache.commons.math4.optim.PointValuePair"/> <Method name="<init>" params="double[],double,boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <!-- Serialization is handled by an internal class --> <Match> <Or> - <Class name="org.apache.commons.math3.optim.PointValuePair"/> - <Class name="org.apache.commons.math3.optim.PointVectorValuePair"/> - <Class name="org.apache.commons.math3.optimization.PointValuePair"/> - <Class name="org.apache.commons.math3.optimization.PointVectorValuePair"/> + <Class name="org.apache.commons.math4.optim.PointValuePair"/> + <Class name="org.apache.commons.math4.optim.PointVectorValuePair"/> + <Class name="org.apache.commons.math4.optimization.PointValuePair"/> + <Class name="org.apache.commons.math4.optimization.PointVectorValuePair"/> </Or> <Bug pattern="SE_NO_SUITABLE_CONSTRUCTOR" /> </Match> <Match> - <Class name="org.apache.commons.math3.optimization.PointVectorValuePair"/> + <Class name="org.apache.commons.math4.optimization.PointVectorValuePair"/> <Or> <Method name="getPointRef" params="" returns="double[]" /> <Method name="getValueRef" params="" returns="double[]" /> @@ -213,7 +213,7 @@ <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.optim.PointVectorValuePair"/> + <Class name="org.apache.commons.math4.optim.PointVectorValuePair"/> <Or> <Method name="getPointRef" params="" returns="double[]" /> <Method name="getValueRef" params="" returns="double[]" /> @@ -221,22 +221,22 @@ <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.optimization.PointVectorValuePair"/> + <Class name="org.apache.commons.math4.optimization.PointVectorValuePair"/> <Method name="<init>" params="double[],double[][],boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.optim.PointVectorValuePair"/> + <Class name="org.apache.commons.math4.optim.PointVectorValuePair"/> <Method name="<init>" params="double[],double[][],boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.ode.sampling.DummyStepInterpolator"/> + <Class name="org.apache.commons.math4.ode.sampling.DummyStepInterpolator"/> <Method name="<init>" params="double[],double[],boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.ode.sampling.AbstractStepInterpolator"/> + <Class name="org.apache.commons.math4.ode.sampling.AbstractStepInterpolator"/> <Or> <Method name="getInterpolatedState" params="" returns="double[]" /> <Method name="getInterpolatedDerivatives" params="" returns="double[]" /> @@ -244,47 +244,47 @@ <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.ode.sampling.NordsieckStepInterpolator"/> - <Method name="reinitialize" params="double,double,double[],org.apache.commons.math3.linear.Array2DRowRealMatrix" returns="void" /> + <Class name="org.apache.commons.math4.ode.sampling.NordsieckStepInterpolator"/> + <Method name="reinitialize" params="double,double,double[],org.apache.commons.math4.linear.Array2DRowRealMatrix" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.ode.sampling.NordsieckStepInterpolator"/> + <Class name="org.apache.commons.math4.ode.sampling.NordsieckStepInterpolator"/> <Method name="getInterpolatedStateVariation" params="" returns="double[]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.Array2DRowRealMatrix"/> + <Class name="org.apache.commons.math4.linear.Array2DRowRealMatrix"/> <Method name="<init>" params="double[][],boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.Array2DRowRealMatrix"/> + <Class name="org.apache.commons.math4.linear.Array2DRowRealMatrix"/> <Method name="getDataRef" params="" returns="double[][]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.BlockFieldMatrix"/> - <Method name="<init>" params="int,int,org.apache.commons.math3.FieldElement[][],boolean" returns="void" /> + <Class name="org.apache.commons.math4.linear.BlockFieldMatrix"/> + <Method name="<init>" params="int,int,org.apache.commons.math4.FieldElement[][],boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.Array2DRowFieldMatrix"/> - <Method name="<init>" params="org.apache.commons.math3.Field,org.apache.commons.math3.FieldElement[][],boolean" returns="void" /> + <Class name="org.apache.commons.math4.linear.Array2DRowFieldMatrix"/> + <Method name="<init>" params="org.apache.commons.math4.Field,org.apache.commons.math4.FieldElement[][],boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.Array2DRowFieldMatrix"/> - <Method name="getDataRef" params="" returns="org.apache.commons.math3.FieldElement[][]" /> + <Class name="org.apache.commons.math4.linear.Array2DRowFieldMatrix"/> + <Method name="getDataRef" params="" returns="org.apache.commons.math4.FieldElement[][]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.BlockRealMatrix"/> + <Class name="org.apache.commons.math4.linear.BlockRealMatrix"/> <Method name="<init>" params="int,int,double[][],boolean" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.util.ResizableDoubleArray"/> + <Class name="org.apache.commons.math4.util.ResizableDoubleArray"/> <Or> <Method name="getValues" params="" returns="double[]" /> <Method name="getInternalValues" params="" returns="double[]" /> @@ -292,47 +292,47 @@ <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.ArrayRealVector"/> + <Class name="org.apache.commons.math4.linear.ArrayRealVector"/> <Method name="getDataRef" params="" returns="double[]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.ArrayFieldVector"/> - <Method name="getDataRef" params="" returns="org.apache.commons.math3.FieldElement[]" /> + <Class name="org.apache.commons.math4.linear.ArrayFieldVector"/> + <Method name="getDataRef" params="" returns="org.apache.commons.math4.FieldElement[]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> - <Class name="org.apache.commons.math3.linear.DiagonalMatrix"/> + <Class name="org.apache.commons.math4.linear.DiagonalMatrix"/> <Method name="getDataRef" params="" returns="double[]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <!-- The equals method for RealVector intentionally throws an exception --> <Match> - <Class name="org.apache.commons.math3.linear.RealVector"/> + <Class name="org.apache.commons.math4.linear.RealVector"/> <Bug pattern="EQ_UNUSUAL" /> </Match> <Match> - <Class name="org.apache.commons.math3.stat.clustering.EuclideanIntegerPoint"/> + <Class name="org.apache.commons.math4.stat.clustering.EuclideanIntegerPoint"/> <Method name="<init>" params="int[]" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <Class name="org.apache.commons.math3.stat.clustering.EuclideanIntegerPoint"/> + <Class name="org.apache.commons.math4.stat.clustering.EuclideanIntegerPoint"/> <Method name="getPoint" params="" returns="int[]" /> <Bug pattern="EI_EXPOSE_REP" /> </Match> <Match> <Or> - <Class name="org.apache.commons.math3.stat.clustering.EuclideanDoublePoint"/> - <Class name="org.apache.commons.math3.ml.clustering.DoublePoint"/> + <Class name="org.apache.commons.math4.stat.clustering.EuclideanDoublePoint"/> + <Class name="org.apache.commons.math4.ml.clustering.DoublePoint"/> </Or> <Method name="<init>" params="double[]" returns="void" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> <Or> - <Class name="org.apache.commons.math3.stat.clustering.EuclideanDoublePoint"/> - <Class name="org.apache.commons.math3.ml.clustering.DoublePoint"/> + <Class name="org.apache.commons.math4.stat.clustering.EuclideanDoublePoint"/> + <Class name="org.apache.commons.math4.ml.clustering.DoublePoint"/> </Or> <Method name="getPoint" params="" returns="double[]" /> <Bug pattern="EI_EXPOSE_REP" /> @@ -340,44 +340,44 @@ <!-- The following cases are intentional unit tests for null parameters --> <Match> - <Class name="org.apache.commons.math3.stat.StatUtilsTest" /> + <Class name="org.apache.commons.math4.stat.StatUtilsTest" /> <Method name="testPercentile" params="" returns="void" /> <Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL" /> </Match> <Match> - <Class name="org.apache.commons.math3.analysis.UnivariateRealSolverFactoryImplTest" /> + <Class name="org.apache.commons.math4.analysis.UnivariateRealSolverFactoryImplTest" /> <Method name="testNewNewtonSolverNull" params="" returns="void" /> <Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" /> </Match> <Match> - <Class name="org.apache.commons.math3.stat.regression.OLSMultipleLinearRegressionTest" /> + <Class name="org.apache.commons.math4.stat.regression.OLSMultipleLinearRegressionTest" /> <Method name="cannotAddNullYSampleData" params="" returns="void" /> <Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" /> </Match> <!-- IntDoublePair intentionally implements Comparable inconsistently with equals --> <Match> - <Class name="org.apache.commons.math3.stat.ranking.NaturalRanking$IntDoublePair" /> + <Class name="org.apache.commons.math4.stat.ranking.NaturalRanking$IntDoublePair" /> <Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS" /> </Match> <!-- False positive warning from findbugs, the integer division result cast to double is correct here --> <Match> - <Class name="org.apache.commons.math3.stat.inference.MannWhitneyUTest" /> + <Class name="org.apache.commons.math4.stat.inference.MannWhitneyUTest" /> <Method name="mannWhitneyU" params="double[],double[]" returns="double" /> <Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE" /> </Match> <!-- The following switch fall-through is intended. --> <Match> - <Class name="org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D" /> + <Class name="org.apache.commons.math4.ml.neuralnet.twod.NeuronSquareMesh2D" /> <Method name="createLinks" /> <Bug pattern="SF_SWITCH_FALLTHROUGH" /> </Match> <!-- Integer division results cast to double are intentional. --> <Match> - <Class name="org.apache.commons.math3.special.BesselJ" /> + <Class name="org.apache.commons.math4.special.BesselJ" /> <Method name="rjBesl" /> <Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE" /> </Match> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index fbc5508..a36e84e 100644 --- a/pom.xml +++ b/pom.xml @@ -23,8 +23,8 @@ </parent> <modelVersion>4.0.0</modelVersion> <groupId>org.apache.commons</groupId> - <artifactId>commons-math3</artifactId> - <version>3.5-SNAPSHOT</version> + <artifactId>commons-math4</artifactId> + <version>4.0-SNAPSHOT</version> <name>Apache Commons Math</name> <inceptionYear>2003</inceptionYear> @@ -359,6 +359,8 @@ <!-- Do not change: "math" is the name of the component even if the name of the base package evolves with major release numbers (see "commons.osgi.symbolicName", below). --> + <!-- TODO: when releasing 4.0, the properties below need to be updated, and + the 3.x release artifacts need to be put int commons.release.3 --> <commons.componentid>math</commons.componentid> <!-- This value must reflect the current name of the base package. --> <commons.osgi.symbolicName>org.apache.commons.math3</commons.osgi.symbolicName> @@ -484,7 +486,7 @@ <attribute name="X-Compile-Target-JDK" value="${maven.compiler.target}" /> </manifest> <fileset dir="${project.build.directory}/test-classes" - includes="org/apache/commons/math3/PerfTestUtils*" /> + includes="org/apache/commons/math4/PerfTestUtils*" /> </jar> </target> </configuration> @@ -494,7 +496,7 @@ </execution> </executions> </plugin> - <!-- Attaches the commons-math3 tools JAR to the Maven lifecycle + <!-- Attaches the commons-math4 tools JAR to the Maven lifecycle to ensure they will be signed and deployed as normal --> <plugin> <groupId>org.codehaus.mojo</groupId> @@ -589,21 +591,21 @@ <!-- the following are test data files with specific syntax that cannot include Apache header (and the contained data is public, it is not owned by Apache) --> - <exclude>src/test/resources/org/apache/commons/math3/random/testData.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/random/emptyFile.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/PiDigits.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/NumAcc3.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/Lew.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/NumAcc2.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/NumAcc1.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/Lottery.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/NumAcc4.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/Michelso.txt</exclude> - <exclude>src/test/resources/org/apache/commons/math3/stat/data/Mavro.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/random/testData.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/random/emptyFile.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/PiDigits.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc3.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/Lew.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc2.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc1.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/Lottery.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/NumAcc4.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/Michelso.txt</exclude> + <exclude>src/test/resources/org/apache/commons/math4/stat/data/Mavro.txt</exclude> <!-- direction numbers for Sobol generation from Frances Y. Kuo and Stephen Joe, available under a BSD-style license (see NOTICE.txt and LICENSE.txt) --> - <exclude>src/main/resources/assets/org/apache/commons/math3/random/new-joe-kuo-6.1000</exclude> + <exclude>src/main/resources/assets/org/apache/commons/math4/random/new-joe-kuo-6.1000</exclude> <!-- text file explaining reference to a public domain image --> <exclude>src/userguide/resources/references.txt</exclude> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 3309edf..621aab5 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -53,7 +53,7 @@ If the output is not quite correct, check for invisible trailing spaces! <release version="TBD" date="TBD" description="TBD"> </release> - <release version="3.5" date="2015-01-11" description=""> + <release version="4.0" date="XXXX-XX-XX" description=""> <action dev="sebb" type="add" issue="MATH-1198"> Simplified "FastMath#exp(double)" in order to avoid a potential Java 1.5 JIT bug when calling with negative infinity as argument. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/Field.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/Field.java b/src/main/java/org/apache/commons/math4/Field.java index 618536c..ecc9342 100644 --- a/src/main/java/org/apache/commons/math4/Field.java +++ b/src/main/java/org/apache/commons/math4/Field.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3; +package org.apache.commons.math4; /** * Interface representing a <a href="http://mathworld.wolfram.com/Field.html">field</a>. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/FieldElement.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/FieldElement.java b/src/main/java/org/apache/commons/math4/FieldElement.java index 8a7533a..7732c00 100644 --- a/src/main/java/org/apache/commons/math4/FieldElement.java +++ b/src/main/java/org/apache/commons/math4/FieldElement.java @@ -14,10 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3; +package org.apache.commons.math4; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NullArgumentException; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/RealFieldElement.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/RealFieldElement.java b/src/main/java/org/apache/commons/math4/RealFieldElement.java index 0e54ba1..aa171f9 100644 --- a/src/main/java/org/apache/commons/math4/RealFieldElement.java +++ b/src/main/java/org/apache/commons/math4/RealFieldElement.java @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3; +package org.apache.commons.math4; -import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.DimensionMismatchException; /** * Interface representing a <a href="http://mathworld.wolfram.com/RealNumber.html">real</a> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/BivariateFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/BivariateFunction.java b/src/main/java/org/apache/commons/math4/analysis/BivariateFunction.java index d8aaca5..49ca210 100644 --- a/src/main/java/org/apache/commons/math4/analysis/BivariateFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/BivariateFunction.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a bivariate real function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateFunction.java b/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateFunction.java index c7fad48..8ca1ab9 100644 --- a/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateFunction.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * Extension of {@link MultivariateFunction} representing a differentiable * multivariate real function. * @since 2.0 - * @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.MultivariateDifferentiableFunction} + * @deprecated as of 3.1 replaced by {@link org.apache.commons.math4.analysis.differentiation.MultivariateDifferentiableFunction} */ @Deprecated public interface DifferentiableMultivariateFunction extends MultivariateFunction { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateVectorFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateVectorFunction.java b/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateVectorFunction.java index 5bfa97b..7cc7688 100644 --- a/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateVectorFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/DifferentiableMultivariateVectorFunction.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * Extension of {@link MultivariateVectorFunction} representing a differentiable * multivariate vectorial function. * @since 2.0 - * @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.MultivariateDifferentiableVectorFunction} + * @deprecated as of 3.1 replaced by {@link org.apache.commons.math4.analysis.differentiation.MultivariateDifferentiableVectorFunction} */ @Deprecated public interface DifferentiableMultivariateVectorFunction http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateFunction.java b/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateFunction.java index db0314c..a59f23f 100644 --- a/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateFunction.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; +package org.apache.commons.math4.analysis; /** * Extension of {@link UnivariateFunction} representing a differentiable univariate real function. * - * @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction} + * @deprecated as of 3.1 replaced by {@link org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction} */ @Deprecated public interface DifferentiableUnivariateFunction http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateMatrixFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateMatrixFunction.java b/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateMatrixFunction.java index 375fcfd..7a6c688 100644 --- a/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateMatrixFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateMatrixFunction.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; +package org.apache.commons.math4.analysis; /** * Extension of {@link UnivariateMatrixFunction} representing a differentiable univariate matrix function. * * @since 2.0 - * @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableMatrixFunction} + * @deprecated as of 3.1 replaced by {@link org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableMatrixFunction} */ @Deprecated public interface DifferentiableUnivariateMatrixFunction http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateVectorFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateVectorFunction.java b/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateVectorFunction.java index b5ab198..9b9a371 100644 --- a/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateVectorFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/DifferentiableUnivariateVectorFunction.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; +package org.apache.commons.math4.analysis; /** * Extension of {@link UnivariateVectorFunction} representing a differentiable univariate vectorial function. * * @since 2.0 - * @deprecated as of 3.1 replaced by {@link org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableVectorFunction} + * @deprecated as of 3.1 replaced by {@link org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableVectorFunction} */ @Deprecated public interface DifferentiableUnivariateVectorFunction http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java b/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java index 2bc1c48..ecb816d 100644 --- a/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java +++ b/src/main/java/org/apache/commons/math4/analysis/FunctionUtils.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; - -import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; -import org.apache.commons.math3.analysis.differentiation.MultivariateDifferentiableFunction; -import org.apache.commons.math3.analysis.differentiation.MultivariateDifferentiableVectorFunction; -import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; -import org.apache.commons.math3.analysis.function.Identity; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.util.LocalizedFormats; +package org.apache.commons.math4.analysis; + +import org.apache.commons.math4.analysis.differentiation.DerivativeStructure; +import org.apache.commons.math4.analysis.differentiation.MultivariateDifferentiableFunction; +import org.apache.commons.math4.analysis.differentiation.MultivariateDifferentiableVectorFunction; +import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction; +import org.apache.commons.math4.analysis.function.Identity; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; /** * Utilities for manipulating function objects. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/MultivariateFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/MultivariateFunction.java b/src/main/java/org/apache/commons/math4/analysis/MultivariateFunction.java index f86ba2a..e694cdc 100644 --- a/src/main/java/org/apache/commons/math4/analysis/MultivariateFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/MultivariateFunction.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a multivariate real function. @@ -29,9 +29,9 @@ public interface MultivariateFunction { * * @param point Point at which the function must be evaluated. * @return the function value for the given point. - * @throws org.apache.commons.math3.exception.DimensionMismatchException + * @throws org.apache.commons.math4.exception.DimensionMismatchException * if the parameter's dimension is wrong for the function being evaluated. - * @throws org.apache.commons.math3.exception.MathIllegalArgumentException + * @throws org.apache.commons.math4.exception.MathIllegalArgumentException * when the activated method itself can ascertain that preconditions, * specified in the API expressed at the level of the activated method, * have been violated. In the vast majority of cases where Commons Math http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/MultivariateMatrixFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/MultivariateMatrixFunction.java b/src/main/java/org/apache/commons/math4/analysis/MultivariateMatrixFunction.java index f064904..1f136d7 100644 --- a/src/main/java/org/apache/commons/math4/analysis/MultivariateMatrixFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/MultivariateMatrixFunction.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a multivariate matrix function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/MultivariateVectorFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/MultivariateVectorFunction.java b/src/main/java/org/apache/commons/math4/analysis/MultivariateVectorFunction.java index 26a69f2..14d62da 100644 --- a/src/main/java/org/apache/commons/math4/analysis/MultivariateVectorFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/MultivariateVectorFunction.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a multivariate vectorial function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/ParametricUnivariateFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/ParametricUnivariateFunction.java b/src/main/java/org/apache/commons/math4/analysis/ParametricUnivariateFunction.java index 616b35d..86dc10b 100644 --- a/src/main/java/org/apache/commons/math4/analysis/ParametricUnivariateFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/ParametricUnivariateFunction.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a real function that depends on one independent http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/TrivariateFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/TrivariateFunction.java b/src/main/java/org/apache/commons/math4/analysis/TrivariateFunction.java index 30ba767..b3934a5 100644 --- a/src/main/java/org/apache/commons/math4/analysis/TrivariateFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/TrivariateFunction.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a trivariate real function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/UnivariateFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/UnivariateFunction.java b/src/main/java/org/apache/commons/math4/analysis/UnivariateFunction.java index e99f1f3..3073d09 100644 --- a/src/main/java/org/apache/commons/math4/analysis/UnivariateFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/UnivariateFunction.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a univariate real function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/UnivariateMatrixFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/UnivariateMatrixFunction.java b/src/main/java/org/apache/commons/math4/analysis/UnivariateMatrixFunction.java index 0c4b1a9..a364cb7 100644 --- a/src/main/java/org/apache/commons/math4/analysis/UnivariateMatrixFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/UnivariateMatrixFunction.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a univariate matrix function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/UnivariateVectorFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/UnivariateVectorFunction.java b/src/main/java/org/apache/commons/math4/analysis/UnivariateVectorFunction.java index 19a9e5d..c836ecb 100644 --- a/src/main/java/org/apache/commons/math4/analysis/UnivariateVectorFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/UnivariateVectorFunction.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.analysis; +package org.apache.commons.math4.analysis; /** * An interface representing a univariate vectorial function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.java index 45a3331..979a6c0 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/DSCompiler.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.concurrent.atomic.AtomicReference; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.MathInternalError; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.util.CombinatoricsUtils; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.MathInternalError; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.util.CombinatoricsUtils; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; /** Class holding "compiled" computation rules for derivative structures. * <p>This class implements the computation rules described in Dan Kalman's paper <a http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java index 7c45d18..a179eba 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/DerivativeStructure.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; import java.io.Serializable; -import org.apache.commons.math3.RealFieldElement; -import org.apache.commons.math3.Field; -import org.apache.commons.math3.FieldElement; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.Field; +import org.apache.commons.math4.FieldElement; +import org.apache.commons.math4.RealFieldElement; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.MathUtils; /** Class representing both the value and the differentials of a function. * <p>This class is the workhorse of the differentiation package.</p> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java index ea92809..42e01ac 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/FiniteDifferencesDifferentiator.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; import java.io.Serializable; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.UnivariateMatrixFunction; -import org.apache.commons.math3.analysis.UnivariateVectorFunction; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.UnivariateMatrixFunction; +import org.apache.commons.math4.analysis.UnivariateVectorFunction; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.util.FastMath; /** Univariate functions differentiator using finite differences. * <p> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java index 25aa7c7..0b75ae8 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/GradientFunction.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; /** Class representing the gradient of a multivariate function. * <p> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java index 0de47db..f7b8082 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/JacobianFunction.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.MultivariateMatrixFunction; +import org.apache.commons.math4.analysis.MultivariateMatrixFunction; /** Class representing the Jacobian of a multivariate vector function. * <p> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableFunction.java index 443671e..068e053 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableFunction.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.exception.MathIllegalArgumentException; /** * Extension of {@link MultivariateFunction} representing a http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableVectorFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableVectorFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableVectorFunction.java index a5987ae..fe2bd15 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableVectorFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/MultivariateDifferentiableVectorFunction.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.exception.MathIllegalArgumentException; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java index 59fcea5..adff345 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/SparseGradient.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; import java.io.Serializable; import java.util.Collections; import java.util.HashMap; import java.util.Map; -import org.apache.commons.math3.Field; -import org.apache.commons.math3.FieldElement; -import org.apache.commons.math3.RealFieldElement; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.util.MathUtils; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.math4.Field; +import org.apache.commons.math4.FieldElement; +import org.apache.commons.math4.RealFieldElement; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.MathUtils; +import org.apache.commons.math4.util.Precision; /** * First derivative computation with large number of variables. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableFunction.java index 097b4e0..7e651e6 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableFunction.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; /** Interface for univariate functions derivatives. * <p>This interface represents a simple function which computes http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableMatrixFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableMatrixFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableMatrixFunction.java index b31771b..26e5834 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableMatrixFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableMatrixFunction.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.UnivariateMatrixFunction; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.analysis.UnivariateMatrixFunction; +import org.apache.commons.math4.exception.MathIllegalArgumentException; /** * Extension of {@link UnivariateMatrixFunction} representing a univariate differentiable matrix function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableVectorFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableVectorFunction.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableVectorFunction.java index 7e79eef..c4c2a0f 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableVectorFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateDifferentiableVectorFunction.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.UnivariateVectorFunction; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.analysis.UnivariateVectorFunction; +import org.apache.commons.math4.exception.MathIllegalArgumentException; /** * Extension of {@link UnivariateVectorFunction} representing a univariate differentiable vectorial function. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateFunctionDifferentiator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateFunctionDifferentiator.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateFunctionDifferentiator.java index f19ce20..b4ec86e 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateFunctionDifferentiator.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateFunctionDifferentiator.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.UnivariateFunction; /** Interface defining the function differentiation operation. * @since 3.1 http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.java index bc0ccf3..2c42ee5 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.UnivariateMatrixFunction; +import org.apache.commons.math4.analysis.UnivariateMatrixFunction; /** Interface defining the function differentiation operation. * @since 3.1 http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateVectorFunctionDifferentiator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateVectorFunctionDifferentiator.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateVectorFunctionDifferentiator.java index 5500c50..e197525 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateVectorFunctionDifferentiator.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/UnivariateVectorFunctionDifferentiator.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.differentiation; +package org.apache.commons.math4.analysis.differentiation; -import org.apache.commons.math3.analysis.UnivariateVectorFunction; +import org.apache.commons.math4.analysis.UnivariateVectorFunction; /** Interface defining the function differentiation operation. * @since 3.1 http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/differentiation/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/differentiation/package-info.java b/src/main/java/org/apache/commons/math4/analysis/differentiation/package-info.java index b828981..6b5f68c 100644 --- a/src/main/java/org/apache/commons/math4/analysis/differentiation/package-info.java +++ b/src/main/java/org/apache/commons/math4/analysis/differentiation/package-info.java @@ -19,19 +19,19 @@ * <p> * This package holds the main interfaces and basic building block classes * dealing with differentiation. - * The core class is {@link org.apache.commons.math3.analysis.differentiation.DerivativeStructure + * The core class is {@link org.apache.commons.math4.analysis.differentiation.DerivativeStructure * DerivativeStructure} which holds the value and the differentials of a function. This class * handles some arbitrary number of free parameters and arbitrary differentiation order. It is used * both as the input and the output type for the {@link - * org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction + * org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction * UnivariateDifferentiableFunction} interface. Any differentiable function should implement this * interface. * </p> * <p> - * The {@link org.apache.commons.math3.analysis.differentiation.UnivariateFunctionDifferentiator + * The {@link org.apache.commons.math4.analysis.differentiation.UnivariateFunctionDifferentiator * UnivariateFunctionDifferentiator} interface defines a way to differentiate a simple {@link - * org.apache.commons.math3.analysis.UnivariateFunction UnivariateFunction} and get a {@link - * org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction + * org.apache.commons.math4.analysis.UnivariateFunction UnivariateFunction} and get a {@link + * org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction * UnivariateDifferentiableFunction}. * </p> * <p> @@ -39,4 +39,4 @@ * </p> * */ -package org.apache.commons.math3.analysis.differentiation; +package org.apache.commons.math4.analysis.differentiation; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/analysis/function/Abs.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/function/Abs.java b/src/main/java/org/apache/commons/math4/analysis/function/Abs.java index 9db01fd..6f19b54 100644 --- a/src/main/java/org/apache/commons/math4/analysis/function/Abs.java +++ b/src/main/java/org/apache/commons/math4/analysis/function/Abs.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math3.analysis.function; +package org.apache.commons.math4.analysis.function; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.util.FastMath; /** * Absolute value function.