Update for next development iteration: commons-math4

This commit is contained in:
Thomas Neidhart 2015-02-16 23:37:23 +01:00
parent a7b4803ffe
commit e4e1ac23c7
1555 changed files with 9996 additions and 8786 deletions

View File

@ -62,7 +62,7 @@ Alternatively you can pull it from the central Maven repositories:
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId> <artifactId>commons-math3</artifactId>
<version>3.4</version> <version>3.4.1</version>
</dependency> </dependency>
``` ```

View File

@ -44,13 +44,13 @@
<property name="component.name" value="commons-math"/> <property name="component.name" value="commons-math"/>
<!-- The primary package name of this component --> <!-- 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 --> <!-- The title of this component -->
<property name="component.title" value="Commons MATH"/> <property name="component.title" value="Commons MATH"/>
<!-- The current version number of this component --> <!-- 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 --> <!-- The base directory for component sources -->
<property name="source.home" value="src/main/java"/> <property name="source.home" value="src/main/java"/>
@ -203,7 +203,7 @@
<classpath refid="test.classpath"/> <classpath refid="test.classpath"/>
<!-- If test.entry is defined, run a single test, otherwise run all valid tests --> <!-- 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: <!-- 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"/> <test name="${test.entry}" todir="${test.reports}" if="test.entry"/>
<batchtest todir="${test.reports}" unless="test.entry"> <batchtest todir="${test.reports}" unless="test.entry">

View File

@ -19,166 +19,166 @@
<differences> <differences>
<difference> <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 --> <differenceType>7005</differenceType> <!-- Method Argument Type changed -->
<method>org.apache.commons.math3.geometry.partitioning.Region$Location checkPoint(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.partitioning.Region$Location checkPoint(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.partitioning.Region$Location checkPoint(org.apache.commons.math3.geometry.Point)</to> <to>org.apache.commons.math4.geometry.partitioning.Region$Location checkPoint(org.apache.commons.math4.geometry.Point)</to>
</difference> </difference>
<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 --> <differenceType>7012</differenceType> <!-- Method Added to Interface -->
<method>boolean isFull()</method> <method>boolean isFull()</method>
</difference> </difference>
<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 --> <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>
<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 --> <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>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector getBarycenter()</method> <method>org.apache.commons.math4.geometry.Vector getBarycenter()</method>
<to>org.apache.commons.math3.geometry.Point</to> <to>org.apache.commons.math4.geometry.Point</to>
</difference> </difference>
<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 --> <differenceType>7012</differenceType> <!-- Method Added to Interface -->
<method>double getTolerance()</method> <method>double getTolerance()</method>
</difference> </difference>
<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 --> <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>
<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 --> <differenceType>7005</differenceType> <!-- Method Argument Type changed -->
<method>double getOffset(org.apache.commons.math3.geometry.Vector)</method> <method>double getOffset(org.apache.commons.math4.geometry.Vector)</method>
<to>double getOffset(org.apache.commons.math3.geometry.Point)</to> <to>double getOffset(org.apache.commons.math4.geometry.Point)</to>
</difference> </difference>
<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 --> <differenceType>7005</differenceType> <!-- Method Argument Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Point)</to> <to>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Point)</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.Point</to> <to>org.apache.commons.math4.geometry.Point</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSubSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSubSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.Point</to> <to>org.apache.commons.math4.geometry.Point</to>
</difference> </difference>
<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 --> <differenceType>7005</differenceType> <!-- Method Argument Type changed -->
<method>org.apache.commons.math3.geometry.Vector apply(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector apply(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.Vector apply(org.apache.commons.math3.geometry.Point)</to> <to>org.apache.commons.math4.geometry.Vector apply(org.apache.commons.math4.geometry.Point)</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector apply(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector apply(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.Point</to> <to>org.apache.commons.math4.geometry.Point</to>
</difference> </difference>
<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 --> <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> <to>AbstractRegion(double)</to>
</difference> </difference>
<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 --> <differenceType>7004</differenceType> <!-- Method Argument Count Changed -->
<method>AbstractRegion(java.util.Collection)</method> <method>AbstractRegion(java.util.Collection)</method>
</difference> </difference>
<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 --> <differenceType>7004</differenceType> <!-- Method Argument Count Changed -->
<method>AbstractRegion()</method> <method>AbstractRegion()</method>
</difference> </difference>
<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 --> <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>
<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 --> <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>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector getBarycenter()</method> <method>org.apache.commons.math4.geometry.Vector getBarycenter()</method>
<to>org.apache.commons.math3.geometry.Point</to> <to>org.apache.commons.math4.geometry.Point</to>
</difference> </difference>
<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 --> <differenceType>7005</differenceType> <!-- Method Argument Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Point)</to> <to>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Point)</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.euclidean.threed.Vector3D</to> <to>org.apache.commons.math4.geometry.euclidean.threed.Vector3D</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSubSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSubSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.euclidean.twod.Vector2D</to> <to>org.apache.commons.math4.geometry.euclidean.twod.Vector2D</to>
</difference> </difference>
<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 --> <differenceType>7005</differenceType> <!-- Method Argument Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Point)</to> <to>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Point)</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.euclidean.threed.Vector3D</to> <to>org.apache.commons.math4.geometry.euclidean.threed.Vector3D</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSubSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSubSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.euclidean.oned.Vector1D</to> <to>org.apache.commons.math4.geometry.euclidean.oned.Vector1D</to>
</difference> </difference>
<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 --> <differenceType>7005</differenceType> <!-- Method Argument Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Point)</to> <to>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Point)</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.euclidean.twod.Vector2D</to> <to>org.apache.commons.math4.geometry.euclidean.twod.Vector2D</to>
</difference> </difference>
<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 --> <differenceType>7006</differenceType> <!-- Method Return Type changed -->
<method>org.apache.commons.math3.geometry.Vector toSubSpace(org.apache.commons.math3.geometry.Vector)</method> <method>org.apache.commons.math4.geometry.Vector toSubSpace(org.apache.commons.math4.geometry.Vector)</method>
<to>org.apache.commons.math3.geometry.euclidean.oned.Vector1D</to> <to>org.apache.commons.math4.geometry.euclidean.oned.Vector1D</to>
</difference> </difference>

View File

@ -26,12 +26,12 @@
<!-- the following equality tests are part of the reference algorithms --> <!-- the following equality tests are part of the reference algorithms -->
<!-- which already know about limited precision of the double numbers --> <!-- which already know about limited precision of the double numbers -->
<Match> <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" /> <Method name="doSolve" params="" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.distribution.SaddlePointExpansion" /> <Class name="org.apache.commons.math4.distribution.SaddlePointExpansion" />
<Or> <Or>
<Method name="getDeviancePart" params="double,double" returns="double" /> <Method name="getDeviancePart" params="double,double" returns="double" />
<Method name="getStirlingError" params="double" returns="double" /> <Method name="getStirlingError" params="double" returns="double" />
@ -39,91 +39,91 @@
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<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" /> <Method name="localMin" params="boolean,double,double,double,double,double" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<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" /> <Method name="localMin" params="boolean,double,double,double,double,double" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<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" /> <Method name="brent" params="double,double,double,double" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.analysis.solvers.MullerSolver" /> <Class name="org.apache.commons.math4.analysis.solvers.MullerSolver" />
<Or> <Or>
<Method name="solve" params="double,double,double,double" returns="double" /> <Method name="solve" params="double,double,double,double" returns="double" />
</Or> </Or>
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.analysis.solvers.MullerSolver2" /> <Class name="org.apache.commons.math4.analysis.solvers.MullerSolver2" />
<Or> <Or>
<Method name="doSolve" params="" returns="double" /> <Method name="doSolve" params="" returns="double" />
</Or> </Or>
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<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" /> <Method name="findEigenVectors" params="double[][]" returns="void" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<Match> <Match>
<Or> <Or>
<Class name="org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" /> <Class name="org.apache.commons.math4.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" />
<Class name="org.apache.commons.math3.optimization.direct.BOBYQAOptimizer" /> <Class name="org.apache.commons.math4.optimization.direct.BOBYQAOptimizer" />
</Or> </Or>
<Method name="altmov" params="int,double" returns="double[]" /> <Method name="altmov" params="int,double" returns="double[]" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer" /> <Class name="org.apache.commons.math4.optim.nonlinear.scalar.noderiv.CMAESOptimizer" />
<Method name="doOptimize" params="" returns="org.apache.commons.math3.optim.PointValuePair" /> <Method name="doOptimize" params="" returns="org.apache.commons.math4.optim.PointValuePair" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<!-- The following equality test is intentional and needed for semantic purposes --> <!-- The following equality test is intentional and needed for semantic purposes -->
<Match> <Match>
<Or> <Or>
<Class name="org.apache.commons.math3.geometry.euclidean.oned.Vector1D" /> <Class name="org.apache.commons.math4.geometry.euclidean.oned.Vector1D" />
<Class name="org.apache.commons.math3.geometry.euclidean.twod.Vector2D" /> <Class name="org.apache.commons.math4.geometry.euclidean.twod.Vector2D" />
<Class name="org.apache.commons.math3.geometry.euclidean.threed.Vector3D" /> <Class name="org.apache.commons.math4.geometry.euclidean.threed.Vector3D" />
</Or> </Or>
<Method name="equals" params="java.lang.Object" returns="boolean" /> <Method name="equals" params="java.lang.Object" returns="boolean" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<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" /> <Method name="equals" params="java.lang.Object" returns="boolean" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<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" /> <Method name="equals" params="java.lang.Object" returns="boolean" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<!-- The following equality test is intentional and needed for rounding purposes --> <!-- The following equality test is intentional and needed for rounding purposes -->
<Match> <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" /> <Method name="roundUnscaled" params="double,double,int" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<!-- The following equality test is intentional for division protection --> <!-- The following equality test is intentional for division protection -->
<Match> <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[]" /> <Method name="smooth" params="double[],double[]" returns="double[]" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
<!-- The following equality test is intentional for infinity detection --> <!-- The following equality test is intentional for infinity detection -->
<Match> <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" /> <Method name="atan2" params="double,double" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" /> <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match> </Match>
@ -134,8 +134,8 @@
--> -->
<Match> <Match>
<Or> <Or>
<Class name="org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" /> <Class name="org.apache.commons.math4.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" />
<Class name="org.apache.commons.math3.optimization.direct.BOBYQAOptimizer" /> <Class name="org.apache.commons.math4.optimization.direct.BOBYQAOptimizer" />
</Or> </Or>
<Or> <Or>
<Method name="bobyqb" params="double[],double[]" returns="double" /> <Method name="bobyqb" params="double[],double[]" returns="double" />
@ -148,7 +148,7 @@
(to be removed in 4.0) (to be removed in 4.0)
--> -->
<Match> <Match>
<Class name="org.apache.commons.math3.optimization.general.AbstractLeastSquaresOptimizer" /> <Class name="org.apache.commons.math4.optimization.general.AbstractLeastSquaresOptimizer" />
<Or> <Or>
<Field name="weightedResidualJacobian" /> <Field name="weightedResidualJacobian" />
<Field name="weightedResiduals" /> <Field name="weightedResiduals" />
@ -158,54 +158,54 @@
<!-- Spurious: Findbugs confused by final local variables --> <!-- Spurious: Findbugs confused by final local variables -->
<Match> <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" /> <Method name="atan" params="double,double,boolean" returns="double" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" /> <Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match> </Match>
<!-- the following expositions of internal representation are intentional and documented --> <!-- the following expositions of internal representation are intentional and documented -->
<Match> <Match>
<Class name="org.apache.commons.math3.stat.regression.RegressionResults"/> <Class name="org.apache.commons.math4.stat.regression.RegressionResults"/>
<Method name="&lt;init>" params="double[],double[][],boolean,long,int,double,double,double,boolean,boolean" returns="void" /> <Method name="&lt;init>" params="double[],double[][],boolean,long,int,double,double,double,boolean,boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<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[]" /> <Method name="getDataRef" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optimization.PointValuePair"/> <Class name="org.apache.commons.math4.optimization.PointValuePair"/>
<Method name="getPointRef" params="" returns="double[]" /> <Method name="getPointRef" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optim.PointValuePair"/> <Class name="org.apache.commons.math4.optim.PointValuePair"/>
<Method name="getPointRef" params="" returns="double[]" /> <Method name="getPointRef" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optimization.PointValuePair"/> <Class name="org.apache.commons.math4.optimization.PointValuePair"/>
<Method name="&lt;init>" params="double[],double,boolean" returns="void" /> <Method name="&lt;init>" params="double[],double,boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optim.PointValuePair"/> <Class name="org.apache.commons.math4.optim.PointValuePair"/>
<Method name="&lt;init>" params="double[],double,boolean" returns="void" /> <Method name="&lt;init>" params="double[],double,boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<!-- Serialization is handled by an internal class --> <!-- Serialization is handled by an internal class -->
<Match> <Match>
<Or> <Or>
<Class name="org.apache.commons.math3.optim.PointValuePair"/> <Class name="org.apache.commons.math4.optim.PointValuePair"/>
<Class name="org.apache.commons.math3.optim.PointVectorValuePair"/> <Class name="org.apache.commons.math4.optim.PointVectorValuePair"/>
<Class name="org.apache.commons.math3.optimization.PointValuePair"/> <Class name="org.apache.commons.math4.optimization.PointValuePair"/>
<Class name="org.apache.commons.math3.optimization.PointVectorValuePair"/> <Class name="org.apache.commons.math4.optimization.PointVectorValuePair"/>
</Or> </Or>
<Bug pattern="SE_NO_SUITABLE_CONSTRUCTOR" /> <Bug pattern="SE_NO_SUITABLE_CONSTRUCTOR" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optimization.PointVectorValuePair"/> <Class name="org.apache.commons.math4.optimization.PointVectorValuePair"/>
<Or> <Or>
<Method name="getPointRef" params="" returns="double[]" /> <Method name="getPointRef" params="" returns="double[]" />
<Method name="getValueRef" params="" returns="double[]" /> <Method name="getValueRef" params="" returns="double[]" />
@ -213,7 +213,7 @@
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optim.PointVectorValuePair"/> <Class name="org.apache.commons.math4.optim.PointVectorValuePair"/>
<Or> <Or>
<Method name="getPointRef" params="" returns="double[]" /> <Method name="getPointRef" params="" returns="double[]" />
<Method name="getValueRef" params="" returns="double[]" /> <Method name="getValueRef" params="" returns="double[]" />
@ -221,22 +221,22 @@
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optimization.PointVectorValuePair"/> <Class name="org.apache.commons.math4.optimization.PointVectorValuePair"/>
<Method name="&lt;init>" params="double[],double[][],boolean" returns="void" /> <Method name="&lt;init>" params="double[],double[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.optim.PointVectorValuePair"/> <Class name="org.apache.commons.math4.optim.PointVectorValuePair"/>
<Method name="&lt;init>" params="double[],double[][],boolean" returns="void" /> <Method name="&lt;init>" params="double[],double[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.ode.sampling.DummyStepInterpolator"/> <Class name="org.apache.commons.math4.ode.sampling.DummyStepInterpolator"/>
<Method name="&lt;init>" params="double[],double[],boolean" returns="void" /> <Method name="&lt;init>" params="double[],double[],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.ode.sampling.AbstractStepInterpolator"/> <Class name="org.apache.commons.math4.ode.sampling.AbstractStepInterpolator"/>
<Or> <Or>
<Method name="getInterpolatedState" params="" returns="double[]" /> <Method name="getInterpolatedState" params="" returns="double[]" />
<Method name="getInterpolatedDerivatives" params="" returns="double[]" /> <Method name="getInterpolatedDerivatives" params="" returns="double[]" />
@ -244,47 +244,47 @@
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.ode.sampling.NordsieckStepInterpolator"/> <Class name="org.apache.commons.math4.ode.sampling.NordsieckStepInterpolator"/>
<Method name="reinitialize" params="double,double,double[],org.apache.commons.math3.linear.Array2DRowRealMatrix" returns="void" /> <Method name="reinitialize" params="double,double,double[],org.apache.commons.math4.linear.Array2DRowRealMatrix" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<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[]" /> <Method name="getInterpolatedStateVariation" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.Array2DRowRealMatrix"/> <Class name="org.apache.commons.math4.linear.Array2DRowRealMatrix"/>
<Method name="&lt;init>" params="double[][],boolean" returns="void" /> <Method name="&lt;init>" params="double[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.Array2DRowRealMatrix"/> <Class name="org.apache.commons.math4.linear.Array2DRowRealMatrix"/>
<Method name="getDataRef" params="" returns="double[][]" /> <Method name="getDataRef" params="" returns="double[][]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.BlockFieldMatrix"/> <Class name="org.apache.commons.math4.linear.BlockFieldMatrix"/>
<Method name="&lt;init>" params="int,int,org.apache.commons.math3.FieldElement[][],boolean" returns="void" /> <Method name="&lt;init>" params="int,int,org.apache.commons.math4.FieldElement[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.Array2DRowFieldMatrix"/> <Class name="org.apache.commons.math4.linear.Array2DRowFieldMatrix"/>
<Method name="&lt;init>" params="org.apache.commons.math3.Field,org.apache.commons.math3.FieldElement[][],boolean" returns="void" /> <Method name="&lt;init>" params="org.apache.commons.math4.Field,org.apache.commons.math4.FieldElement[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.Array2DRowFieldMatrix"/> <Class name="org.apache.commons.math4.linear.Array2DRowFieldMatrix"/>
<Method name="getDataRef" params="" returns="org.apache.commons.math3.FieldElement[][]" /> <Method name="getDataRef" params="" returns="org.apache.commons.math4.FieldElement[][]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.BlockRealMatrix"/> <Class name="org.apache.commons.math4.linear.BlockRealMatrix"/>
<Method name="&lt;init>" params="int,int,double[][],boolean" returns="void" /> <Method name="&lt;init>" params="int,int,double[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.util.ResizableDoubleArray"/> <Class name="org.apache.commons.math4.util.ResizableDoubleArray"/>
<Or> <Or>
<Method name="getValues" params="" returns="double[]" /> <Method name="getValues" params="" returns="double[]" />
<Method name="getInternalValues" params="" returns="double[]" /> <Method name="getInternalValues" params="" returns="double[]" />
@ -292,47 +292,47 @@
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.ArrayRealVector"/> <Class name="org.apache.commons.math4.linear.ArrayRealVector"/>
<Method name="getDataRef" params="" returns="double[]" /> <Method name="getDataRef" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.ArrayFieldVector"/> <Class name="org.apache.commons.math4.linear.ArrayFieldVector"/>
<Method name="getDataRef" params="" returns="org.apache.commons.math3.FieldElement[]" /> <Method name="getDataRef" params="" returns="org.apache.commons.math4.FieldElement[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.linear.DiagonalMatrix"/> <Class name="org.apache.commons.math4.linear.DiagonalMatrix"/>
<Method name="getDataRef" params="" returns="double[]" /> <Method name="getDataRef" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<!-- The equals method for RealVector intentionally throws an exception --> <!-- The equals method for RealVector intentionally throws an exception -->
<Match> <Match>
<Class name="org.apache.commons.math3.linear.RealVector"/> <Class name="org.apache.commons.math4.linear.RealVector"/>
<Bug pattern="EQ_UNUSUAL" /> <Bug pattern="EQ_UNUSUAL" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.stat.clustering.EuclideanIntegerPoint"/> <Class name="org.apache.commons.math4.stat.clustering.EuclideanIntegerPoint"/>
<Method name="&lt;init>" params="int[]" returns="void" /> <Method name="&lt;init>" params="int[]" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<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[]" /> <Method name="getPoint" params="" returns="int[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
</Match> </Match>
<Match> <Match>
<Or> <Or>
<Class name="org.apache.commons.math3.stat.clustering.EuclideanDoublePoint"/> <Class name="org.apache.commons.math4.stat.clustering.EuclideanDoublePoint"/>
<Class name="org.apache.commons.math3.ml.clustering.DoublePoint"/> <Class name="org.apache.commons.math4.ml.clustering.DoublePoint"/>
</Or> </Or>
<Method name="&lt;init>" params="double[]" returns="void" /> <Method name="&lt;init>" params="double[]" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" /> <Bug pattern="EI_EXPOSE_REP2" />
</Match> </Match>
<Match> <Match>
<Or> <Or>
<Class name="org.apache.commons.math3.stat.clustering.EuclideanDoublePoint"/> <Class name="org.apache.commons.math4.stat.clustering.EuclideanDoublePoint"/>
<Class name="org.apache.commons.math3.ml.clustering.DoublePoint"/> <Class name="org.apache.commons.math4.ml.clustering.DoublePoint"/>
</Or> </Or>
<Method name="getPoint" params="" returns="double[]" /> <Method name="getPoint" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" /> <Bug pattern="EI_EXPOSE_REP" />
@ -340,44 +340,44 @@
<!-- The following cases are intentional unit tests for null parameters --> <!-- The following cases are intentional unit tests for null parameters -->
<Match> <Match>
<Class name="org.apache.commons.math3.stat.StatUtilsTest" /> <Class name="org.apache.commons.math4.stat.StatUtilsTest" />
<Method name="testPercentile" params="" returns="void" /> <Method name="testPercentile" params="" returns="void" />
<Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL" /> <Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL" />
</Match> </Match>
<Match> <Match>
<Class name="org.apache.commons.math3.analysis.UnivariateRealSolverFactoryImplTest" /> <Class name="org.apache.commons.math4.analysis.UnivariateRealSolverFactoryImplTest" />
<Method name="testNewNewtonSolverNull" params="" returns="void" /> <Method name="testNewNewtonSolverNull" params="" returns="void" />
<Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" /> <Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" />
</Match> </Match>
<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" /> <Method name="cannotAddNullYSampleData" params="" returns="void" />
<Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" /> <Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" />
</Match> </Match>
<!-- IntDoublePair intentionally implements Comparable inconsistently with equals --> <!-- IntDoublePair intentionally implements Comparable inconsistently with equals -->
<Match> <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" /> <Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS" />
</Match> </Match>
<!-- False positive warning from findbugs, the integer division result cast to double is correct here --> <!-- False positive warning from findbugs, the integer division result cast to double is correct here -->
<Match> <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" /> <Method name="mannWhitneyU" params="double[],double[]" returns="double" />
<Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE" /> <Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE" />
</Match> </Match>
<!-- The following switch fall-through is intended. --> <!-- The following switch fall-through is intended. -->
<Match> <Match>
<Class name="org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D" /> <Class name="org.apache.commons.math4.ml.neuralnet.twod.NeuronSquareMesh2D" />
<Method name="createLinks" /> <Method name="createLinks" />
<Bug pattern="SF_SWITCH_FALLTHROUGH" /> <Bug pattern="SF_SWITCH_FALLTHROUGH" />
</Match> </Match>
<!-- Integer division results cast to double are intentional. --> <!-- Integer division results cast to double are intentional. -->
<Match> <Match>
<Class name="org.apache.commons.math3.special.BesselJ" /> <Class name="org.apache.commons.math4.special.BesselJ" />
<Method name="rjBesl" /> <Method name="rjBesl" />
<Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE" /> <Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE" />
</Match> </Match>

34
pom.xml
View File

@ -23,8 +23,8 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId> <artifactId>commons-math4</artifactId>
<version>3.5-SNAPSHOT</version> <version>4.0-SNAPSHOT</version>
<name>Apache Commons Math</name> <name>Apache Commons Math</name>
<inceptionYear>2003</inceptionYear> <inceptionYear>2003</inceptionYear>
@ -359,6 +359,8 @@
<!-- Do not change: "math" is the name of the component even if the <!-- Do not change: "math" is the name of the component even if the
name of the base package evolves with major release numbers name of the base package evolves with major release numbers
(see "commons.osgi.symbolicName", below). --> (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> <commons.componentid>math</commons.componentid>
<!-- This value must reflect the current name of the base package. --> <!-- This value must reflect the current name of the base package. -->
<commons.osgi.symbolicName>org.apache.commons.math3</commons.osgi.symbolicName> <commons.osgi.symbolicName>org.apache.commons.math3</commons.osgi.symbolicName>
@ -484,7 +486,7 @@
<attribute name="X-Compile-Target-JDK" value="${maven.compiler.target}" /> <attribute name="X-Compile-Target-JDK" value="${maven.compiler.target}" />
</manifest> </manifest>
<fileset dir="${project.build.directory}/test-classes" <fileset dir="${project.build.directory}/test-classes"
includes="org/apache/commons/math3/PerfTestUtils*" /> includes="org/apache/commons/math4/PerfTestUtils*" />
</jar> </jar>
</target> </target>
</configuration> </configuration>
@ -494,7 +496,7 @@
</execution> </execution>
</executions> </executions>
</plugin> </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 --> to ensure they will be signed and deployed as normal -->
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
@ -589,21 +591,21 @@
<!-- the following are test data files with specific syntax that cannot include <!-- 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) --> 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/math4/random/testData.txt</exclude>
<exclude>src/test/resources/org/apache/commons/math3/random/emptyFile.txt</exclude> <exclude>src/test/resources/org/apache/commons/math4/random/emptyFile.txt</exclude>
<exclude>src/test/resources/org/apache/commons/math3/stat/data/PiDigits.txt</exclude> <exclude>src/test/resources/org/apache/commons/math4/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/math4/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/math4/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/math4/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/math4/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/math4/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/math4/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/math4/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/stat/data/Mavro.txt</exclude>
<!-- direction numbers for Sobol generation from Frances Y. Kuo and Stephen Joe, <!-- direction numbers for Sobol generation from Frances Y. Kuo and Stephen Joe,
available under a BSD-style license (see NOTICE.txt and LICENSE.txt) --> 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 --> <!-- text file explaining reference to a public domain image -->
<exclude>src/userguide/resources/references.txt</exclude> <exclude>src/userguide/resources/references.txt</exclude>

View File

@ -53,7 +53,7 @@ If the output is not quite correct, check for invisible trailing spaces!
<release version="TBD" date="TBD" description="TBD"> <release version="TBD" date="TBD" description="TBD">
</release> </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"> <action dev="sebb" type="add" issue="MATH-1198">
Simplified "FastMath#exp(double)" in order to avoid a potential Simplified "FastMath#exp(double)" in order to avoid a potential
Java 1.5 JIT bug when calling with negative infinity as argument. Java 1.5 JIT bug when calling with negative infinity as argument.

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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>. * Interface representing a <a href="http://mathworld.wolfram.com/Field.html">field</a>.

View File

@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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.math4.exception.MathArithmeticException;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.NullArgumentException;
/** /**

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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> * Interface representing a <a href="http://mathworld.wolfram.com/RealNumber.html">real</a>

View File

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* An interface representing a bivariate real function. * An interface representing a bivariate real function.

View File

@ -15,13 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* Extension of {@link MultivariateFunction} representing a differentiable * Extension of {@link MultivariateFunction} representing a differentiable
* multivariate real function. * multivariate real function.
* @since 2.0 * @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 @Deprecated
public interface DifferentiableMultivariateFunction extends MultivariateFunction { public interface DifferentiableMultivariateFunction extends MultivariateFunction {

View File

@ -15,13 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* Extension of {@link MultivariateVectorFunction} representing a differentiable * Extension of {@link MultivariateVectorFunction} representing a differentiable
* multivariate vectorial function. * multivariate vectorial function.
* @since 2.0 * @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 @Deprecated
public interface DifferentiableMultivariateVectorFunction public interface DifferentiableMultivariateVectorFunction

View File

@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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. * 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 @Deprecated
public interface DifferentiableUnivariateFunction public interface DifferentiableUnivariateFunction

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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. * Extension of {@link UnivariateMatrixFunction} representing a differentiable univariate matrix function.
* *
* @since 2.0 * @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 @Deprecated
public interface DifferentiableUnivariateMatrixFunction public interface DifferentiableUnivariateMatrixFunction

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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. * Extension of {@link UnivariateVectorFunction} representing a differentiable univariate vectorial function.
* *
* @since 2.0 * @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 @Deprecated
public interface DifferentiableUnivariateVectorFunction public interface DifferentiableUnivariateVectorFunction

View File

@ -15,17 +15,17 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.MultivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.MultivariateDifferentiableFunction;
import org.apache.commons.math3.analysis.differentiation.MultivariateDifferentiableVectorFunction; import org.apache.commons.math4.analysis.differentiation.MultivariateDifferentiableVectorFunction;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.analysis.function.Identity; import org.apache.commons.math4.analysis.function.Identity;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.util.LocalizedFormats; import org.apache.commons.math4.exception.util.LocalizedFormats;
/** /**
* Utilities for manipulating function objects. * Utilities for manipulating function objects.

View File

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* An interface representing a multivariate real function. * An interface representing a multivariate real function.
@ -29,9 +29,9 @@ public interface MultivariateFunction {
* *
* @param point Point at which the function must be evaluated. * @param point Point at which the function must be evaluated.
* @return the function value for the given point. * @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. * 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, * when the activated method itself can ascertain that preconditions,
* specified in the API expressed at the level of the activated method, * specified in the API expressed at the level of the activated method,
* have been violated. In the vast majority of cases where Commons Math * have been violated. In the vast majority of cases where Commons Math

View File

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* An interface representing a multivariate matrix function. * An interface representing a multivariate matrix function.

View File

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* An interface representing a multivariate vectorial function. * An interface representing a multivariate vectorial function.

View File

@ -15,7 +15,7 @@
* limitations under the License. * 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 * An interface representing a real function that depends on one independent

View File

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* An interface representing a trivariate real function. * An interface representing a trivariate real function.

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* An interface representing a univariate real function. * An interface representing a univariate real function.

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* An interface representing a univariate matrix function. * An interface representing a univariate matrix function.

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis; package org.apache.commons.math4.analysis;
/** /**
* An interface representing a univariate vectorial function. * An interface representing a univariate vectorial function.

View File

@ -14,21 +14,21 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.atomic.AtomicReference;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.MathArithmeticException; import org.apache.commons.math4.exception.MathArithmeticException;
import org.apache.commons.math3.exception.MathInternalError; import org.apache.commons.math4.exception.MathInternalError;
import org.apache.commons.math3.exception.NotPositiveException; import org.apache.commons.math4.exception.NotPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math3.util.CombinatoricsUtils; import org.apache.commons.math4.util.CombinatoricsUtils;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
import org.apache.commons.math3.util.MathArrays; import org.apache.commons.math4.util.MathArrays;
/** Class holding "compiled" computation rules for derivative structures. /** Class holding "compiled" computation rules for derivative structures.
* <p>This class implements the computation rules described in Dan Kalman's paper <a * <p>This class implements the computation rules described in Dan Kalman's paper <a

View File

@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.differentiation; package org.apache.commons.math4.analysis.differentiation;
import java.io.Serializable; import java.io.Serializable;
import org.apache.commons.math3.RealFieldElement; import org.apache.commons.math4.Field;
import org.apache.commons.math3.Field; import org.apache.commons.math4.FieldElement;
import org.apache.commons.math3.FieldElement; import org.apache.commons.math4.RealFieldElement;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.MathArithmeticException; import org.apache.commons.math4.exception.MathArithmeticException;
import org.apache.commons.math3.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
import org.apache.commons.math3.util.MathArrays; import org.apache.commons.math4.util.MathArrays;
import org.apache.commons.math3.util.MathUtils; import org.apache.commons.math4.util.MathUtils;
/** Class representing both the value and the differentials of a function. /** Class representing both the value and the differentials of a function.
* <p>This class is the workhorse of the differentiation package.</p> * <p>This class is the workhorse of the differentiation package.</p>

View File

@ -14,18 +14,18 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.differentiation; package org.apache.commons.math4.analysis.differentiation;
import java.io.Serializable; import java.io.Serializable;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateMatrixFunction; import org.apache.commons.math4.analysis.UnivariateMatrixFunction;
import org.apache.commons.math3.analysis.UnivariateVectorFunction; import org.apache.commons.math4.analysis.UnivariateVectorFunction;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.NotPositiveException; import org.apache.commons.math4.exception.NotPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.NumberIsTooSmallException; import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** Univariate functions differentiator using finite differences. /** Univariate functions differentiator using finite differences.
* <p> * <p>

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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. /** Class representing the gradient of a multivariate function.
* <p> * <p>

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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. /** Class representing the Jacobian of a multivariate vector function.
* <p> * <p>

View File

@ -15,10 +15,10 @@
* limitations under the License. * 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.math4.analysis.MultivariateFunction;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
/** /**
* Extension of {@link MultivariateFunction} representing a * Extension of {@link MultivariateFunction} representing a

View File

@ -15,10 +15,10 @@
* limitations under the License. * 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;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
/** /**

View File

@ -14,21 +14,21 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.differentiation; package org.apache.commons.math4.analysis.differentiation;
import java.io.Serializable; import java.io.Serializable;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import org.apache.commons.math3.Field; import org.apache.commons.math4.Field;
import org.apache.commons.math3.FieldElement; import org.apache.commons.math4.FieldElement;
import org.apache.commons.math3.RealFieldElement; import org.apache.commons.math4.RealFieldElement;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
import org.apache.commons.math3.util.MathArrays; import org.apache.commons.math4.util.MathArrays;
import org.apache.commons.math3.util.MathUtils; import org.apache.commons.math4.util.MathUtils;
import org.apache.commons.math3.util.Precision; import org.apache.commons.math4.util.Precision;
/** /**
* First derivative computation with large number of variables. * First derivative computation with large number of variables.

View File

@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
/** Interface for univariate functions derivatives. /** Interface for univariate functions derivatives.
* <p>This interface represents a simple function which computes * <p>This interface represents a simple function which computes

View File

@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
/** /**
* Extension of {@link UnivariateMatrixFunction} representing a univariate differentiable matrix function. * Extension of {@link UnivariateMatrixFunction} representing a univariate differentiable matrix function.

View File

@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
/** /**
* Extension of {@link UnivariateVectorFunction} representing a univariate differentiable vectorial function. * Extension of {@link UnivariateVectorFunction} representing a univariate differentiable vectorial function.

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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. /** Interface defining the function differentiation operation.
* @since 3.1 * @since 3.1

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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. /** Interface defining the function differentiation operation.
* @since 3.1 * @since 3.1

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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. /** Interface defining the function differentiation operation.
* @since 3.1 * @since 3.1

View File

@ -19,19 +19,19 @@
* <p> * <p>
* This package holds the main interfaces and basic building block classes * This package holds the main interfaces and basic building block classes
* dealing with differentiation. * 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 * 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 * 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 * 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 * UnivariateDifferentiableFunction} interface. Any differentiable function should implement this
* interface. * interface.
* </p> * </p>
* <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 * UnivariateFunctionDifferentiator} interface defines a way to differentiate a simple {@link
* org.apache.commons.math3.analysis.UnivariateFunction UnivariateFunction} and get a {@link * org.apache.commons.math4.analysis.UnivariateFunction UnivariateFunction} and get a {@link
* org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction * org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction
* UnivariateDifferentiableFunction}. * UnivariateDifferentiableFunction}.
* </p> * </p>
* <p> * <p>
@ -39,4 +39,4 @@
* </p> * </p>
* *
*/ */
package org.apache.commons.math3.analysis.differentiation; package org.apache.commons.math4.analysis.differentiation;

View File

@ -15,10 +15,10 @@
* limitations under the License. * 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.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Absolute value function. * Absolute value function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Arc-cosine function. * Arc-cosine function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Hyperbolic arc-cosine function. * Hyperbolic arc-cosine function.

View File

@ -15,9 +15,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.BivariateFunction; import org.apache.commons.math4.analysis.BivariateFunction;
/** /**
* Add the two operands. * Add the two operands.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Arc-sine function. * Arc-sine function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Hyperbolic arc-sine function. * Hyperbolic arc-sine function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Arc-tangent function. * Arc-tangent function.

View File

@ -15,10 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.BivariateFunction; import org.apache.commons.math4.analysis.BivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Arc-tangent function. * Arc-tangent function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Hyperbolic arc-tangent function. * Hyperbolic arc-tangent function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Cube root function. * Cube root function.

View File

@ -15,10 +15,10 @@
* limitations under the License. * 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.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* {@code ceil} function. * {@code ceil} function.

View File

@ -15,11 +15,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
/** /**
* Constant function. * Constant function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Cosine function. * Cosine function.

View File

@ -15,12 +15,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Hyperbolic cosine function. * Hyperbolic cosine function.

View File

@ -15,9 +15,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.BivariateFunction; import org.apache.commons.math4.analysis.BivariateFunction;
/** /**
* Divide the first operand by the second. * Divide the first operand by the second.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Exponential function. * Exponential function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* <code>e<sup>x</sup>-1</code> function. * <code>e<sup>x</sup>-1</code> function.

View File

@ -15,10 +15,10 @@
* limitations under the License. * 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.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* {@code floor} function. * {@code floor} function.

View File

@ -15,21 +15,21 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import java.util.Arrays; import java.util.Arrays;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.ParametricUnivariateFunction;
import org.apache.commons.math3.analysis.ParametricUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
import org.apache.commons.math3.util.Precision; import org.apache.commons.math4.util.Precision;
/** /**
* <a href="http://en.wikipedia.org/wiki/Gaussian_function"> * <a href="http://en.wikipedia.org/wiki/Gaussian_function">

View File

@ -15,17 +15,17 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.ParametricUnivariateFunction; import org.apache.commons.math4.analysis.ParametricUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* <a href="http://en.wikipedia.org/wiki/Harmonic_oscillator"> * <a href="http://en.wikipedia.org/wiki/Harmonic_oscillator">

View File

@ -15,11 +15,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
/** /**
* Identity function. * Identity function.

View File

@ -15,13 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
/** /**
* Inverse function. * Inverse function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Natural logarithm function. * Natural logarithm function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Base 10 logarithm function. * Base 10 logarithm function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* <code>log(1 + p)</code> function. * <code>log(1 + p)</code> function.

View File

@ -15,18 +15,18 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.ParametricUnivariateFunction;
import org.apache.commons.math3.analysis.ParametricUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* <a href="http://en.wikipedia.org/wiki/Generalised_logistic_function"> * <a href="http://en.wikipedia.org/wiki/Generalised_logistic_function">

View File

@ -15,18 +15,18 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.ParametricUnivariateFunction; import org.apache.commons.math4.analysis.ParametricUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math3.exception.OutOfRangeException; import org.apache.commons.math4.exception.OutOfRangeException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* <a href="http://en.wikipedia.org/wiki/Logit"> * <a href="http://en.wikipedia.org/wiki/Logit">

View File

@ -15,10 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.BivariateFunction; import org.apache.commons.math4.analysis.BivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Maximum function. * Maximum function.

View File

@ -15,10 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.BivariateFunction; import org.apache.commons.math4.analysis.BivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Minimum function. * Minimum function.

View File

@ -15,11 +15,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
/** /**
* Minus function. * Minus function.

View File

@ -15,9 +15,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.BivariateFunction; import org.apache.commons.math4.analysis.BivariateFunction;
/** /**
* Multiply the two operands. * Multiply the two operands.

View File

@ -15,10 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.BivariateFunction; import org.apache.commons.math4.analysis.BivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Power function. * Power function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Power function. * Power function.

View File

@ -15,10 +15,10 @@
* limitations under the License. * 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.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* {@code rint} function. * {@code rint} function.

View File

@ -15,19 +15,19 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import java.util.Arrays; import java.util.Arrays;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.ParametricUnivariateFunction;
import org.apache.commons.math3.analysis.ParametricUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* <a href="http://en.wikipedia.org/wiki/Sigmoid_function"> * <a href="http://en.wikipedia.org/wiki/Sigmoid_function">

View File

@ -15,10 +15,10 @@
* limitations under the License. * 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.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* {@code signum} function. * {@code signum} function.

View File

@ -15,12 +15,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Sine function. * Sine function.

View File

@ -15,15 +15,15 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* <a href="http://en.wikipedia.org/wiki/Sinc_function">Sinc</a> function, * <a href="http://en.wikipedia.org/wiki/Sinc_function">Sinc</a> function,

View File

@ -15,12 +15,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Hyperbolic sine function. * Hyperbolic sine function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Square-root function. * Square-root function.

View File

@ -15,15 +15,16 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import java.util.Arrays; import java.util.Arrays;
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.math3.exception.NonMonotonicSequenceException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.NoDataException;
import org.apache.commons.math3.exception.NoDataException; import org.apache.commons.math4.exception.NonMonotonicSequenceException;
import org.apache.commons.math3.util.MathArrays; import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math4.util.MathArrays;
/** /**
* <a href="http://en.wikipedia.org/wiki/Step_function"> * <a href="http://en.wikipedia.org/wiki/Step_function">

View File

@ -15,9 +15,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.BivariateFunction; import org.apache.commons.math4.analysis.BivariateFunction;
/** /**
* Subtract the second operand from the first. * Subtract the second operand from the first.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Tangent function. * Tangent function.

View File

@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;
import org.apache.commons.math3.analysis.FunctionUtils; import org.apache.commons.math4.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure; import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction; import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Hyperbolic tangent function. * Hyperbolic tangent function.

View File

@ -15,10 +15,10 @@
* limitations under the License. * 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.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* {@code ulp} function. * {@code ulp} function.

View File

@ -23,4 +23,4 @@
* </p> * </p>
* *
*/ */
package org.apache.commons.math3.analysis.function; package org.apache.commons.math4.analysis.function;

View File

@ -14,18 +14,18 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration; package org.apache.commons.math4.analysis.integration;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.solvers.UnivariateSolverUtils; import org.apache.commons.math4.analysis.solvers.UnivariateSolverUtils;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math4.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math3.exception.NumberIsTooSmallException; import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.TooManyEvaluationsException; import org.apache.commons.math4.exception.TooManyEvaluationsException;
import org.apache.commons.math3.util.Incrementor; import org.apache.commons.math4.util.Incrementor;
import org.apache.commons.math3.util.MathUtils; import org.apache.commons.math4.util.MathUtils;
/** /**
* Provide a default implementation for several generic functions. * Provide a default implementation for several generic functions.
@ -80,7 +80,7 @@ public abstract class BaseAbstractUnivariateIntegrator implements UnivariateInte
* achieved due to large values or short mantissa length. If this * achieved due to large values or short mantissa length. If this
* should be the primary criterion for convergence rather then a * should be the primary criterion for convergence rather then a
* safety measure, set the absolute accuracy to a ridiculously small value, * safety measure, set the absolute accuracy to a ridiculously small value,
* like {@link org.apache.commons.math3.util.Precision#SAFE_MIN Precision.SAFE_MIN}.</li> * like {@link org.apache.commons.math4.util.Precision#SAFE_MIN Precision.SAFE_MIN}.</li>
* <li>absolute accuracy: * <li>absolute accuracy:
* The default is usually chosen so that results in the interval * The default is usually chosen so that results in the interval
* -10..-0.1 and +0.1..+10 can be found with a reasonable accuracy. If the * -10..-0.1 and +0.1..+10 can be found with a reasonable accuracy. If the

View File

@ -14,18 +14,18 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration; package org.apache.commons.math4.analysis.integration;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.integration.gauss.GaussIntegratorFactory; import org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator;
import org.apache.commons.math3.analysis.integration.gauss.GaussIntegrator; import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math4.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooSmallException; import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.TooManyEvaluationsException; import org.apache.commons.math4.exception.TooManyEvaluationsException;
import org.apache.commons.math3.exception.util.LocalizedFormats; import org.apache.commons.math4.exception.util.LocalizedFormats;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* This algorithm divides the integration interval into equally-sized * This algorithm divides the integration interval into equally-sized

View File

@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration; package org.apache.commons.math4.analysis.integration;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math4.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooSmallException; import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.TooManyEvaluationsException; import org.apache.commons.math4.exception.TooManyEvaluationsException;
import org.apache.commons.math3.exception.util.LocalizedFormats; import org.apache.commons.math4.exception.util.LocalizedFormats;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Implements the <a href="http://mathworld.wolfram.com/Legendre-GaussQuadrature.html"> * Implements the <a href="http://mathworld.wolfram.com/Legendre-GaussQuadrature.html">

View File

@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration; package org.apache.commons.math4.analysis.integration;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math4.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.NumberIsTooSmallException; import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.TooManyEvaluationsException; import org.apache.commons.math4.exception.TooManyEvaluationsException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Implements the <a href="http://en.wikipedia.org/wiki/Midpoint_method"> * Implements the <a href="http://en.wikipedia.org/wiki/Midpoint_method">

View File

@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration; package org.apache.commons.math4.analysis.integration;
import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math4.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.NumberIsTooSmallException; import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.TooManyEvaluationsException; import org.apache.commons.math4.exception.TooManyEvaluationsException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Implements the <a href="http://mathworld.wolfram.com/RombergIntegration.html"> * Implements the <a href="http://mathworld.wolfram.com/RombergIntegration.html">

View File

@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration; package org.apache.commons.math4.analysis.integration;
import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math4.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.NumberIsTooSmallException; import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.TooManyEvaluationsException; import org.apache.commons.math4.exception.TooManyEvaluationsException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Implements <a href="http://mathworld.wolfram.com/SimpsonsRule.html"> * Implements <a href="http://mathworld.wolfram.com/SimpsonsRule.html">

View File

@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration; package org.apache.commons.math4.analysis.integration;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math4.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.NumberIsTooSmallException; import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.TooManyEvaluationsException; import org.apache.commons.math4.exception.TooManyEvaluationsException;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.FastMath;
/** /**
* Implements the <a href="http://mathworld.wolfram.com/TrapezoidalRule.html"> * Implements the <a href="http://mathworld.wolfram.com/TrapezoidalRule.html">

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration; package org.apache.commons.math4.analysis.integration;
import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math4.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NullArgumentException; import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math3.exception.TooManyEvaluationsException; import org.apache.commons.math4.exception.TooManyEvaluationsException;
/** /**
* Interface for univariate real integration algorithms. * Interface for univariate real integration algorithms.

View File

@ -14,14 +14,15 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration.gauss; package org.apache.commons.math4.analysis.integration.gauss;
import java.util.Map; import java.util.Map;
import java.util.TreeMap; import java.util.TreeMap;
import org.apache.commons.math3.util.Pair;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.util.LocalizedFormats; import org.apache.commons.math4.exception.util.LocalizedFormats;
import org.apache.commons.math4.util.Pair;
/** /**
* Base class for rules that determines the integration nodes and their * Base class for rules that determines the integration nodes and their

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NonMonotonicSequenceException; import org.apache.commons.math4.exception.NonMonotonicSequenceException;
import org.apache.commons.math3.util.MathArrays; import org.apache.commons.math4.util.MathArrays;
import org.apache.commons.math3.util.Pair; import org.apache.commons.math4.util.Pair;
/** /**
* Class that implements the Gaussian rule for * Class that implements the Gaussian rule for

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration.gauss; package org.apache.commons.math4.analysis.integration.gauss;
import java.math.BigDecimal; import java.math.BigDecimal;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.util.Pair; import org.apache.commons.math4.util.Pair;
/** /**
* Class that provides different ways to compute the nodes and weights to be * Class that provides different ways to compute the nodes and weights to be
@ -39,7 +39,7 @@ public class GaussIntegratorFactory {
/** /**
* Creates a Gauss-Legendre integrator of the given order. * Creates a Gauss-Legendre integrator of the given order.
* The call to the * The call to the
* {@link GaussIntegrator#integrate(org.apache.commons.math3.analysis.UnivariateFunction) * {@link GaussIntegrator#integrate(org.apache.commons.math4.analysis.UnivariateFunction)
* integrate} method will perform an integration on the natural interval * integrate} method will perform an integration on the natural interval
* {@code [-1 , 1]}. * {@code [-1 , 1]}.
* *
@ -53,7 +53,7 @@ public class GaussIntegratorFactory {
/** /**
* Creates a Gauss-Legendre integrator of the given order. * Creates a Gauss-Legendre integrator of the given order.
* The call to the * The call to the
* {@link GaussIntegrator#integrate(org.apache.commons.math3.analysis.UnivariateFunction) * {@link GaussIntegrator#integrate(org.apache.commons.math4.analysis.UnivariateFunction)
* integrate} method will perform an integration on the given interval. * integrate} method will perform an integration on the given interval.
* *
* @param numberOfPoints Order of the integration rule. * @param numberOfPoints Order of the integration rule.
@ -73,7 +73,7 @@ public class GaussIntegratorFactory {
/** /**
* Creates a Gauss-Legendre integrator of the given order. * Creates a Gauss-Legendre integrator of the given order.
* The call to the * The call to the
* {@link GaussIntegrator#integrate(org.apache.commons.math3.analysis.UnivariateFunction) * {@link GaussIntegrator#integrate(org.apache.commons.math4.analysis.UnivariateFunction)
* integrate} method will perform an integration on the natural interval * integrate} method will perform an integration on the natural interval
* {@code [-1 , 1]}. * {@code [-1 , 1]}.
* *
@ -88,7 +88,7 @@ public class GaussIntegratorFactory {
/** /**
* Creates an integrator of the given order, and whose call to the * Creates an integrator of the given order, and whose call to the
* {@link GaussIntegrator#integrate(org.apache.commons.math3.analysis.UnivariateFunction) * {@link GaussIntegrator#integrate(org.apache.commons.math4.analysis.UnivariateFunction)
* integrate} method will perform an integration on the given interval. * integrate} method will perform an integration on the given interval.
* *
* @param numberOfPoints Order of the integration rule. * @param numberOfPoints Order of the integration rule.
@ -108,14 +108,14 @@ public class GaussIntegratorFactory {
/** /**
* Creates a Gauss-Hermite integrator of the given order. * Creates a Gauss-Hermite integrator of the given order.
* The call to the * The call to the
* {@link SymmetricGaussIntegrator#integrate(org.apache.commons.math3.analysis.UnivariateFunction) * {@link SymmetricGaussIntegrator#integrate(org.apache.commons.math4.analysis.UnivariateFunction)
* integrate} method will perform a weighted integration on the interval * integrate} method will perform a weighted integration on the interval
* {@code [-&inf;, +&inf;]}: the computed value is the improper integral of * {@code [-&inf;, +&inf;]}: the computed value is the improper integral of
* <code> * <code>
* e<sup>-x<sup>2</sup></sup> f(x) * e<sup>-x<sup>2</sup></sup> f(x)
* </code> * </code>
* where {@code f(x)} is the function passed to the * where {@code f(x)} is the function passed to the
* {@link SymmetricGaussIntegrator#integrate(org.apache.commons.math3.analysis.UnivariateFunction) * {@link SymmetricGaussIntegrator#integrate(org.apache.commons.math4.analysis.UnivariateFunction)
* integrate} method. * integrate} method.
* *
* @param numberOfPoints Order of the integration rule. * @param numberOfPoints Order of the integration rule.

View File

@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.util.Pair; import org.apache.commons.math4.util.FastMath;
import org.apache.commons.math3.util.FastMath; import org.apache.commons.math4.util.Pair;
/** /**
* Factory that creates a * Factory that creates a

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.math3.analysis.integration.gauss; package org.apache.commons.math4.analysis.integration.gauss;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.math.MathContext; import java.math.MathContext;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.util.Pair; import org.apache.commons.math4.util.Pair;
/** /**
* Factory that creates Gauss-type quadrature rule using Legendre polynomials. * Factory that creates Gauss-type quadrature rule using Legendre polynomials.

View File

@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.util.Pair; import org.apache.commons.math4.util.Pair;
/** /**
* Factory that creates Gauss-type quadrature rule using Legendre polynomials. * Factory that creates Gauss-type quadrature rule using Legendre polynomials.

View File

@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * 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.math4.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NonMonotonicSequenceException; import org.apache.commons.math4.exception.NonMonotonicSequenceException;
import org.apache.commons.math3.util.Pair; import org.apache.commons.math4.util.Pair;
/** /**
* This class's implements {@link #integrate(UnivariateFunction) integrate} * This class's implements {@link #integrate(UnivariateFunction) integrate}

Some files were not shown because too many files have changed in this diff Show More