Utility class moved to module "commons-math-legacy-core".

This commit is contained in:
Gilles Sadowski 2021-06-01 17:31:40 +02:00
parent 02d14e6791
commit ba2a1c2434
33 changed files with 35 additions and 35 deletions

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math4.legacy.util;
package org.apache.commons.math4.legacy.core;
/**
* Generic pair.

View File

@ -11,7 +11,7 @@
* KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.apache.commons.math4.legacy.util;
package org.apache.commons.math4.legacy.core;
import org.junit.Assert;
import org.junit.Test;

View File

@ -22,7 +22,7 @@ import java.util.TreeMap;
import org.apache.commons.math4.legacy.exception.DimensionMismatchException;
import org.apache.commons.math4.legacy.exception.NotStrictlyPositiveException;
import org.apache.commons.math4.legacy.exception.util.LocalizedFormats;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Base class for rules that determines the integration nodes and their

View File

@ -19,7 +19,7 @@ package org.apache.commons.math4.legacy.analysis.integration.gauss;
import org.apache.commons.math4.legacy.analysis.UnivariateFunction;
import org.apache.commons.math4.legacy.exception.DimensionMismatchException;
import org.apache.commons.math4.legacy.core.MathArrays;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Class that implements the Gaussian rule for

View File

@ -16,7 +16,7 @@
*/
package org.apache.commons.math4.legacy.analysis.integration.gauss;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import java.math.BigDecimal;
/**

View File

@ -17,7 +17,7 @@
package org.apache.commons.math4.legacy.analysis.integration.gauss;
import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Factory that creates a

View File

@ -23,7 +23,7 @@ import org.apache.commons.math4.legacy.analysis.polynomials.PolynomialsUtils;
import org.apache.commons.math4.legacy.linear.EigenDecomposition;
import org.apache.commons.math4.legacy.linear.MatrixUtils;
import org.apache.commons.math4.legacy.linear.RealMatrix;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Factory that creates Gauss-type quadrature rule using Laguerre polynomials.

View File

@ -19,7 +19,7 @@ package org.apache.commons.math4.legacy.analysis.integration.gauss;
import java.math.BigDecimal;
import java.math.MathContext;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Factory that creates Gauss-type quadrature rule using Legendre polynomials.

View File

@ -16,7 +16,7 @@
*/
package org.apache.commons.math4.legacy.analysis.integration.gauss;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Factory that creates Gauss-type quadrature rule using Legendre polynomials.

View File

@ -17,7 +17,7 @@
package org.apache.commons.math4.legacy.analysis.integration.gauss;
import org.apache.commons.math4.legacy.analysis.UnivariateFunction;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* This class's implements {@link #integrate(UnivariateFunction) integrate}

View File

@ -31,7 +31,7 @@ import org.apache.commons.math4.legacy.exception.util.LocalizedFormats;
import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.rng.sampling.DiscreteProbabilityCollectionSampler;
import org.apache.commons.math4.legacy.core.MathArrays;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* <p>A generic implementation of a

View File

@ -29,7 +29,7 @@ import org.apache.commons.math4.legacy.exception.NotANumberException;
import org.apache.commons.math4.legacy.exception.NotFiniteNumberException;
import org.apache.commons.math4.legacy.exception.NotPositiveException;
import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* <p>Implementation of an integer-valued {@link EnumeratedDistribution}.</p>

View File

@ -31,7 +31,7 @@ import org.apache.commons.math4.legacy.exception.NotFiniteNumberException;
import org.apache.commons.math4.legacy.exception.NotPositiveException;
import org.apache.commons.math4.legacy.exception.OutOfRangeException;
import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* <p>Implementation of a real-valued {@link EnumeratedDistribution}.

View File

@ -21,7 +21,7 @@ import java.util.List;
import org.apache.commons.math4.legacy.exception.DimensionMismatchException;
import org.apache.commons.math4.legacy.exception.NotPositiveException;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Multivariate normal mixture distribution.

View File

@ -24,7 +24,7 @@ import org.apache.commons.math4.legacy.exception.MathArithmeticException;
import org.apache.commons.math4.legacy.exception.NotPositiveException;
import org.apache.commons.math4.legacy.exception.util.LocalizedFormats;
import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Class for representing <a href="http://en.wikipedia.org/wiki/Mixture_model">

View File

@ -34,7 +34,7 @@ import org.apache.commons.math4.legacy.linear.SingularMatrixException;
import org.apache.commons.math4.legacy.stat.correlation.Covariance;
import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
import org.apache.commons.math4.legacy.core.MathArrays;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Expectation-Maximization algorithm for fitting the parameters of

View File

@ -24,7 +24,7 @@ import org.apache.commons.math4.legacy.linear.Array2DRowRealMatrix;
import org.apache.commons.math4.legacy.linear.ArrayRealVector;
import org.apache.commons.math4.legacy.linear.RealMatrix;
import org.apache.commons.math4.legacy.linear.RealVector;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import java.util.Arrays;

View File

@ -32,7 +32,7 @@ import org.apache.commons.math4.legacy.linear.SingularMatrixException;
import org.apache.commons.math4.legacy.linear.SingularValueDecomposition;
import org.apache.commons.math4.legacy.optim.ConvergenceChecker;
import org.apache.commons.math4.legacy.core.IntegerSequence;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Gauss-Newton least-squares solver.

View File

@ -32,7 +32,7 @@ import org.apache.commons.math4.legacy.optim.ConvergenceChecker;
import org.apache.commons.math4.legacy.optim.PointVectorValuePair;
import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
import org.apache.commons.math4.legacy.core.IntegerSequence;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* A Factory for creating {@link LeastSquaresProblem}s.

View File

@ -18,7 +18,7 @@ package org.apache.commons.math4.legacy.fitting.leastsquares;
import org.apache.commons.math4.legacy.linear.RealMatrix;
import org.apache.commons.math4.legacy.linear.RealVector;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* A interface for functions that compute a vector of values and can compute their

View File

@ -20,7 +20,7 @@ package org.apache.commons.math4.legacy.ml.clustering;
import org.apache.commons.math4.legacy.exception.NullArgumentException;
import org.apache.commons.math4.legacy.exception.NumberIsTooSmallException;
import org.apache.commons.math4.legacy.ml.distance.DistanceMeasure;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.rng.sampling.ListSampler;

View File

@ -18,7 +18,7 @@ package org.apache.commons.math4.legacy.optim;
import java.io.Serializable;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* This class holds a point and the value of an objective function at

View File

@ -18,7 +18,7 @@ package org.apache.commons.math4.legacy.optim;
import java.io.Serializable;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* This class holds a point and the vectorial value of an objective function at

View File

@ -18,7 +18,7 @@ package org.apache.commons.math4.legacy.optim;
import org.apache.commons.math4.legacy.exception.NotStrictlyPositiveException;
import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Simple implementation of the {@link ConvergenceChecker} interface using

View File

@ -24,7 +24,7 @@ import org.apache.commons.math4.legacy.linear.BlockRealMatrix;
import org.apache.commons.math4.legacy.linear.MatrixUtils;
import org.apache.commons.math4.legacy.linear.RealMatrix;
import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
/**
* Implementation of Kendall's Tau-b rank correlation.

View File

@ -26,7 +26,7 @@ import java.util.concurrent.Future;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.junit.Test;
import org.junit.Assert;

View File

@ -18,7 +18,7 @@ package org.apache.commons.math4.legacy.analysis.integration.gauss;
import org.apache.commons.math4.legacy.analysis.UnivariateFunction;
import org.apache.commons.math4.legacy.analysis.function.Constant;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.junit.Test;
import org.junit.Assert;

View File

@ -28,7 +28,7 @@ import org.apache.commons.math4.legacy.exception.NotANumberException;
import org.apache.commons.math4.legacy.exception.NotFiniteNumberException;
import org.apache.commons.math4.legacy.exception.NotPositiveException;
import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.rng.simple.RandomSource;
import org.junit.Assert;

View File

@ -21,7 +21,7 @@ import java.util.List;
import org.apache.commons.math4.legacy.exception.MathArithmeticException;
import org.apache.commons.math4.legacy.exception.NotPositiveException;
import org.apache.commons.rng.simple.RandomSource;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.junit.Assert;
import org.junit.Test;
import org.junit.Ignore;

View File

@ -28,7 +28,7 @@ import org.apache.commons.math4.legacy.exception.NotStrictlyPositiveException;
import org.apache.commons.math4.legacy.exception.NumberIsTooSmallException;
import org.apache.commons.math4.legacy.linear.Array2DRowRealMatrix;
import org.apache.commons.math4.legacy.linear.RealMatrix;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.junit.Assert;
import org.junit.Test;

View File

@ -20,9 +20,9 @@ import org.junit.Assert;
import org.junit.Test;
import org.apache.commons.numbers.field.FP64;
import org.apache.commons.numbers.field.FP64Field;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.apache.commons.math4.legacy.linear.RealMatrix;
import org.apache.commons.math4.legacy.linear.Array2DRowRealMatrix;
/**
* Tests for {@link FieldDenseMatrix} (using {@link FP64} as field elements).

View File

@ -32,7 +32,7 @@ import org.apache.commons.math4.legacy.linear.RealVector;
import org.apache.commons.math4.legacy.optim.ConvergenceChecker;
import org.apache.commons.math4.legacy.optim.SimpleVectorValueChecker;
import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.junit.Assert;
import org.junit.Test;

View File

@ -25,7 +25,7 @@ import org.apache.commons.math4.legacy.linear.RealMatrix;
import org.apache.commons.math4.legacy.linear.RealVector;
import org.apache.commons.math4.legacy.linear.SingularMatrixException;
import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
import org.apache.commons.math4.legacy.util.Pair;
import org.apache.commons.math4.legacy.core.Pair;
import org.apache.commons.numbers.core.Precision;
import org.junit.Assert;
import org.junit.Test;