Utility class moved to module "commons-math-legacy-core".
This commit is contained in:
parent
02d14e6791
commit
ba2a1c2434
|
@ -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.
|
|
@ -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;
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue