http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SecondMomentTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SecondMomentTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SecondMomentTest.java index 3e4b722..e42b2a0 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SecondMomentTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SecondMomentTest.java @@ -14,10 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.moment; +package org.apache.commons.math4.stat.descriptive.moment; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.moment.SecondMoment; /** * Test cases for the {@link SecondMoment} class. @@ -28,7 +29,7 @@ public class SecondMomentTest extends StorelessUnivariateStatisticAbstractTest { protected SecondMoment stat; /** - * @see org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + * @see org.apache.commons.math4.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ @Override public UnivariateStatistic getUnivariateStatistic() { @@ -36,7 +37,7 @@ public class SecondMomentTest extends StorelessUnivariateStatisticAbstractTest { } /** - * @see org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + * @see org.apache.commons.math4.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() */ @Override public double expectedValue() {
http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SemiVarianceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SemiVarianceTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SemiVarianceTest.java index 96f88f3..e9dc85a 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SemiVarianceTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SemiVarianceTest.java @@ -15,11 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.moment; +package org.apache.commons.math4.stat.descriptive.moment; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.stat.StatUtils; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.stat.StatUtils; +import org.apache.commons.math4.stat.descriptive.moment.SemiVariance; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SkewnessTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SkewnessTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SkewnessTest.java index b082783..099607f 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SkewnessTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/SkewnessTest.java @@ -14,10 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.moment; +package org.apache.commons.math4.stat.descriptive.moment; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.moment.Skewness; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviationTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviationTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviationTest.java index 44019d8..f695fc6 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviationTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviationTest.java @@ -14,11 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.moment; +package org.apache.commons.math4.stat.descriptive.moment; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.moment.Mean; +import org.apache.commons.math4.stat.descriptive.moment.SecondMoment; +import org.apache.commons.math4.stat.descriptive.moment.StandardDeviation; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMomentTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMomentTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMomentTest.java index 0c1f6f8..098dcfc 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMomentTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMomentTest.java @@ -14,10 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.moment; +package org.apache.commons.math4.stat.descriptive.moment; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.moment.ThirdMoment; /** * Test cases for the {@link ThirdMoment} class. @@ -28,7 +29,7 @@ public class ThirdMomentTest extends StorelessUnivariateStatisticAbstractTest{ protected ThirdMoment stat; /** - * @see org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + * @see org.apache.commons.math4.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ @Override public UnivariateStatistic getUnivariateStatistic() { @@ -36,7 +37,7 @@ public class ThirdMomentTest extends StorelessUnivariateStatisticAbstractTest{ } /** - * @see org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + * @see org.apache.commons.math4.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() */ @Override public double expectedValue() { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VarianceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VarianceTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VarianceTest.java index c4bf450..c683f83 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VarianceTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VarianceTest.java @@ -14,11 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.moment; +package org.apache.commons.math4.stat.descriptive.moment; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.moment.Mean; +import org.apache.commons.math4.stat.descriptive.moment.SecondMoment; +import org.apache.commons.math4.stat.descriptive.moment.StandardDeviation; +import org.apache.commons.math4.stat.descriptive.moment.Variance; +import org.apache.commons.math4.util.MathArrays; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovarianceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovarianceTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovarianceTest.java index 68f7e6f..3d2bbb6 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovarianceTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovarianceTest.java @@ -15,12 +15,12 @@ //specific language governing permissions and limitations //under the License. -package org.apache.commons.math3.stat.descriptive.moment; - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.linear.RealMatrix; +package org.apache.commons.math4.stat.descriptive.moment; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.stat.descriptive.moment.VectorialCovariance; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMeanTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMeanTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMeanTest.java index 8a3f479..41d43e7 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMeanTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMeanTest.java @@ -15,11 +15,11 @@ //specific language governing permissions and limitations //under the License. -package org.apache.commons.math3.stat.descriptive.moment; - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.TestUtils; +package org.apache.commons.math4.stat.descriptive.moment; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.stat.descriptive.moment.VectorialMean; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MaxTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MaxTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MaxTest.java index 83190d7..da80792 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MaxTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MaxTest.java @@ -14,10 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.rank; +package org.apache.commons.math4.stat.descriptive.rank; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.rank.Max; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MedianTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MedianTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MedianTest.java index ef1badf..c4bd114 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MedianTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MedianTest.java @@ -14,23 +14,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.rank; +package org.apache.commons.math4.stat.descriptive.rank; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.LEGACY; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_1; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_2; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_3; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_4; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_5; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_6; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_7; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_8; -import static org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType.R_9; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.LEGACY; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_1; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_2; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_3; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_4; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_5; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_6; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_7; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_8; +import static org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType.R_9; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType; -import org.apache.commons.math3.stat.ranking.NaNStrategy; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.UnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.rank.Median; +import org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType; +import org.apache.commons.math4.stat.ranking.NaNStrategy; import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -43,7 +44,7 @@ public class MedianTest extends UnivariateStatisticAbstractTest{ protected Median stat; /** - * {@link org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType type} + * {@link org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType type} * to be used while calling * {@link #getUnivariateStatistic()} */ http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MinTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MinTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MinTest.java index f2db645..296248a 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MinTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/MinTest.java @@ -14,10 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.rank; +package org.apache.commons.math4.stat.descriptive.rank; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.rank.Min; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java index 8f7295a..78969fb 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.rank; +package org.apache.commons.math4.stat.descriptive.rank; import java.io.IOException; import java.util.ArrayList; @@ -24,18 +24,20 @@ import java.util.Iterator; import java.util.LinkedHashSet; import java.util.Set; -import org.apache.commons.math3.distribution.LogNormalDistribution; -import org.apache.commons.math3.distribution.NormalDistribution; -import org.apache.commons.math3.distribution.RealDistribution; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.rank.PSquarePercentile.PSquareMarkers; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.distribution.LogNormalDistribution; +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.distribution.RealDistribution; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.rank.PSquarePercentile; +import org.apache.commons.math4.stat.descriptive.rank.Percentile; +import org.apache.commons.math4.stat.descriptive.rank.PSquarePercentile.PSquareMarkers; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PercentileTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PercentileTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PercentileTest.java index 5381213..3aa055f 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PercentileTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PercentileTest.java @@ -14,28 +14,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.rank; +package org.apache.commons.math4.stat.descriptive.rank; import java.util.Arrays; -import org.apache.commons.math3.distribution.NormalDistribution; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NotANumberException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.random.JDKRandomGenerator; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well1024a; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType; -import org.apache.commons.math3.stat.ranking.NaNStrategy; -import org.apache.commons.math3.util.CentralPivotingStrategy; -import org.apache.commons.math3.util.KthSelector; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.util.MedianOf3PivotingStrategy; -import org.apache.commons.math3.util.PivotingStrategyInterface; -import org.apache.commons.math3.util.RandomPivotingStrategy; +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NotANumberException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.random.JDKRandomGenerator; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well1024a; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.UnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.rank.Percentile; +import org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType; +import org.apache.commons.math4.stat.ranking.NaNStrategy; +import org.apache.commons.math4.util.CentralPivotingStrategy; +import org.apache.commons.math4.util.KthSelector; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.MedianOf3PivotingStrategy; +import org.apache.commons.math4.util.PivotingStrategyInterface; +import org.apache.commons.math4.util.RandomPivotingStrategy; import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -50,7 +51,7 @@ public class PercentileTest extends UnivariateStatisticAbstractTest{ private double quantile; /** - * {@link org.apache.commons.math3.stat.descriptive.rank.Percentile.EstimationType type} + * {@link org.apache.commons.math4.stat.descriptive.rank.Percentile.EstimationType type} * of estimation to be used while calling {@link #getUnivariateStatistic()} */ private Percentile.EstimationType type; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/summary/ProductTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/summary/ProductTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/summary/ProductTest.java index 7dcaa7c..8bd238c 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/summary/ProductTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/summary/ProductTest.java @@ -14,11 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.summary; +package org.apache.commons.math4.stat.descriptive.summary; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.summary.Product; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumLogTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumLogTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumLogTest.java index ad3576a..d7f6495 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumLogTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumLogTest.java @@ -14,11 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.summary; +package org.apache.commons.math4.stat.descriptive.summary; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.summary.SumOfLogs; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumSqTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumSqTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumSqTest.java index b19ca4e..0b722ed 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumSqTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumSqTest.java @@ -14,11 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.summary; +package org.apache.commons.math4.stat.descriptive.summary; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.summary.SumOfSquares; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumTest.java index 87a3f5e..fa72645 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/summary/SumTest.java @@ -14,11 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.summary; +package org.apache.commons.math4.stat.descriptive.summary; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest; -import org.apache.commons.math3.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; +import org.apache.commons.math4.stat.descriptive.UnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.summary.Sum; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/BinomialTestTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/BinomialTestTest.java b/src/test/java/org/apache/commons/math4/stat/inference/BinomialTestTest.java index 4ec371d..365f21d 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/BinomialTestTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/BinomialTestTest.java @@ -14,10 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NotPositiveException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.stat.inference.AlternativeHypothesis; +import org.apache.commons.math4.stat.inference.BinomialTest; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/ChiSquareTestTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/ChiSquareTestTest.java b/src/test/java/org/apache/commons/math4/stat/inference/ChiSquareTestTest.java index daf1882..2f0117d 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/ChiSquareTestTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/ChiSquareTestTest.java @@ -14,13 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.ZeroException; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.ZeroException; +import org.apache.commons.math4.stat.inference.ChiSquareTest; import org.junit.Assert; import org.junit.Test; @@ -170,8 +171,8 @@ public class ChiSquareTestTest { long[] obs = new long[] { 2372383, 584222, 257170, 17750155, 7903832, 489265, 209628, 393899 }; - org.apache.commons.math3.stat.inference.ChiSquareTest csti = - new org.apache.commons.math3.stat.inference.ChiSquareTest(); + org.apache.commons.math4.stat.inference.ChiSquareTest csti = + new org.apache.commons.math4.stat.inference.ChiSquareTest(); double cst = csti.chiSquareTest(exp, obs); Assert.assertEquals("chi-square p-value", 0.0, cst, 1E-3); Assert.assertEquals( "chi-square test statistic", http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/GTestTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/GTestTest.java b/src/test/java/org/apache/commons/math4/stat/inference/GTestTest.java index 228f0ce..f1aba28 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/GTestTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/GTestTest.java @@ -14,14 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.inference; - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.ZeroException; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.stat.inference; + +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.ZeroException; +import org.apache.commons.math4.stat.inference.GTest; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTestTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTestTest.java b/src/test/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTestTest.java index 9ac5c7c..e44972d 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTestTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTestTest.java @@ -15,12 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; -import org.apache.commons.math3.distribution.NormalDistribution; -import org.apache.commons.math3.distribution.UniformRealDistribution; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.distribution.UniformRealDistribution; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/MannWhitneyUTestTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/MannWhitneyUTestTest.java b/src/test/java/org/apache/commons/math4/stat/inference/MannWhitneyUTestTest.java index e46f8c5..d8c48e2 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/MannWhitneyUTestTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/MannWhitneyUTestTest.java @@ -14,10 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.inference.MannWhitneyUTest; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/OneWayAnovaTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/OneWayAnovaTest.java b/src/test/java/org/apache/commons/math4/stat/inference/OneWayAnovaTest.java index ee64981..3442382 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/OneWayAnovaTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/OneWayAnovaTest.java @@ -14,13 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.stat.descriptive.SummaryStatistics; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.stat.descriptive.SummaryStatistics; +import org.apache.commons.math4.stat.inference.OneWayAnova; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/TTestTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/TTestTest.java b/src/test/java/org/apache/commons/math4/stat/inference/TTestTest.java index 8bd38de..8f4357d 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/TTestTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/TTestTest.java @@ -14,13 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.stat.descriptive.SummaryStatistics; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.stat.descriptive.SummaryStatistics; +import org.apache.commons.math4.stat.inference.TTest; import org.junit.Assert; import org.junit.Before; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/TestUtilsTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/TestUtilsTest.java b/src/test/java/org/apache/commons/math4/stat/inference/TestUtilsTest.java index 69bd58a..5fa151f 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/TestUtilsTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/TestUtilsTest.java @@ -14,20 +14,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.distribution.NormalDistribution; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NotPositiveException; -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.OutOfRangeException; -import org.apache.commons.math3.stat.descriptive.SummaryStatistics; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.stat.descriptive.SummaryStatistics; +import org.apache.commons.math4.stat.inference.OneWayAnova; +import org.apache.commons.math4.stat.inference.TestUtils; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; @@ -174,8 +176,8 @@ public class TestUtilsTest { long[] obs = new long[] { 2372383, 584222, 257170, 17750155, 7903832, 489265, 209628, 393899 }; - org.apache.commons.math3.stat.inference.ChiSquareTest csti = - new org.apache.commons.math3.stat.inference.ChiSquareTest(); + org.apache.commons.math4.stat.inference.ChiSquareTest csti = + new org.apache.commons.math4.stat.inference.ChiSquareTest(); double cst = csti.chiSquareTest(exp, obs); Assert.assertEquals("chi-square p-value", 0.0, cst, 1E-3); Assert.assertEquals( "chi-square test statistic", http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTestTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTestTest.java b/src/test/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTestTest.java index 23ad58b..c435fbd 100644 --- a/src/test/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTestTest.java +++ b/src/test/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTestTest.java @@ -14,12 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; -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.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.stat.inference.WilcoxonSignedRankTest; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/interval/AgrestiCoullIntervalTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/interval/AgrestiCoullIntervalTest.java b/src/test/java/org/apache/commons/math4/stat/interval/AgrestiCoullIntervalTest.java index 2072b0e..ec804d1 100644 --- a/src/test/java/org/apache/commons/math4/stat/interval/AgrestiCoullIntervalTest.java +++ b/src/test/java/org/apache/commons/math4/stat/interval/AgrestiCoullIntervalTest.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.interval; +package org.apache.commons.math4.stat.interval; -import org.apache.commons.math3.stat.interval.AgrestiCoullInterval; -import org.apache.commons.math3.stat.interval.BinomialConfidenceInterval; -import org.apache.commons.math3.stat.interval.ConfidenceInterval; +import org.apache.commons.math4.stat.interval.AgrestiCoullInterval; +import org.apache.commons.math4.stat.interval.BinomialConfidenceInterval; +import org.apache.commons.math4.stat.interval.ConfidenceInterval; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/interval/BinomialConfidenceIntervalAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/interval/BinomialConfidenceIntervalAbstractTest.java b/src/test/java/org/apache/commons/math4/stat/interval/BinomialConfidenceIntervalAbstractTest.java index a346297..621c8ac 100644 --- a/src/test/java/org/apache/commons/math4/stat/interval/BinomialConfidenceIntervalAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/stat/interval/BinomialConfidenceIntervalAbstractTest.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.interval; +package org.apache.commons.math4.stat.interval; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.stat.interval.BinomialConfidenceInterval; -import org.apache.commons.math3.stat.interval.ConfidenceInterval; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.stat.interval.BinomialConfidenceInterval; +import org.apache.commons.math4.stat.interval.ConfidenceInterval; import org.junit.Before; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/interval/ClopperPearsonIntervalTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/interval/ClopperPearsonIntervalTest.java b/src/test/java/org/apache/commons/math4/stat/interval/ClopperPearsonIntervalTest.java index 2dfe1be..e0bcc5b 100644 --- a/src/test/java/org/apache/commons/math4/stat/interval/ClopperPearsonIntervalTest.java +++ b/src/test/java/org/apache/commons/math4/stat/interval/ClopperPearsonIntervalTest.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.interval; +package org.apache.commons.math4.stat.interval; -import org.apache.commons.math3.stat.interval.BinomialConfidenceInterval; -import org.apache.commons.math3.stat.interval.ClopperPearsonInterval; -import org.apache.commons.math3.stat.interval.ConfidenceInterval; +import org.apache.commons.math4.stat.interval.BinomialConfidenceInterval; +import org.apache.commons.math4.stat.interval.ClopperPearsonInterval; +import org.apache.commons.math4.stat.interval.ConfidenceInterval; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/interval/IntervalUtilsTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/interval/IntervalUtilsTest.java b/src/test/java/org/apache/commons/math4/stat/interval/IntervalUtilsTest.java index 4f87371..a1715a6 100644 --- a/src/test/java/org/apache/commons/math4/stat/interval/IntervalUtilsTest.java +++ b/src/test/java/org/apache/commons/math4/stat/interval/IntervalUtilsTest.java @@ -14,8 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.interval; +package org.apache.commons.math4.stat.interval; +import org.apache.commons.math4.stat.interval.AgrestiCoullInterval; +import org.apache.commons.math4.stat.interval.ClopperPearsonInterval; +import org.apache.commons.math4.stat.interval.ConfidenceInterval; +import org.apache.commons.math4.stat.interval.IntervalUtils; +import org.apache.commons.math4.stat.interval.NormalApproximationInterval; +import org.apache.commons.math4.stat.interval.WilsonScoreInterval; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/interval/NormalApproximationIntervalTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/interval/NormalApproximationIntervalTest.java b/src/test/java/org/apache/commons/math4/stat/interval/NormalApproximationIntervalTest.java index 2b0384a..269b93c 100644 --- a/src/test/java/org/apache/commons/math4/stat/interval/NormalApproximationIntervalTest.java +++ b/src/test/java/org/apache/commons/math4/stat/interval/NormalApproximationIntervalTest.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.interval; +package org.apache.commons.math4.stat.interval; -import org.apache.commons.math3.stat.interval.BinomialConfidenceInterval; -import org.apache.commons.math3.stat.interval.ConfidenceInterval; -import org.apache.commons.math3.stat.interval.NormalApproximationInterval; +import org.apache.commons.math4.stat.interval.BinomialConfidenceInterval; +import org.apache.commons.math4.stat.interval.ConfidenceInterval; +import org.apache.commons.math4.stat.interval.NormalApproximationInterval; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/interval/WilsonScoreIntervalTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/interval/WilsonScoreIntervalTest.java b/src/test/java/org/apache/commons/math4/stat/interval/WilsonScoreIntervalTest.java index af64a54..7ed37cb 100644 --- a/src/test/java/org/apache/commons/math4/stat/interval/WilsonScoreIntervalTest.java +++ b/src/test/java/org/apache/commons/math4/stat/interval/WilsonScoreIntervalTest.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.interval; +package org.apache.commons.math4.stat.interval; -import org.apache.commons.math3.stat.interval.BinomialConfidenceInterval; -import org.apache.commons.math3.stat.interval.ConfidenceInterval; -import org.apache.commons.math3.stat.interval.WilsonScoreInterval; +import org.apache.commons.math4.stat.interval.BinomialConfidenceInterval; +import org.apache.commons.math4.stat.interval.ConfidenceInterval; +import org.apache.commons.math4.stat.interval.WilsonScoreInterval; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/ranking/NaturalRankingTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/ranking/NaturalRankingTest.java b/src/test/java/org/apache/commons/math4/stat/ranking/NaturalRankingTest.java index e1ddf06..e713720 100644 --- a/src/test/java/org/apache/commons/math4/stat/ranking/NaturalRankingTest.java +++ b/src/test/java/org/apache/commons/math4/stat/ranking/NaturalRankingTest.java @@ -14,14 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.ranking; +package org.apache.commons.math4.stat.ranking; import org.junit.Assert; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.exception.NotANumberException; -import org.apache.commons.math3.random.JDKRandomGenerator; -import org.apache.commons.math3.random.RandomGenerator; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.NotANumberException; +import org.apache.commons.math4.random.JDKRandomGenerator; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.stat.ranking.NaNStrategy; +import org.apache.commons.math4.stat.ranking.NaturalRanking; +import org.apache.commons.math4.stat.ranking.TiesStrategy; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/regression/GLSMultipleLinearRegressionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/regression/GLSMultipleLinearRegressionTest.java b/src/test/java/org/apache/commons/math4/stat/regression/GLSMultipleLinearRegressionTest.java index 3896487..29dbe07 100644 --- a/src/test/java/org/apache/commons/math4/stat/regression/GLSMultipleLinearRegressionTest.java +++ b/src/test/java/org/apache/commons/math4/stat/regression/GLSMultipleLinearRegressionTest.java @@ -14,21 +14,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.regression; +package org.apache.commons.math4.stat.regression; import org.junit.Assert; import org.junit.Before; import org.junit.Test; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.linear.MatrixUtils; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.linear.RealVector; -import org.apache.commons.math3.random.CorrelatedRandomVectorGenerator; -import org.apache.commons.math3.random.JDKRandomGenerator; -import org.apache.commons.math3.random.GaussianRandomGenerator; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.stat.correlation.Covariance; -import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.random.CorrelatedRandomVectorGenerator; +import org.apache.commons.math4.random.GaussianRandomGenerator; +import org.apache.commons.math4.random.JDKRandomGenerator; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.stat.correlation.Covariance; +import org.apache.commons.math4.stat.descriptive.DescriptiveStatistics; +import org.apache.commons.math4.stat.regression.GLSMultipleLinearRegression; +import org.apache.commons.math4.stat.regression.OLSMultipleLinearRegression; public class GLSMultipleLinearRegressionTest extends MultipleLinearRegressionAbstractTest { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegressionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegressionTest.java b/src/test/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegressionTest.java index 2ff023c..0034d75 100644 --- a/src/test/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegressionTest.java +++ b/src/test/java/org/apache/commons/math4/stat/regression/MillerUpdatingRegressionTest.java @@ -14,12 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.regression; - -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.stat.correlation.PearsonsCorrelation; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.stat.regression; + +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.stat.correlation.PearsonsCorrelation; +import org.apache.commons.math4.stat.regression.MillerUpdatingRegression; +import org.apache.commons.math4.stat.regression.OLSMultipleLinearRegression; +import org.apache.commons.math4.stat.regression.RegressionResults; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/regression/MultipleLinearRegressionAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/regression/MultipleLinearRegressionAbstractTest.java b/src/test/java/org/apache/commons/math4/stat/regression/MultipleLinearRegressionAbstractTest.java index ea5fecf..8e05600 100644 --- a/src/test/java/org/apache/commons/math4/stat/regression/MultipleLinearRegressionAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/stat/regression/MultipleLinearRegressionAbstractTest.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.regression; - -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.linear.RealVector; +package org.apache.commons.math4.stat.regression; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.stat.regression.AbstractMultipleLinearRegression; import org.junit.Assert; import org.junit.Before; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegressionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegressionTest.java b/src/test/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegressionTest.java index d719c8b..f5025b0 100644 --- a/src/test/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegressionTest.java +++ b/src/test/java/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegressionTest.java @@ -14,16 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.regression; +package org.apache.commons.math4.stat.regression; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.linear.Array2DRowRealMatrix; -import org.apache.commons.math3.linear.DefaultRealMatrixChangingVisitor; -import org.apache.commons.math3.linear.MatrixUtils; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.linear.RealVector; -import org.apache.commons.math3.stat.StatUtils; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.DefaultRealMatrixChangingVisitor; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.stat.StatUtils; +import org.apache.commons.math4.stat.regression.OLSMultipleLinearRegression; import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -786,7 +787,7 @@ public class OLSMultipleLinearRegressionTest extends MultipleLinearRegressionAbs /** * Anything requiring beta calculation should advertise SME. */ - @Test(expected=org.apache.commons.math3.linear.SingularMatrixException.class) + @Test(expected=org.apache.commons.math4.linear.SingularMatrixException.class) public void testSingularCalculateBeta() { OLSMultipleLinearRegression model = new OLSMultipleLinearRegression(); model.newSampleData(new double[] {1, 2, 3, 1, 2, 3, 1, 2, 3}, 3, 2); http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java b/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java index 544e141..087f5bc 100644 --- a/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java +++ b/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java @@ -14,14 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.stat.regression; +package org.apache.commons.math4.stat.regression; import java.util.Random; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.random.ISAACRandom; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.random.ISAACRandom; +import org.apache.commons.math4.stat.regression.ModelSpecificationException; +import org.apache.commons.math4.stat.regression.RegressionResults; +import org.apache.commons.math4.stat.regression.SimpleRegression; +import org.apache.commons.math4.stat.regression.UpdatingMultipleLinearRegression; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/transform/FastCosineTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/transform/FastCosineTransformerTest.java b/src/test/java/org/apache/commons/math4/transform/FastCosineTransformerTest.java index c4c4119..44a351a 100644 --- a/src/test/java/org/apache/commons/math4/transform/FastCosineTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/transform/FastCosineTransformerTest.java @@ -14,16 +14,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.transform; +package org.apache.commons.math4.transform; import java.util.Arrays; import java.util.Collection; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.function.Sin; -import org.apache.commons.math3.analysis.function.Sinc; -import org.apache.commons.math3.exception.MathIllegalStateException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.function.Sin; +import org.apache.commons.math4.analysis.function.Sinc; +import org.apache.commons.math4.exception.MathIllegalStateException; +import org.apache.commons.math4.transform.DctNormalization; +import org.apache.commons.math4.transform.FastCosineTransformer; +import org.apache.commons.math4.transform.RealTransformer; +import org.apache.commons.math4.transform.TransformType; +import org.apache.commons.math4.transform.TransformUtils; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java b/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java index af70eed..cb1e682 100644 --- a/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java @@ -14,18 +14,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.transform; +package org.apache.commons.math4.transform; import java.util.Random; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.function.Sin; -import org.apache.commons.math3.analysis.function.Sinc; -import org.apache.commons.math3.complex.Complex; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.function.Sin; +import org.apache.commons.math4.analysis.function.Sinc; +import org.apache.commons.math4.complex.Complex; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.transform.DftNormalization; +import org.apache.commons.math4.transform.FastFourierTransformer; +import org.apache.commons.math4.transform.TransformType; +import org.apache.commons.math4.transform.TransformUtils; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/transform/FastHadamardTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/transform/FastHadamardTransformerTest.java b/src/test/java/org/apache/commons/math4/transform/FastHadamardTransformerTest.java index 3d43287..89eeed4 100644 --- a/src/test/java/org/apache/commons/math4/transform/FastHadamardTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/transform/FastHadamardTransformerTest.java @@ -14,16 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.transform; +package org.apache.commons.math4.transform; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.math4.transform.FastHadamardTransformer; +import org.apache.commons.math4.transform.TransformType; +import org.apache.commons.math4.util.Precision; import org.junit.Assert; import org.junit.Test; /** * JUnit Test for HadamardTransformerTest - * @see org.apache.commons.math3.transform.FastHadamardTransformer + * @see org.apache.commons.math4.transform.FastHadamardTransformer */ public final class FastHadamardTransformerTest { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/transform/FastSineTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/transform/FastSineTransformerTest.java b/src/test/java/org/apache/commons/math4/transform/FastSineTransformerTest.java index f2a23bd..64b8e8d 100644 --- a/src/test/java/org/apache/commons/math4/transform/FastSineTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/transform/FastSineTransformerTest.java @@ -14,17 +14,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.transform; +package org.apache.commons.math4.transform; import java.util.Arrays; import java.util.Collection; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.function.Sin; -import org.apache.commons.math3.analysis.function.Sinc; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.MathIllegalStateException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.function.Sin; +import org.apache.commons.math4.analysis.function.Sinc; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathIllegalStateException; +import org.apache.commons.math4.transform.DstNormalization; +import org.apache.commons.math4.transform.FastSineTransformer; +import org.apache.commons.math4.transform.RealTransformer; +import org.apache.commons.math4.transform.TransformType; +import org.apache.commons.math4.transform.TransformUtils; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/transform/RealTransformerAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/transform/RealTransformerAbstractTest.java b/src/test/java/org/apache/commons/math4/transform/RealTransformerAbstractTest.java index 552eda1..1e3bf8c 100644 --- a/src/test/java/org/apache/commons/math4/transform/RealTransformerAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/transform/RealTransformerAbstractTest.java @@ -14,15 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.transform; +package org.apache.commons.math4.transform; import java.util.Random; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.transform.RealTransformer; +import org.apache.commons.math4.transform.TransformType; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/ArithmeticUtilsTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/ArithmeticUtilsTest.java b/src/test/java/org/apache/commons/math4/util/ArithmeticUtilsTest.java index ecf0187..74c8564 100644 --- a/src/test/java/org/apache/commons/math4/util/ArithmeticUtilsTest.java +++ b/src/test/java/org/apache/commons/math4/util/ArithmeticUtilsTest.java @@ -14,15 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; import java.util.ArrayList; import java.util.Arrays; import java.math.BigInteger; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.random.RandomDataGenerator; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.random.RandomDataGenerator; +import org.apache.commons.math4.util.ArithmeticUtils; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/BigRealFieldTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/BigRealFieldTest.java b/src/test/java/org/apache/commons/math4/util/BigRealFieldTest.java index 0f9af0e..01000e4 100644 --- a/src/test/java/org/apache/commons/math4/util/BigRealFieldTest.java +++ b/src/test/java/org/apache/commons/math4/util/BigRealFieldTest.java @@ -14,10 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; -import org.apache.commons.math3.TestUtils; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.util.BigReal; +import org.apache.commons.math4.util.BigRealField; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/BigRealTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/BigRealTest.java b/src/test/java/org/apache/commons/math4/util/BigRealTest.java index 0a957f3..b0ac794 100644 --- a/src/test/java/org/apache/commons/math4/util/BigRealTest.java +++ b/src/test/java/org/apache/commons/math4/util/BigRealTest.java @@ -14,14 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; import java.math.BigDecimal; import java.math.BigInteger; import java.math.MathContext; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.util.BigReal; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/CombinationsTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/CombinationsTest.java b/src/test/java/org/apache/commons/math4/util/CombinationsTest.java index 99b8e60..83baa89 100644 --- a/src/test/java/org/apache/commons/math4/util/CombinationsTest.java +++ b/src/test/java/org/apache/commons/math4/util/CombinationsTest.java @@ -14,13 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; import java.util.Iterator; import java.util.Comparator; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; + +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.util.Combinations; +import org.apache.commons.math4.util.CombinatoricsUtils; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/CombinatoricsUtilsTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/CombinatoricsUtilsTest.java b/src/test/java/org/apache/commons/math4/util/CombinatoricsUtilsTest.java index d5aa34d..0ad8a02 100644 --- a/src/test/java/org/apache/commons/math4/util/CombinatoricsUtilsTest.java +++ b/src/test/java/org/apache/commons/math4/util/CombinatoricsUtilsTest.java @@ -14,17 +14,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.util.ArithmeticUtils; +import org.apache.commons.math4.util.CombinatoricsUtils; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/ContinuedFractionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/ContinuedFractionTest.java b/src/test/java/org/apache/commons/math4/util/ContinuedFractionTest.java index cff2114..686fb51 100644 --- a/src/test/java/org/apache/commons/math4/util/ContinuedFractionTest.java +++ b/src/test/java/org/apache/commons/math4/util/ContinuedFractionTest.java @@ -14,8 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; +import org.apache.commons.math4.util.ContinuedFraction; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/Decimal64Test.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/Decimal64Test.java b/src/test/java/org/apache/commons/math4/util/Decimal64Test.java index bf96c71..45d5fae 100644 --- a/src/test/java/org/apache/commons/math4/util/Decimal64Test.java +++ b/src/test/java/org/apache/commons/math4/util/Decimal64Test.java @@ -14,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; -import org.apache.commons.math3.ExtendedFieldElementAbstractTest; +import org.apache.commons.math4.ExtendedFieldElementAbstractTest; +import org.apache.commons.math4.util.Decimal64; import org.junit.Assert; - import org.junit.Test; public class Decimal64Test extends ExtendedFieldElementAbstractTest<Decimal64> { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/DefaultTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/DefaultTransformerTest.java b/src/test/java/org/apache/commons/math4/util/DefaultTransformerTest.java index 1612fbe..826e976 100644 --- a/src/test/java/org/apache/commons/math4/util/DefaultTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/util/DefaultTransformerTest.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; import java.math.BigDecimal; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.util.DefaultTransformer; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/DoubleArrayAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/DoubleArrayAbstractTest.java b/src/test/java/org/apache/commons/math4/util/DoubleArrayAbstractTest.java index f2e94d2..f3c27e0 100644 --- a/src/test/java/org/apache/commons/math4/util/DoubleArrayAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/util/DoubleArrayAbstractTest.java @@ -14,9 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; -import org.apache.commons.math3.stat.StatUtils; +import org.apache.commons.math4.stat.StatUtils; +import org.apache.commons.math4.util.DoubleArray; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/FastMathStrictComparisonTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/FastMathStrictComparisonTest.java b/src/test/java/org/apache/commons/math4/util/FastMathStrictComparisonTest.java index 0a4cef5..77a0c7c 100644 --- a/src/test/java/org/apache/commons/math4/util/FastMathStrictComparisonTest.java +++ b/src/test/java/org/apache/commons/math4/util/FastMathStrictComparisonTest.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -24,7 +24,9 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.apache.commons.math3.exception.MathArithmeticException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.Precision; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/FastMathTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/FastMathTest.java b/src/test/java/org/apache/commons/math4/util/FastMathTest.java index f860754..5d36fea 100644 --- a/src/test/java/org/apache/commons/math4/util/FastMathTest.java +++ b/src/test/java/org/apache/commons/math4/util/FastMathTest.java @@ -14,21 +14,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.lang.reflect.Type; import java.math.BigInteger; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.dfp.Dfp; -import org.apache.commons.math3.dfp.DfpField; -import org.apache.commons.math3.dfp.DfpMath; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.random.MersenneTwister; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well1024a; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.dfp.Dfp; +import org.apache.commons.math4.dfp.DfpField; +import org.apache.commons.math4.dfp.DfpMath; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.random.MersenneTwister; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well1024a; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.Precision; import org.junit.Assert; import org.junit.Before; import org.junit.Ignore; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/FastMathTestPerformance.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/FastMathTestPerformance.java b/src/test/java/org/apache/commons/math4/util/FastMathTestPerformance.java index 849e458..eb09f68 100644 --- a/src/test/java/org/apache/commons/math4/util/FastMathTestPerformance.java +++ b/src/test/java/org/apache/commons/math4/util/FastMathTestPerformance.java @@ -14,9 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; -import org.apache.commons.math3.PerfTestUtils; +import org.apache.commons.math4.PerfTestUtils; +import org.apache.commons.math4.util.FastMath; import org.junit.BeforeClass; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/util/IncrementorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/util/IncrementorTest.java b/src/test/java/org/apache/commons/math4/util/IncrementorTest.java index 0c7d4fb..72cde88 100644 --- a/src/test/java/org/apache/commons/math4/util/IncrementorTest.java +++ b/src/test/java/org/apache/commons/math4/util/IncrementorTest.java @@ -11,10 +11,11 @@ * KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ -package org.apache.commons.math3.util; +package org.apache.commons.math4.util; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.util.Incrementor; import org.junit.Assert; import org.junit.Test;