Base package name change: "o.a.c.math" -> "o.a.c.math3"


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1244107 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2012-02-14 16:17:55 +00:00
parent 98bfd27d63
commit 696be68b5d
1005 changed files with 4609 additions and 4609 deletions

View File

@ -212,7 +212,7 @@ are reproduced below.
===============================================================================
For the lmder, lmpar and qrsolv Fortran routine from minpack and translated in
the LevenbergMarquardtOptimizer class in package
org.apache.commons.math.optimization.general
org.apache.commons.math3.optimization.general
Original source copyright and license statement:
Minpack Copyright Notice (1999) University of Chicago. All rights reserved
@ -270,7 +270,7 @@ POSSIBILITY OF SUCH LOSS OR DAMAGES.
Copyright and license statement for the odex Fortran routine developed by
E. Hairer and G. Wanner and translated in GraggBulirschStoerIntegrator class
in package org.apache.commons.math.ode.nonstiff:
in package org.apache.commons.math3.ode.nonstiff:
Copyright (c) 2004, Ernst Hairer
@ -301,7 +301,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright and license statement for the original lapack fortran routines
translated in EigenDecompositionImpl class in package
org.apache.commons.math.linear:
org.apache.commons.math3.linear:
Copyright (c) 1992-2008 The University of Tennessee. All rights reserved.
@ -342,7 +342,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright and license statement for the original Mersenne twister C
routines translated in MersenneTwister class in package
org.apache.commons.math.random:
org.apache.commons.math3.random:
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
All rights reserved.

View File

@ -6,8 +6,8 @@ The Apache Software Foundation (http://www.apache.org/).
===============================================================================
The BracketFinder (package org.apache.commons.math.optimization.univariate)
and PowellOptimizer (package org.apache.commons.math.optimization.general)
The BracketFinder (package org.apache.commons.math3.optimization.univariate)
and PowellOptimizer (package org.apache.commons.math3.optimization.general)
classes are based on the Python code in module "optimize.py" (version 0.5)
developed by Travis E. Oliphant for the SciPy library (http://www.scipy.org/)
Copyright © 2003-2009 SciPy Developers.
@ -15,7 +15,7 @@ Copyright © 2003-2009 SciPy Developers.
The LinearConstraint, LinearObjectiveFunction, LinearOptimizer,
RelationShip, SimplexSolver and SimplexTableau classes in package
org.apache.commons.math.optimization.linear include software developed by
org.apache.commons.math3.optimization.linear include software developed by
Benjamin McCann (http://www.benmccann.com) and distributed with
the following copyright: Copyright 2009 Google Inc.
===============================================================================
@ -24,26 +24,26 @@ This product includes software developed by the
University of Chicago, as Operator of Argonne National
Laboratory.
The LevenbergMarquardtOptimizer class in package
org.apache.commons.math.optimization.general includes software
org.apache.commons.math3.optimization.general includes software
translated from the lmder, lmpar and qrsolv Fortran routines
from the Minpack package
Minpack Copyright Notice (1999) University of Chicago. All rights reserved
===============================================================================
The GraggBulirschStoerIntegrator class in package
org.apache.commons.math.ode.nonstiff includes software translated
org.apache.commons.math3.ode.nonstiff includes software translated
from the odex Fortran routine developed by E. Hairer and G. Wanner.
Original source copyright:
Copyright (c) 2004, Ernst Hairer
===============================================================================
The EigenDecompositionImpl class in package
org.apache.commons.math.linear includes software translated
org.apache.commons.math3.linear includes software translated
from some LAPACK Fortran routines. Original source copyright:
Copyright (c) 1992-2008 The University of Tennessee. All rights reserved.
===============================================================================
The MersenneTwister class in package org.apache.commons.math.random
The MersenneTwister class in package org.apache.commons.math3.random
includes software translated from the 2002-01-26 version of
the Mersenne-Twister generator written in C by Makoto Matsumoto and Takuji
Nishimura. Original source copyright:

View File

@ -46,7 +46,7 @@
<property name="component.name" value="commons-math"/>
<!-- The primary package name of this component -->
<property name="component.package" value="org.apache.commons.math"/>
<property name="component.package" value="org.apache.commons.math3"/>
<!-- The title of this component -->
<property name="component.title" value="Commons MATH"/>
@ -200,7 +200,7 @@
<classpath refid="test.classpath"/>
<!-- If test.entry is defined, run a single test, otherwise run all valid tests -->
<!-- N.B. test.entry must be the full path to the test class, for example:
ant test -Dtest.entry=org.apache.commons.math.util.FastMathTestPerformance
ant test -Dtest.entry=org.apache.commons.math3.util.FastMathTestPerformance
-->
<test name="${test.entry}" todir="${test.reports}" if="test.entry"/>
<batchtest todir="${test.reports}" unless="test.entry">

View File

@ -26,7 +26,7 @@
<!-- the following equality tests are part of the reference algorithms -->
<!-- which already know about limited precision of the double numbers -->
<Match>
<Class name="org.apache.commons.math.distribution.SaddlePointExpansion" />
<Class name="org.apache.commons.math3.distribution.SaddlePointExpansion" />
<Or>
<Method name="getDeviancePart" params="double,double" returns="double" />
<Method name="getStirlingError" params="double" returns="double" />
@ -34,31 +34,31 @@
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<Match>
<Class name="org.apache.commons.math.optimization.univariate.BrentOptimizer" />
<Class name="org.apache.commons.math3.optimization.univariate.BrentOptimizer" />
<Method name="localMin" params="boolean,double,double,double,double,double" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<Match>
<Class name="org.apache.commons.math.analysis.solvers.BrentSolver" />
<Class name="org.apache.commons.math3.analysis.solvers.BrentSolver" />
<Method name="brent" params="double,double,double,double" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<Match>
<Class name="org.apache.commons.math.analysis.solvers.MullerSolver" />
<Class name="org.apache.commons.math3.analysis.solvers.MullerSolver" />
<Or>
<Method name="solve" params="double,double,double,double" returns="double" />
</Or>
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<Match>
<Class name="org.apache.commons.math.analysis.solvers.MullerSolver2" />
<Class name="org.apache.commons.math3.analysis.solvers.MullerSolver2" />
<Or>
<Method name="doSolve" params="" returns="double" />
</Or>
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.EigenDecompositionImpl" />
<Class name="org.apache.commons.math3.linear.EigenDecompositionImpl" />
<Method name="findEigenVectors" params="double[][]" returns="void" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
@ -66,65 +66,65 @@
<!-- The following equality test is intentional and needed for semantic purposes -->
<Match>
<Or>
<Class name="org.apache.commons.math.geometry.euclidean.oned.Vector1D" />
<Class name="org.apache.commons.math.geometry.euclidean.twod.Vector2D" />
<Class name="org.apache.commons.math.geometry.euclidean.threed.Vector3D" />
<Class name="org.apache.commons.math3.geometry.euclidean.oned.Vector1D" />
<Class name="org.apache.commons.math3.geometry.euclidean.twod.Vector2D" />
<Class name="org.apache.commons.math3.geometry.euclidean.threed.Vector3D" />
</Or>
<Method name="equals" params="java.lang.Object" returns="boolean" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<Match>
<Class name="org.apache.commons.math.optimization.linear.LinearConstraint" />
<Class name="org.apache.commons.math3.optimization.linear.LinearConstraint" />
<Method name="equals" params="java.lang.Object" returns="boolean" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<!-- The following equality test is intentional and needed for rounding purposes -->
<Match>
<Class name="org.apache.commons.math.util.MathUtils" />
<Class name="org.apache.commons.math3.util.MathUtils" />
<Method name="roundUnscaled" params="double,double,int" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<!-- The following equality test is intentional for division protection -->
<Match>
<Class name="org.apache.commons.math.analysis.interpolation.LoessInterpolator" />
<Class name="org.apache.commons.math3.analysis.interpolation.LoessInterpolator" />
<Method name="smooth" params="double[],double[]" returns="double[]" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<!-- The following equality test is intentional for infinity detection -->
<Match>
<Class name="org.apache.commons.math.util.FastMath" />
<Class name="org.apache.commons.math3.util.FastMath" />
<Method name="atan2" params="double,double" returns="double" />
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
</Match>
<!-- Spurious: Findbugs confused by final local variables -->
<Match>
<Class name="org.apache.commons.math.util.FastMath" />
<Class name="org.apache.commons.math3.util.FastMath" />
<Method name="atan" params="double,double,boolean" returns="double" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<!-- the following expositions of internal representation are intentional and documented -->
<Match>
<Class name="org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic"/>
<Class name="org.apache.commons.math3.stat.descriptive.AbstractUnivariateStatistic"/>
<Method name="getDataRef" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.optimization.RealPointValuePair"/>
<Class name="org.apache.commons.math3.optimization.RealPointValuePair"/>
<Method name="getPointRef" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.optimization.RealPointValuePair"/>
<Class name="org.apache.commons.math3.optimization.RealPointValuePair"/>
<Method name="&lt;init>" params="double[],double,boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.optimization.VectorialPointValuePair"/>
<Class name="org.apache.commons.math3.optimization.VectorialPointValuePair"/>
<Or>
<Method name="getPointRef" params="" returns="double[]" />
<Method name="getValueRef" params="" returns="double[]" />
@ -132,17 +132,17 @@
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.optimization.VectorialPointValuePair"/>
<Class name="org.apache.commons.math3.optimization.VectorialPointValuePair"/>
<Method name="&lt;init>" params="double[],double[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.ode.sampling.DummyStepInterpolator"/>
<Class name="org.apache.commons.math3.ode.sampling.DummyStepInterpolator"/>
<Method name="&lt;init>" params="double[],double[],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.ode.sampling.AbstractStepInterpolator"/>
<Class name="org.apache.commons.math3.ode.sampling.AbstractStepInterpolator"/>
<Or>
<Method name="getInterpolatedState" params="" returns="double[]" />
<Method name="getInterpolatedDerivatives" params="" returns="double[]" />
@ -150,67 +150,67 @@
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.ode.sampling.NordsieckStepInterpolator"/>
<Method name="reinitialize" params="double,double,double[],org.apache.commons.math.linear.Array2DRowRealMatrix" returns="void" />
<Class name="org.apache.commons.math3.ode.sampling.NordsieckStepInterpolator"/>
<Method name="reinitialize" params="double,double,double[],org.apache.commons.math3.linear.Array2DRowRealMatrix" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.ode.sampling.NordsieckStepInterpolator"/>
<Class name="org.apache.commons.math3.ode.sampling.NordsieckStepInterpolator"/>
<Method name="getInterpolatedStateVariation" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.BigMatrixImpl"/>
<Method name="&lt;init>" params="java.math.BigDecimal[][],boolean" returns="void" />
<Class name="org.apache.commons.math3.linear.BigMatrixImpl"/>
<Method name="&lt;init>" params="java.math3.BigDecimal[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.BigMatrixImpl"/>
<Method name="getDataRef" params="" returns="java.math.BigDecimal[][]" />
<Class name="org.apache.commons.math3.linear.BigMatrixImpl"/>
<Method name="getDataRef" params="" returns="java.math3.BigDecimal[][]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.Array2DRowRealMatrix"/>
<Class name="org.apache.commons.math3.linear.Array2DRowRealMatrix"/>
<Method name="&lt;init>" params="double[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.Array2DRowRealMatrix"/>
<Class name="org.apache.commons.math3.linear.Array2DRowRealMatrix"/>
<Method name="getDataRef" params="" returns="double[][]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.RealMatrixImpl"/>
<Class name="org.apache.commons.math3.linear.RealMatrixImpl"/>
<Method name="&lt;init>" params="double[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.RealMatrixImpl"/>
<Class name="org.apache.commons.math3.linear.RealMatrixImpl"/>
<Method name="getDataRef" params="" returns="double[][]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.BlockFieldMatrix"/>
<Method name="&lt;init>" params="int,int,org.apache.commons.math.FieldElement[][],boolean" returns="void" />
<Class name="org.apache.commons.math3.linear.BlockFieldMatrix"/>
<Method name="&lt;init>" params="int,int,org.apache.commons.math3.FieldElement[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.Array2DRowFieldMatrix"/>
<Method name="&lt;init>" params="org.apache.commons.math.Field,org.apache.commons.math.FieldElement[][],boolean" returns="void" />
<Class name="org.apache.commons.math3.linear.Array2DRowFieldMatrix"/>
<Method name="&lt;init>" params="org.apache.commons.math3.Field,org.apache.commons.math3.FieldElement[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.Array2DRowFieldMatrix"/>
<Method name="getDataRef" params="" returns="org.apache.commons.math.FieldElement[][]" />
<Class name="org.apache.commons.math3.linear.Array2DRowFieldMatrix"/>
<Method name="getDataRef" params="" returns="org.apache.commons.math3.FieldElement[][]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.BlockRealMatrix"/>
<Class name="org.apache.commons.math3.linear.BlockRealMatrix"/>
<Method name="&lt;init>" params="int,int,double[][],boolean" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.util.ResizableDoubleArray"/>
<Class name="org.apache.commons.math3.util.ResizableDoubleArray"/>
<Or>
<Method name="getValues" params="" returns="double[]" />
<Method name="getInternalValues" params="" returns="double[]" />
@ -218,52 +218,52 @@
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.ArrayRealVector"/>
<Class name="org.apache.commons.math3.linear.ArrayRealVector"/>
<Method name="getDataRef" params="" returns="double[]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.linear.ArrayFieldVector"/>
<Method name="getDataRef" params="" returns="org.apache.commons.math.FieldElement[]" />
<Class name="org.apache.commons.math3.linear.ArrayFieldVector"/>
<Method name="getDataRef" params="" returns="org.apache.commons.math3.FieldElement[]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<Match>
<Class name="org.apache.commons.math.stat.clustering.EuclideanIntegerPoint"/>
<Class name="org.apache.commons.math3.stat.clustering.EuclideanIntegerPoint"/>
<Method name="&lt;init>" params="int[]" returns="void" />
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Class name="org.apache.commons.math.stat.clustering.EuclideanIntegerPoint"/>
<Class name="org.apache.commons.math3.stat.clustering.EuclideanIntegerPoint"/>
<Method name="getPoint" params="" returns="int[]" />
<Bug pattern="EI_EXPOSE_REP" />
</Match>
<!-- The following cases are intentional unit tests for null parameters -->
<Match>
<Class name="org.apache.commons.math.stat.StatUtilsTest" />
<Class name="org.apache.commons.math3.stat.StatUtilsTest" />
<Method name="testPercentile" params="" returns="void" />
<Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL" />
</Match>
<Match>
<Class name="org.apache.commons.math.analysis.UnivariateRealSolverFactoryImplTest" />
<Class name="org.apache.commons.math3.analysis.UnivariateRealSolverFactoryImplTest" />
<Method name="testNewNewtonSolverNull" params="" returns="void" />
<Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" />
</Match>
<Match>
<Class name="org.apache.commons.math.stat.regression.OLSMultipleLinearRegressionTest" />
<Class name="org.apache.commons.math3.stat.regression.OLSMultipleLinearRegressionTest" />
<Method name="cannotAddNullYSampleData" params="" returns="void" />
<Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" />
</Match>
<!-- IntDoublePair intentionally implements Comparable inconsistently with equals -->
<Match>
<Class name="org.apache.commons.math.stat.ranking.NaturalRanking$IntDoublePair" />
<Class name="org.apache.commons.math3.stat.ranking.NaturalRanking$IntDoublePair" />
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS" />
</Match>
<!-- False positive warning from findbugs, the integer division result cast to double is correct here -->
<Match>
<Class name="org.apache.commons.math.stat.inference.MannWhitneyUTestImpl" />
<Class name="org.apache.commons.math3.stat.inference.MannWhitneyUTestImpl" />
<Method name="mannWhitneyU" params="double[],double[]" returns="double" />
<Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE" />
</Match>

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math;
package org.apache.commons.math3;
/**
* Interface representing a <a href="http://mathworld.wolfram.com/Field.html">field</a>.

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math;
package org.apache.commons.math3;
/**

View File

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

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;
/**
* Extension of {@link MultivariateFunction} representing a differentiable

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;
/**

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;
/**
* Extension of {@link UnivariateFunction} representing a differentiable univariate real function.

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;
/**
* Extension of {@link UnivariateMatrixFunction} representing a differentiable univariate matrix function.

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;
/**
* Extension of {@link UnivariateVectorFunction} representing a differentiable univariate vectorial function.

View File

@ -15,12 +15,12 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;
import org.apache.commons.math.analysis.function.Identity;
import org.apache.commons.math.exception.NotStrictlyPositiveException;
import org.apache.commons.math.exception.NumberIsTooLargeException;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math3.analysis.function.Identity;
import org.apache.commons.math3.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
/**
* Utilities for manipulating function objects.

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;
/**
* An interface representing a multivariate real function.
@ -30,9 +30,9 @@ public interface MultivariateFunction {
*
* @param point Point at which the function must be evaluated.
* @return the function value for the given point.
* @throws org.apache.commons.math.exception.DimensionMismatchException
* @throws org.apache.commons.math3.exception.DimensionMismatchException
* if the parameter's dimension is wrong for the function being evaluated.
* @throws org.apache.commons.math.exception.MathIllegalArgumentException
* @throws org.apache.commons.math3.exception.MathIllegalArgumentException
* when the activated method itself can ascertain that preconditions,
* specified in the API expressed at the level of the activated method,
* have been violated. In the vast majority of cases where Commons Math

View File

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

View File

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

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;
/**
* An interface representing a real function that depends on one independent

View File

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

View File

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

View File

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

View File

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

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Absolute value function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Arc-cosine function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Hyperbolic arc-cosine function.

View File

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

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Arc-sine function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Hyperbolic arc-sine function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Arc-tangent function.

View File

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

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Hyperbolic arc-tangent function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Cube root function.

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* {@code ceil} function.

View File

@ -15,9 +15,9 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
/**
* Constant function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Cosine function.

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Hyperbolic cosine function.

View File

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

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Exponential function.

View File

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

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* {@code floor} function.

View File

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

View File

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

View File

@ -15,9 +15,9 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
/**
* Identity function.

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
/**
* Inverse function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Natural logarithm function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Base 10 logarithm function.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,9 +15,9 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
/**
* Minus function.

View File

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

View File

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

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Power function.

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* {@code rint} function.

View File

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

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* {@code signum} function.

View File

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

View File

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

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Hyperbolic sine function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Square-root function.

View File

@ -15,14 +15,14 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import java.util.Arrays;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NullArgumentException;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NullArgumentException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.util.MathArrays;
/**
* <a href="http://en.wikipedia.org/wiki/Step_function">
@ -50,7 +50,7 @@ public class StepFunction implements UnivariateFunction {
*
* @param x Domain values where the function changes value.
* @param y Values of the function.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if the {@code x} array is not sorted in strictly increasing order.
* @throws NullArgumentException if {@code x} or {@code y} are {@code null}.
* @throws NoDataException if {@code x} or {@code y} are zero-length.

View File

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

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Tangent function.

View File

@ -15,11 +15,11 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* Hyperbolic tangent function.

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.function;
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath;
/**
* {@code ulp} function.

View File

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

View File

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

View File

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

View File

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

View File

@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.integration;
package org.apache.commons.math3.analysis.integration;
import org.apache.commons.math.exception.MaxCountExceededException;
import org.apache.commons.math.exception.NotStrictlyPositiveException;
import org.apache.commons.math.exception.NumberIsTooLargeException;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math.exception.TooManyEvaluationsException;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.TooManyEvaluationsException;
import org.apache.commons.math3.util.FastMath;
/**
* 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
* limitations under the License.
*/
package org.apache.commons.math.analysis.integration;
package org.apache.commons.math3.analysis.integration;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.exception.MathIllegalArgumentException;
import org.apache.commons.math.exception.MaxCountExceededException;
import org.apache.commons.math.exception.NullArgumentException;
import org.apache.commons.math.exception.TooManyEvaluationsException;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.MathIllegalArgumentException;
import org.apache.commons.math3.exception.MaxCountExceededException;
import org.apache.commons.math3.exception.NullArgumentException;
import org.apache.commons.math3.exception.TooManyEvaluationsException;
/**
* Interface for univariate real integration algorithms.

View File

@ -19,4 +19,4 @@
* Numerical integration (quadrature) algorithms for univariate real functions.
*
*/
package org.apache.commons.math.analysis.integration;
package org.apache.commons.math3.analysis.integration;

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.BivariateFunction;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.exception.OutOfRangeException;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math3.analysis.BivariateFunction;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.exception.OutOfRangeException;
import org.apache.commons.math3.util.MathArrays;
/**
* Function that implements the
@ -84,7 +84,7 @@ public class BicubicSplineInterpolatingFunction
* every grid point.
* @throws DimensionMismatchException if the various arrays do not contain
* the expected number of elements.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} or {@code y} are not strictly increasing.
* @throws NoDataException if any of the arrays has zero length.
*/

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.util.MathArrays;
/**
* Generates a bicubic interpolating function.

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.BivariateFunction;
import org.apache.commons.math3.analysis.BivariateFunction;
/**
* Interface representing a bivariate real interpolating function where the
@ -35,9 +35,9 @@ public interface BivariateGridInterpolator {
* @param fval The values of the interpolation points on all the grid knots:
* {@code fval[i][j] = f(xval[i], yval[j])}.
* @return a function which interpolates the dataset.
* @throws org.apache.commons.math.exception.NoDataException if any of
* @throws org.apache.commons.math3.exception.NoDataException if any of
* the arrays has zero length.
* @throws org.apache.commons.math.exception.DimensionMismatchException
* @throws org.apache.commons.math3.exception.DimensionMismatchException
* if the array lengths are inconsistent.
*/
BivariateFunction interpolate(double[] xval, double[] yval,

View File

@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import java.io.Serializable;
import org.apache.commons.math.analysis.polynomials.PolynomialFunctionLagrangeForm;
import org.apache.commons.math.analysis.polynomials.PolynomialFunctionNewtonForm;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunctionLagrangeForm;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunctionNewtonForm;
/**
* Implements the <a href="
@ -44,11 +44,11 @@ public class DividedDifferenceInterpolator
* @param x Interpolating points array.
* @param y Interpolating values array.
* @return a function which interpolates the dataset.
* @throws org.apache.commons.math.exception.DimensionMismatchException
* @throws org.apache.commons.math3.exception.DimensionMismatchException
* if the array lengths are different.
* @throws org.apache.commons.math.exception.NumberIsTooSmallException
* @throws org.apache.commons.math3.exception.NumberIsTooSmallException
* if the number of points is less than 2.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} is not sorted in strictly increasing order.
*/
public PolynomialFunctionNewtonForm interpolate(double x[], double y[]) {
@ -87,11 +87,11 @@ public class DividedDifferenceInterpolator
* @param x Interpolating points array.
* @param y Interpolating values array.
* @return a fresh copy of the divided difference array.
* @throws org.apache.commons.math.exception.DimensionMismatchException
* @throws org.apache.commons.math3.exception.DimensionMismatchException
* if the array lengths are different.
* @throws org.apache.commons.math.exception.NumberIsTooSmallException
* @throws org.apache.commons.math3.exception.NumberIsTooSmallException
* if the number of points is less than 2.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} is not sorted in strictly increasing order.
*/
protected static double[] computeDividedDifference(final double x[], final double y[]) {

View File

@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math3.util.MathArrays;
/**
* Implements a linear function for interpolation of real univariate functions.
@ -35,7 +35,7 @@ public class LinearInterpolator implements UnivariateInterpolator {
* @return a function which interpolates the data set
* @throws DimensionMismatchException if {@code x} and {@code y}
* have different sizes.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} is not sorted in strict increasing order.
* @throws NumberIsTooSmallException if the size of {@code x} is smaller
* than 2.

View File

@ -14,21 +14,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import java.io.Serializable;
import java.util.Arrays;
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math.exception.NotPositiveException;
import org.apache.commons.math.exception.OutOfRangeException;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math.util.MathUtils;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math3.exception.NotPositiveException;
import org.apache.commons.math3.exception.OutOfRangeException;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
import org.apache.commons.math3.util.FastMath;
import org.apache.commons.math3.util.MathUtils;
import org.apache.commons.math3.util.MathArrays;
/**
* Implements the <a href="http://en.wikipedia.org/wiki/Local_regression">
@ -160,18 +160,18 @@ public class LoessInterpolator
* Compute an interpolating function by performing a loess fit
* on the data at the original abscissae and then building a cubic spline
* with a
* {@link org.apache.commons.math.analysis.interpolation.SplineInterpolator}
* {@link org.apache.commons.math3.analysis.interpolation.SplineInterpolator}
* on the resulting fit.
*
* @param xval the arguments for the interpolation points
* @param yval the values for the interpolation points
* @return A cubic spline built upon a loess fit to the data at the original abscissae
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code xval} not sorted in strictly increasing order.
* @throws DimensionMismatchException if {@code xval} and {@code yval} have
* different sizes.
* @throws NoDataException if {@code xval} or {@code yval} has zero size.
* @throws org.apache.commons.math.exception.NotFiniteNumberException if
* @throws org.apache.commons.math3.exception.NotFiniteNumberException if
* any of the arguments and values are not finite real numbers.
* @throws NumberIsTooSmallException if the bandwidth is too small to
* accomodate the size of the input data (i.e. the bandwidth must be
@ -189,12 +189,12 @@ public class LoessInterpolator
* @param weights point weights: coefficients by which the robustness weight
* of a point is multiplied.
* @return the values of the loess fit at corresponding original abscissae.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code xval} not sorted in strictly increasing order.
* @throws DimensionMismatchException if {@code xval} and {@code yval} have
* different sizes.
* @throws NoDataException if {@code xval} or {@code yval} has zero size.
* @throws org.apache.commons.math.exception.NotFiniteNumberException if
* @throws org.apache.commons.math3.exception.NotFiniteNumberException if
* any of the arguments and values are not finite real numbers.
* @throws NumberIsTooSmallException if the bandwidth is too small to
* accomodate the size of the input data (i.e. the bandwidth must be
@ -353,12 +353,12 @@ public class LoessInterpolator
* @param xval the arguments for the interpolation points
* @param yval the values for the interpolation points
* @return values of the loess fit at corresponding original abscissae
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code xval} not sorted in strictly increasing order.
* @throws DimensionMismatchException if {@code xval} and {@code yval} have
* different sizes.
* @throws NoDataException if {@code xval} or {@code yval} has zero size.
* @throws org.apache.commons.math.exception.NotFiniteNumberException if
* @throws org.apache.commons.math3.exception.NotFiniteNumberException if
* any of the arguments and values are not finite real numbers.
* @throws NumberIsTooSmallException if the bandwidth is too small to
* accomodate the size of the input data (i.e. the bandwidth must be
@ -443,7 +443,7 @@ public class LoessInterpolator
* Check that all elements of an array are finite real numbers.
*
* @param values Values array.
* @throws org.apache.commons.math.exception.NotFiniteNumberException
* @throws org.apache.commons.math3.exception.NotFiniteNumberException
* if one of the values is not a finite real number.
*/
private static void checkAllFiniteReal(final double[] values) {

View File

@ -14,21 +14,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.math.analysis.MultivariateFunction;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.exception.NullArgumentException;
import org.apache.commons.math.linear.ArrayRealVector;
import org.apache.commons.math.linear.RealVector;
import org.apache.commons.math.random.UnitSphereRandomVectorGenerator;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.analysis.MultivariateFunction;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.exception.NullArgumentException;
import org.apache.commons.math3.linear.ArrayRealVector;
import org.apache.commons.math3.linear.RealVector;
import org.apache.commons.math3.random.UnitSphereRandomVectorGenerator;
import org.apache.commons.math3.util.FastMath;
/**
* Interpolating function that implements the

View File

@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.MultivariateFunction;
import org.apache.commons.math.exception.NotPositiveException;
import org.apache.commons.math.exception.NotStrictlyPositiveException;
import org.apache.commons.math.random.UnitSphereRandomVectorGenerator;
import org.apache.commons.math3.analysis.MultivariateFunction;
import org.apache.commons.math3.exception.NotPositiveException;
import org.apache.commons.math3.exception.NotStrictlyPositiveException;
import org.apache.commons.math3.random.UnitSphereRandomVectorGenerator;
/**
* Interpolator that implements the algorithm described in

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.MultivariateFunction;
import org.apache.commons.math3.analysis.MultivariateFunction;
/**
* Interface representing a univariate real interpolating function.
@ -36,14 +36,14 @@ public interface MultivariateInterpolator {
* point (where {@code d} is thus the dimension of the space).
* @param yval the values for the interpolation points
* @return a function which interpolates the data set
* @throws org.apache.commons.math.exception.MathIllegalArgumentException
* @throws org.apache.commons.math3.exception.MathIllegalArgumentException
* if the arguments violate assumptions made by the interpolation
* algorithm.
* @throws org.apache.commons.math.exception.DimensionMismatchException
* @throws org.apache.commons.math3.exception.DimensionMismatchException
* when the array dimensions are not consistent.
* @throws org.apache.commons.math.exception.NoDataException if an
* @throws org.apache.commons.math3.exception.NoDataException if an
* array has zero-length.
* @throws org.apache.commons.math.exception.NullArgumentException if
* @throws org.apache.commons.math3.exception.NullArgumentException if
* the arguments are {@code null}.
*/
MultivariateFunction interpolate(double[][] xval, double[] yval);

View File

@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import java.io.Serializable;
import org.apache.commons.math.analysis.polynomials.PolynomialFunctionLagrangeForm;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunctionLagrangeForm;
/**
* Implements the <a href="http://mathworld.wolfram.com/NevillesAlgorithm.html">
@ -44,11 +44,11 @@ public class NevilleInterpolator implements UnivariateInterpolator,
* @param x the interpolating points array
* @param y the interpolating values array
* @return a function which interpolates the data set
* @throws org.apache.commons.math.exception.DimensionMismatchException if
* @throws org.apache.commons.math3.exception.DimensionMismatchException if
* the array lengths are different.
* @throws org.apache.commons.math.exception.NumberIsTooSmallException if
* @throws org.apache.commons.math3.exception.NumberIsTooSmallException if
* the number of points is less than 2.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if two abscissae have the same value.
*/
public PolynomialFunctionLagrangeForm interpolate(double x[], double y[]) {

View File

@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math.optimization.general.GaussNewtonOptimizer;
import org.apache.commons.math.optimization.fitting.PolynomialFitter;
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.util.MathArrays;
import org.apache.commons.math3.optimization.general.GaussNewtonOptimizer;
import org.apache.commons.math3.optimization.fitting.PolynomialFitter;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
/**
* Generates a bicubic interpolation function.

View File

@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.math3.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math3.util.MathArrays;
/**
* Computes a natural (also known as "free", "unclamped") cubic spline interpolation for the data set.
@ -59,7 +59,7 @@ public class SplineInterpolator implements UnivariateInterpolator {
* @return a function which interpolates the data set
* @throws DimensionMismatchException if {@code x} and {@code y}
* have different sizes.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} is not sorted in strict increasing order.
* @throws NumberIsTooSmallException if the size of {@code x} is smaller
* than 3.

View File

@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.TrivariateFunction;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.exception.OutOfRangeException;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math3.analysis.TrivariateFunction;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.exception.OutOfRangeException;
import org.apache.commons.math3.util.MathArrays;
/**
* Function that implements the

View File

@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.util.MathArrays;
/**
* Generates a tricubic interpolating function.

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.TrivariateFunction;
import org.apache.commons.math3.analysis.TrivariateFunction;
/**
* Interface representing a trivariate real interpolating function where the
@ -38,9 +38,9 @@ public interface TrivariateGridInterpolator {
* @param fval the values of the interpolation points on all the grid knots:
* {@code fval[i][j][k] = f(xval[i], yval[j], zval[k])}.
* @return a function that interpolates the data set.
* @throws org.apache.commons.math.exception.NoDataException if any of
* @throws org.apache.commons.math3.exception.NoDataException if any of
* the arrays has zero length.
* @throws org.apache.commons.math.exception.DimensionMismatchException
* @throws org.apache.commons.math3.exception.DimensionMismatchException
* if the array lengths are inconsistent.
*/
TrivariateFunction interpolate(double[] xval, double[] yval, double[] zval,

View File

@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction;
/**
* Interface representing a univariate real interpolating function.
@ -30,7 +30,7 @@ public interface UnivariateInterpolator {
* @param xval Arguments for the interpolation points.
* @param yval Values for the interpolation points.
* @return a function which interpolates the dataset.
* @throws org.apache.commons.math.exception.MathIllegalArgumentException
* @throws org.apache.commons.math3.exception.MathIllegalArgumentException
* if the arguments violate assumptions made by the interpolation
* algorithm.
*/

View File

@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.util.MathUtils;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.util.MathUtils;
import org.apache.commons.math3.util.MathArrays;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
/**
* Adapter for classes implementing the {@link UnivariateInterpolator}

View File

@ -19,4 +19,4 @@
* Univariate real functions interpolation algorithms.
*
*/
package org.apache.commons.math.analysis.interpolation;
package org.apache.commons.math3.analysis.interpolation;

View File

@ -30,4 +30,4 @@
* </p>
*
*/
package org.apache.commons.math.analysis;
package org.apache.commons.math3.analysis;

View File

@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.polynomials;
package org.apache.commons.math3.analysis.polynomials;
import java.io.Serializable;
import java.util.Arrays;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.exception.NullArgumentException;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.analysis.ParametricUnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math.util.MathUtils;
import org.apache.commons.math3.exception.util.LocalizedFormats;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.exception.NullArgumentException;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.ParametricUnivariateFunction;
import org.apache.commons.math3.util.FastMath;
import org.apache.commons.math3.util.MathUtils;
/**
* Immutable representation of a real polynomial function with real coefficients.

View File

@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.polynomials;
package org.apache.commons.math3.analysis.polynomials;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.util.FastMath;
import org.apache.commons.math3.util.MathArrays;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
/**
* Implements the representation of a real polynomial function in
@ -65,7 +65,7 @@ public class PolynomialFunctionLagrangeForm implements UnivariateFunction {
* @param y function values at interpolating points
* @throws DimensionMismatchException if the array lengths are different.
* @throws NumberIsTooSmallException if the number of points is less than 2.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if two abscissae have the same value.
*/
public PolynomialFunctionLagrangeForm(double x[], double y[]) {
@ -89,7 +89,7 @@ public class PolynomialFunctionLagrangeForm implements UnivariateFunction {
* @return the function value.
* @throws DimensionMismatchException if {@code x} and {@code y} have
* different lengths.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} is not sorted in strictly increasing order.
* @throws NumberIsTooSmallException if the size of {@code x} is less
* than 2.
@ -163,7 +163,7 @@ public class PolynomialFunctionLagrangeForm implements UnivariateFunction {
* @return the function value.
* @throws DimensionMismatchException if {@code x} and {@code y} have
* different lengths.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} is not sorted in strictly increasing order.
* @throws NumberIsTooSmallException if the size of {@code x} is less
* than 2.
@ -196,7 +196,7 @@ public class PolynomialFunctionLagrangeForm implements UnivariateFunction {
* @return the function value.
* @throws DimensionMismatchException if {@code x} and {@code y} have
* different lengths.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} is not sorted in strictly increasing order.
* @throws NumberIsTooSmallException if the size of {@code x} is less
* than 2.
@ -302,7 +302,7 @@ public class PolynomialFunctionLagrangeForm implements UnivariateFunction {
* @param abort Whether to throw an exception if {@code x} is not sorted.
* @throws DimensionMismatchException if the array lengths are different.
* @throws NumberIsTooSmallException if the number of points is less than 2.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException
* if {@code x} is not sorted in strictly increasing order and {@code abort}
* is {@code true}.
* @return {@code false} if the {@code x} is not sorted in increasing order,

View File

@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.polynomials;
package org.apache.commons.math3.analysis.polynomials;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math3.exception.NoDataException;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.util.LocalizedFormats;
/**
* Implements the representation of a real polynomial function in
@ -68,7 +68,7 @@ public class PolynomialFunctionNewtonForm implements UnivariateFunction {
*
* @param a Coefficients in Newton form formula.
* @param c Centers.
* @throws org.apache.commons.math.exception.NullArgumentException if
* @throws org.apache.commons.math3.exception.NullArgumentException if
* any argument is {@code null}.
* @throws NoDataException if any array has zero length.
* @throws DimensionMismatchException if the size difference between
@ -154,7 +154,7 @@ public class PolynomialFunctionNewtonForm implements UnivariateFunction {
* @param c Centers.
* @param z Point at which the function value is to be computed.
* @return the function value.
* @throws org.apache.commons.math.exception.NullArgumentException if
* @throws org.apache.commons.math3.exception.NullArgumentException if
* any argument is {@code null}.
* @throws NoDataException if any array has zero length.
* @throws DimensionMismatchException if the size difference between
@ -203,12 +203,12 @@ public class PolynomialFunctionNewtonForm implements UnivariateFunction {
*
* @param a the coefficients in Newton form formula
* @param c the centers
* @throws org.apache.commons.math.exception.NullArgumentException if
* @throws org.apache.commons.math3.exception.NullArgumentException if
* any argument is {@code null}.
* @throws NoDataException if any array has zero length.
* @throws DimensionMismatchException if the size difference between
* {@code a} and {@code c} is not equal to 1.
* @see org.apache.commons.math.analysis.interpolation.DividedDifferenceInterpolator#computeDividedDifference(double[],
* @see org.apache.commons.math3.analysis.interpolation.DividedDifferenceInterpolator#computeDividedDifference(double[],
* double[])
*/
protected static void verifyInputArray(double a[], double c[]) {

View File

@ -14,18 +14,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.polynomials;
package org.apache.commons.math3.analysis.polynomials;
import java.util.Arrays;
import org.apache.commons.math.util.MathArrays;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math.exception.OutOfRangeException;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math.exception.DimensionMismatchException;
import org.apache.commons.math.exception.NullArgumentException;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math3.util.MathArrays;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.OutOfRangeException;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.NullArgumentException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
/**
* Represents a polynomial spline function.
@ -93,7 +93,7 @@ public class PolynomialSplineFunction implements DifferentiableUnivariateFunctio
* @throws NullArgumentException if either of the input arrays is {@code null}.
* @throws NumberIsTooSmallException if knots has length less than 2.
* @throws DimensionMismatchException if {@code polynomials.length != knots.length - 1}.
* @throws org.apache.commons.math.exception.NonMonotonicSequenceException if
* @throws org.apache.commons.math3.exception.NonMonotonicSequenceException if
* the {@code knots} array is not strictly increasing.
*
*/

View File

@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.analysis.polynomials;
package org.apache.commons.math3.analysis.polynomials;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.math.fraction.BigFraction;
import org.apache.commons.math.util.ArithmeticUtils;
import org.apache.commons.math.util.FastMath;
import org.apache.commons.math3.fraction.BigFraction;
import org.apache.commons.math3.util.ArithmeticUtils;
import org.apache.commons.math3.util.FastMath;
/**
* A collection of static methods that operate on or return polynomials.

View File

@ -20,4 +20,4 @@
* univariate real functions.
*
*/
package org.apache.commons.math.analysis.polynomials;
package org.apache.commons.math3.analysis.polynomials;

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
package org.apache.commons.math.analysis.solvers;
package org.apache.commons.math3.analysis.solvers;
import org.apache.commons.math.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction;
/**
* Provide a default implementation for several functions useful to generic
@ -60,7 +60,7 @@ public abstract class AbstractDifferentiableUnivariateSolver
*
* @param point Point at which the objective function must be evaluated.
* @return the objective function value at specified point.
* @throws org.apache.commons.math.exception.TooManyEvaluationsException
* @throws org.apache.commons.math3.exception.TooManyEvaluationsException
* if the maximal number of evaluations is exceeded.
*/
protected double computeDerivativeObjectiveValue(double point) {

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