http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FirstMoment.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FirstMoment.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FirstMoment.java index 5f2b95a..8ab7b0f 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FirstMoment.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FirstMoment.java @@ -14,13 +14,13 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.MathUtils; /** * Computes the first moment (arithmetic mean). Uses the definitional formula:
http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FourthMoment.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FourthMoment.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FourthMoment.java index cf9d8ef..d7d07df 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FourthMoment.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/FourthMoment.java @@ -14,12 +14,12 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.util.MathUtils; /** * Computes a statistic related to the Fourth Central Moment. Specifically, http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java index bfee9df..41c58b9 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/GeometricMean.java @@ -14,19 +14,19 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.MathIllegalStateException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.summary.SumOfLogs; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathIllegalStateException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.summary.SumOfLogs; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * Returns the <a href="http://www.xycoon.com/geometric_mean.htm"> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java index be04fbe..4970058 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Kurtosis.java @@ -14,15 +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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Mean.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Mean.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Mean.java index aac3d78..94c58a2 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Mean.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Mean.java @@ -14,16 +14,16 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.WeightedEvaluation; -import org.apache.commons.math3.stat.descriptive.summary.Sum; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.WeightedEvaluation; +import org.apache.commons.math4.stat.descriptive.summary.Sum; +import org.apache.commons.math4.util.MathUtils; /** * <p>Computes the arithmetic mean of a set of values. Uses the definitional http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SecondMoment.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SecondMoment.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SecondMoment.java index 12715c0..e617ada 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SecondMoment.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SecondMoment.java @@ -14,12 +14,12 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.util.MathUtils; /** * Computes a statistic related to the Second Central Moment. Specifically, http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java index 563119a..10c8659 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math3.stat.descriptive.moment; +package org.apache.commons.math4.stat.descriptive.moment; import java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractUnivariateStatistic; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractUnivariateStatistic; +import org.apache.commons.math4.util.MathUtils; /** * <p>Computes the semivariance of a set of values with respect to a given cutoff value. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java index 9ecb0dd..db3d9f4 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Skewness.java @@ -14,15 +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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * Computes the skewness of the available values. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java index a6248c5..5847b13 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/StandardDeviation.java @@ -14,15 +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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * Computes the sample standard deviation. The standard deviation http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMoment.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMoment.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMoment.java index 2c5331d..ba74055 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMoment.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/ThirdMoment.java @@ -14,12 +14,12 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.util.MathUtils; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java index 1ba48e9..b1cf852 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/Variance.java @@ -14,16 +14,16 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.stat.descriptive.WeightedEvaluation; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.WeightedEvaluation; +import org.apache.commons.math4.util.MathUtils; /** * Computes the variance of the available values. By default, the unbiased http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovariance.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovariance.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovariance.java index 7f6f903..cf27522 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovariance.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialCovariance.java @@ -14,14 +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 java.io.Serializable; import java.util.Arrays; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.linear.MatrixUtils; -import org.apache.commons.math3.linear.RealMatrix; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; /** * Returns the covariance matrix of the available vectors. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMean.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMean.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMean.java index e06b3bc..cdc5a26 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMean.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/VectorialMean.java @@ -14,12 +14,12 @@ * 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 java.io.Serializable; import java.util.Arrays; -import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.DimensionMismatchException; /** * Returns the arithmetic mean of the available vectors. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/moment/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/package-info.java b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/package-info.java index e23ead7..48d3ef1 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/moment/package-info.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/moment/package-info.java @@ -17,4 +17,4 @@ /** * Summary statistics based on moments. */ -package org.apache.commons.math3.stat.descriptive.moment; +package org.apache.commons.math4.stat.descriptive.moment; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/package-info.java b/src/main/java/org/apache/commons/math4/stat/descriptive/package-info.java index 92fa5b3..dd73f99 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/package-info.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/package-info.java @@ -41,4 +41,4 @@ * </code> * */ -package org.apache.commons.math3.stat.descriptive; +package org.apache.commons.math4.stat.descriptive; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java index 75f145f..e76e68a 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Max.java @@ -14,14 +14,14 @@ * 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.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.MathUtils; /** * Returns the maximum of the available values. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java index 6350a0b..4aa10bf 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Median.java @@ -14,14 +14,14 @@ * 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.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.ranking.NaNStrategy; -import org.apache.commons.math3.util.KthSelector; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.ranking.NaNStrategy; +import org.apache.commons.math4.util.KthSelector; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java index c87e6f1..a0ddf86 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Min.java @@ -14,14 +14,14 @@ * 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.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.MathUtils; /** * Returns the minimum of the available values. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java index 3c82195..79df284 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.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.io.ObjectInputStream; @@ -26,18 +26,18 @@ import java.util.Collection; import java.util.Collections; import java.util.List; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.interpolation.LinearInterpolator; -import org.apache.commons.math3.analysis.interpolation.NevilleInterpolator; -import org.apache.commons.math3.analysis.interpolation.UnivariateInterpolator; -import org.apache.commons.math3.exception.InsufficientDataException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.util.MathUtils; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.interpolation.LinearInterpolator; +import org.apache.commons.math4.analysis.interpolation.NevilleInterpolator; +import org.apache.commons.math4.analysis.interpolation.UnivariateInterpolator; +import org.apache.commons.math4.exception.InsufficientDataException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.MathUtils; +import org.apache.commons.math4.util.Precision; /** * A {@link StorelessUnivariateStatistic} estimating percentiles using the http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Percentile.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Percentile.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Percentile.java index 69628f2..499123d 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Percentile.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/Percentile.java @@ -14,26 +14,26 @@ * 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.Serializable; import java.util.Arrays; import java.util.BitSet; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.stat.descriptive.AbstractUnivariateStatistic; -import org.apache.commons.math3.stat.ranking.NaNStrategy; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.KthSelector; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.util.MathUtils; -import org.apache.commons.math3.util.MedianOf3PivotingStrategy; -import org.apache.commons.math3.util.PivotingStrategyInterface; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.stat.descriptive.AbstractUnivariateStatistic; +import org.apache.commons.math4.stat.ranking.NaNStrategy; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.KthSelector; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.MathUtils; +import org.apache.commons.math4.util.MedianOf3PivotingStrategy; +import org.apache.commons.math4.util.PivotingStrategyInterface; +import org.apache.commons.math4.util.Precision; /** * Provides percentile computation. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/rank/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/package-info.java b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/package-info.java index da37b37..3d8d99a 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/rank/package-info.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/rank/package-info.java @@ -17,4 +17,4 @@ /** * Summary statistics based on ranks. */ -package org.apache.commons.math3.stat.descriptive.rank; +package org.apache.commons.math4.stat.descriptive.rank; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java index 7d313a5..dfbf613 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Product.java @@ -14,16 +14,16 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.stat.descriptive.WeightedEvaluation; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.stat.descriptive.WeightedEvaluation; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * Returns the product of the available values. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java index e12b6a1..6205d2a 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/Sum.java @@ -14,14 +14,14 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.MathUtils; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java index 19718af..57f725c 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfLogs.java @@ -14,20 +14,20 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * Returns the sum of the natural logs for this collection of values. * <p> - * Uses {@link org.apache.commons.math3.util.FastMath#log(double)} to compute the logs. + * Uses {@link org.apache.commons.math4.util.FastMath#log(double)} to compute the logs. * Therefore, * <ul> * <li>If any of values are < 0, the result is <code>NaN.</code></li> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java index 161d8c8..68c589b 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/SumOfSquares.java @@ -14,14 +14,14 @@ * 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 java.io.Serializable; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.stat.descriptive.AbstractStorelessUnivariateStatistic; +import org.apache.commons.math4.util.MathUtils; /** * Returns the sum of the squares of the available values. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/descriptive/summary/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/package-info.java b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/package-info.java index 2f07145..28e7c76 100644 --- a/src/main/java/org/apache/commons/math4/stat/descriptive/summary/package-info.java +++ b/src/main/java/org/apache/commons/math4/stat/descriptive/summary/package-info.java @@ -17,4 +17,4 @@ /** * Other summary statistics. */ -package org.apache.commons.math3.stat.descriptive.summary; +package org.apache.commons.math4.stat.descriptive.summary; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/AlternativeHypothesis.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/AlternativeHypothesis.java b/src/main/java/org/apache/commons/math4/stat/inference/AlternativeHypothesis.java index 527067e..3fb170d 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/AlternativeHypothesis.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/AlternativeHypothesis.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.inference; +package org.apache.commons.math4.stat.inference; /** * Represents an alternative hypothesis for a hypothesis test. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/BinomialTest.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/BinomialTest.java b/src/main/java/org/apache/commons/math4/stat/inference/BinomialTest.java index 2efe091..7b6ca26 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/BinomialTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/BinomialTest.java @@ -14,15 +14,15 @@ * 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.distribution.BinomialDistribution; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.MathInternalError; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.util.LocalizedFormats; +import org.apache.commons.math4.distribution.BinomialDistribution; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathInternalError; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; /** * Implements binomial test statistics. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java b/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java index 7e97ac1..fead59e 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/ChiSquareTest.java @@ -14,19 +14,19 @@ * 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.distribution.ChiSquaredDistribution; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -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.OutOfRangeException; -import org.apache.commons.math3.exception.ZeroException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; +package org.apache.commons.math4.stat.inference; + +import org.apache.commons.math4.distribution.ChiSquaredDistribution; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +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.OutOfRangeException; +import org.apache.commons.math4.exception.ZeroException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; /** * Implements Chi-Square test statistics. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/GTest.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/GTest.java b/src/main/java/org/apache/commons/math4/stat/inference/GTest.java index de1fbe3..2495804 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/GTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/GTest.java @@ -14,18 +14,18 @@ * 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.distribution.ChiSquaredDistribution; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -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.exception.util.LocalizedFormats; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.distribution.ChiSquaredDistribution; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +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.exception.util.LocalizedFormats; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; /** * Implements <a href="http://en.wikipedia.org/wiki/G-test">G Test</a> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java b/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java index 131d0c6..fbea82f 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java @@ -15,35 +15,35 @@ * limitations under the License. */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference; import java.math.BigDecimal; import java.util.Arrays; import java.util.Iterator; -import org.apache.commons.math3.distribution.RealDistribution; -import org.apache.commons.math3.exception.InsufficientDataException; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.TooManyIterationsException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.fraction.BigFraction; -import org.apache.commons.math3.fraction.BigFractionField; -import org.apache.commons.math3.fraction.FractionConversionException; -import org.apache.commons.math3.linear.Array2DRowFieldMatrix; -import org.apache.commons.math3.linear.FieldMatrix; -import org.apache.commons.math3.linear.MatrixUtils; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.random.RandomGenerator; -import org.apache.commons.math3.random.Well19937c; -import org.apache.commons.math3.util.CombinatoricsUtils; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; - -import static org.apache.commons.math3.util.MathUtils.PI_SQUARED; -import static org.apache.commons.math3.util.FastMath.PI; +import org.apache.commons.math4.distribution.RealDistribution; +import org.apache.commons.math4.exception.InsufficientDataException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.TooManyIterationsException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.fraction.BigFraction; +import org.apache.commons.math4.fraction.BigFractionField; +import org.apache.commons.math4.fraction.FractionConversionException; +import org.apache.commons.math4.linear.Array2DRowFieldMatrix; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.random.RandomGenerator; +import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.util.CombinatoricsUtils; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; + +import static org.apache.commons.math4.util.FastMath.PI; +import static org.apache.commons.math4.util.MathUtils.PI_SQUARED; /** * Implementation of the <a href="http://en.wikipedia.org/wiki/Kolmogorov-Smirnov_test"> @@ -358,13 +358,13 @@ public class KolmogorovSmirnovTest { * Calculates \(P(D_n < d)\) using the method described in [1] with quick decisions for extreme * values given in [2] (see above). The result is not exact as with * {@link #cdfExact(double, int)} because calculations are based on - * {@code double} rather than {@link org.apache.commons.math3.fraction.BigFraction}. + * {@code double} rather than {@link org.apache.commons.math4.fraction.BigFraction}. * * @param d statistic * @param n sample size * @return \(P(D_n < d)\) * @throws MathArithmeticException if algorithm fails to convert {@code h} to a - * {@link org.apache.commons.math3.fraction.BigFraction} in expressing {@code d} as \((k + * {@link org.apache.commons.math4.fraction.BigFraction} in expressing {@code d} as \((k * - h) / m\) for integer {@code k, m} and \(0 \le h < 1\) */ public double cdf(double d, int n) @@ -383,7 +383,7 @@ public class KolmogorovSmirnovTest { * @param n sample size * @return \(P(D_n < d)\) * @throws MathArithmeticException if the algorithm fails to convert {@code h} to a - * {@link org.apache.commons.math3.fraction.BigFraction} in expressing {@code d} as \((k + * {@link org.apache.commons.math4.fraction.BigFraction} in expressing {@code d} as \((k * - h) / m\) for integer {@code k, m} and \(0 \le h < 1\) */ public double cdfExact(double d, int n) @@ -398,13 +398,13 @@ public class KolmogorovSmirnovTest { * @param d statistic * @param n sample size * @param exact whether the probability should be calculated exact using - * {@link org.apache.commons.math3.fraction.BigFraction} everywhere at the expense of + * {@link org.apache.commons.math4.fraction.BigFraction} everywhere at the expense of * very slow execution time, or if {@code double} should be used convenient places to * gain speed. Almost never choose {@code true} in real applications unless you are very * sure; {@code true} is almost solely for verification purposes. * @return \(P(D_n < d)\) * @throws MathArithmeticException if algorithm fails to convert {@code h} to a - * {@link org.apache.commons.math3.fraction.BigFraction} in expressing {@code d} as \((k + * {@link org.apache.commons.math4.fraction.BigFraction} in expressing {@code d} as \((k * - h) / m\) for integer {@code k, m} and \(0 \le h < 1\). */ public double cdf(double d, int n, boolean exact) @@ -439,14 +439,14 @@ public class KolmogorovSmirnovTest { /** * Calculates the exact value of {@code P(D_n < d)} using the method described in [1] (reference - * in class javadoc above) and {@link org.apache.commons.math3.fraction.BigFraction} (see + * in class javadoc above) and {@link org.apache.commons.math4.fraction.BigFraction} (see * above). * * @param d statistic * @param n sample size * @return the two-sided probability of \(P(D_n < d)\) * @throws MathArithmeticException if algorithm fails to convert {@code h} to a - * {@link org.apache.commons.math3.fraction.BigFraction} in expressing {@code d} as \((k + * {@link org.apache.commons.math4.fraction.BigFraction} in expressing {@code d} as \((k * - h) / m\) for integer {@code k, m} and \(0 \le h < 1\). */ private double exactK(double d, int n) @@ -642,7 +642,7 @@ public class KolmogorovSmirnovTest { * @return H matrix * @throws NumberIsTooLargeException if fractional part is greater than 1 * @throws FractionConversionException if algorithm fails to convert {@code h} to a - * {@link org.apache.commons.math3.fraction.BigFraction} in expressing {@code d} as \((k + * {@link org.apache.commons.math4.fraction.BigFraction} in expressing {@code d} as \((k * - h) / m\) for integer {@code k, m} and \(0 <= h < 1\). */ private FieldMatrix<BigFraction> createExactH(double d, int n) http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/MannWhitneyUTest.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/MannWhitneyUTest.java b/src/main/java/org/apache/commons/math4/stat/inference/MannWhitneyUTest.java index 82fddb3..3fa34a3 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/MannWhitneyUTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/MannWhitneyUTest.java @@ -14,17 +14,17 @@ * 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.distribution.NormalDistribution; -import org.apache.commons.math3.exception.ConvergenceException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.stat.ranking.NaNStrategy; -import org.apache.commons.math3.stat.ranking.NaturalRanking; -import org.apache.commons.math3.stat.ranking.TiesStrategy; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.stat.inference; + +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.exception.ConvergenceException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +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.apache.commons.math4.util.FastMath; /** * An implementation of the Mann-Whitney U test (also called Wilcoxon rank-sum test). http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/OneWayAnova.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/OneWayAnova.java b/src/main/java/org/apache/commons/math4/stat/inference/OneWayAnova.java index d0c5fc1..90f4e96 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/OneWayAnova.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/OneWayAnova.java @@ -14,20 +14,20 @@ * 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.Collection; -import org.apache.commons.math3.distribution.FDistribution; -import org.apache.commons.math3.exception.ConvergenceException; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.util.LocalizedFormats; -import org.apache.commons.math3.stat.descriptive.SummaryStatistics; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.distribution.FDistribution; +import org.apache.commons.math4.exception.ConvergenceException; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.exception.util.LocalizedFormats; +import org.apache.commons.math4.stat.descriptive.SummaryStatistics; +import org.apache.commons.math4.util.MathUtils; /** * Implements one-way ANOVA (analysis of variance) statistics. @@ -35,9 +35,9 @@ import org.apache.commons.math3.util.MathUtils; * <p> Tests for differences between two or more categories of univariate data * (for example, the body mass index of accountants, lawyers, doctors and * computer programmers). When two categories are given, this is equivalent to - * the {@link org.apache.commons.math3.stat.inference.TTest}. + * the {@link org.apache.commons.math4.stat.inference.TTest}. * </p><p> - * Uses the {@link org.apache.commons.math3.distribution.FDistribution + * Uses the {@link org.apache.commons.math4.distribution.FDistribution * commons-math F Distribution implementation} to estimate exact p-values.</p> * <p>This implementation is based on a description at * http://faculty.vassar.edu/lowry/ch13pt1.html</p> @@ -103,7 +103,7 @@ public class OneWayAnova { * <code>categoryData</code> collection and each of these arrays must * contain at least two values.</li></ul></p><p> * This implementation uses the - * {@link org.apache.commons.math3.distribution.FDistribution + * {@link org.apache.commons.math4.distribution.FDistribution * commons-math F Distribution implementation} to estimate the exact * p-value, using the formula<pre> * p = 1 - cumulativeProbability(F)</pre> @@ -142,7 +142,7 @@ public class OneWayAnova { * <code>categoryData</code> collection and each of these statistics must * contain at least two values.</li></ul></p><p> * This implementation uses the - * {@link org.apache.commons.math3.distribution.FDistribution + * {@link org.apache.commons.math4.distribution.FDistribution * commons-math F Distribution implementation} to estimate the exact * p-value, using the formula<pre> * p = 1 - cumulativeProbability(F)</pre> @@ -223,7 +223,7 @@ public class OneWayAnova { * <li>alpha must be strictly greater than 0 and less than or equal to 0.5. * </li></ul></p><p> * This implementation uses the - * {@link org.apache.commons.math3.distribution.FDistribution + * {@link org.apache.commons.math4.distribution.FDistribution * commons-math F Distribution implementation} to estimate the exact * p-value, using the formula<pre> * p = 1 - cumulativeProbability(F)</pre> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/TTest.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/TTest.java b/src/main/java/org/apache/commons/math4/stat/inference/TTest.java index b0f76f6..2168099 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/TTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/TTest.java @@ -14,21 +14,21 @@ * 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.distribution.TDistribution; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoDataException; -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.exception.util.LocalizedFormats; -import org.apache.commons.math3.stat.StatUtils; -import org.apache.commons.math3.stat.descriptive.StatisticalSummary; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.stat.inference; + +import org.apache.commons.math4.distribution.TDistribution; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoDataException; +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.exception.util.LocalizedFormats; +import org.apache.commons.math4.stat.StatUtils; +import org.apache.commons.math4.stat.descriptive.StatisticalSummary; +import org.apache.commons.math4.util.FastMath; /** * An implementation for Student's t-tests. @@ -51,7 +51,7 @@ import org.apache.commons.math3.util.FastMath; * <p> * Input to tests can be either <code>double[]</code> arrays or * {@link StatisticalSummary} instances.</p><p> - * Uses commons-math {@link org.apache.commons.math3.distribution.TDistribution} + * Uses commons-math {@link org.apache.commons.math4.distribution.TDistribution} * implementation to estimate exact p-values.</p> * */ http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/TestUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/TestUtils.java b/src/main/java/org/apache/commons/math4/stat/inference/TestUtils.java index a92fb19..a2bcb3f 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/TestUtils.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/TestUtils.java @@ -14,23 +14,23 @@ * 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.Collection; -import org.apache.commons.math3.distribution.RealDistribution; -import org.apache.commons.math3.exception.ConvergenceException; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.InsufficientDataException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoDataException; -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.exception.ZeroException; -import org.apache.commons.math3.stat.descriptive.StatisticalSummary; +import org.apache.commons.math4.distribution.RealDistribution; +import org.apache.commons.math4.exception.ConvergenceException; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.InsufficientDataException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoDataException; +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.exception.ZeroException; +import org.apache.commons.math4.stat.descriptive.StatisticalSummary; /** * A collection of static methods to create inference test instances or to @@ -65,7 +65,7 @@ public class TestUtils { // CHECKSTYLE: stop JavadocMethodCheck /** - * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticT(double[], double[]) + * @see org.apache.commons.math4.stat.inference.TTest#homoscedasticT(double[], double[]) */ public static double homoscedasticT(final double[] sample1, final double[] sample2) throws NullArgumentException, NumberIsTooSmallException { @@ -73,7 +73,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticT(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math4.stat.inference.TTest#homoscedasticT(org.apache.commons.math4.stat.descriptive.StatisticalSummary, org.apache.commons.math4.stat.descriptive.StatisticalSummary) */ public static double homoscedasticT(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2) @@ -82,7 +82,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticTTest(double[], double[], double) + * @see org.apache.commons.math4.stat.inference.TTest#homoscedasticTTest(double[], double[], double) */ public static boolean homoscedasticTTest(final double[] sample1, final double[] sample2, final double alpha) @@ -92,7 +92,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticTTest(double[], double[]) + * @see org.apache.commons.math4.stat.inference.TTest#homoscedasticTTest(double[], double[]) */ public static double homoscedasticTTest(final double[] sample1, final double[] sample2) throws NullArgumentException, NumberIsTooSmallException, MaxCountExceededException { @@ -100,7 +100,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticTTest(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math4.stat.inference.TTest#homoscedasticTTest(org.apache.commons.math4.stat.descriptive.StatisticalSummary, org.apache.commons.math4.stat.descriptive.StatisticalSummary) */ public static double homoscedasticTTest(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2) @@ -109,7 +109,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#pairedT(double[], double[]) + * @see org.apache.commons.math4.stat.inference.TTest#pairedT(double[], double[]) */ public static double pairedT(final double[] sample1, final double[] sample2) throws NullArgumentException, NoDataException, @@ -118,7 +118,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[], double) + * @see org.apache.commons.math4.stat.inference.TTest#pairedTTest(double[], double[], double) */ public static boolean pairedTTest(final double[] sample1, final double[] sample2, final double alpha) @@ -128,7 +128,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[]) + * @see org.apache.commons.math4.stat.inference.TTest#pairedTTest(double[], double[]) */ public static double pairedTTest(final double[] sample1, final double[] sample2) throws NullArgumentException, NoDataException, DimensionMismatchException, @@ -137,7 +137,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#t(double, double[]) + * @see org.apache.commons.math4.stat.inference.TTest#t(double, double[]) */ public static double t(final double mu, final double[] observed) throws NullArgumentException, NumberIsTooSmallException { @@ -145,7 +145,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#t(double, org.apache.commons.math3.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math4.stat.inference.TTest#t(double, org.apache.commons.math4.stat.descriptive.StatisticalSummary) */ public static double t(final double mu, final StatisticalSummary sampleStats) throws NullArgumentException, NumberIsTooSmallException { @@ -153,7 +153,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#t(double[], double[]) + * @see org.apache.commons.math4.stat.inference.TTest#t(double[], double[]) */ public static double t(final double[] sample1, final double[] sample2) throws NullArgumentException, NumberIsTooSmallException { @@ -161,7 +161,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#t(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math4.stat.inference.TTest#t(org.apache.commons.math4.stat.descriptive.StatisticalSummary, org.apache.commons.math4.stat.descriptive.StatisticalSummary) */ public static double t(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2) @@ -170,7 +170,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#tTest(double, double[], double) + * @see org.apache.commons.math4.stat.inference.TTest#tTest(double, double[], double) */ public static boolean tTest(final double mu, final double[] sample, final double alpha) throws NullArgumentException, NumberIsTooSmallException, @@ -179,7 +179,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#tTest(double, double[]) + * @see org.apache.commons.math4.stat.inference.TTest#tTest(double, double[]) */ public static double tTest(final double mu, final double[] sample) throws NullArgumentException, NumberIsTooSmallException, @@ -188,7 +188,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#tTest(double, org.apache.commons.math3.stat.descriptive.StatisticalSummary, double) + * @see org.apache.commons.math4.stat.inference.TTest#tTest(double, org.apache.commons.math4.stat.descriptive.StatisticalSummary, double) */ public static boolean tTest(final double mu, final StatisticalSummary sampleStats, final double alpha) @@ -198,7 +198,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#tTest(double, org.apache.commons.math3.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math4.stat.inference.TTest#tTest(double, org.apache.commons.math4.stat.descriptive.StatisticalSummary) */ public static double tTest(final double mu, final StatisticalSummary sampleStats) throws NullArgumentException, NumberIsTooSmallException, @@ -207,7 +207,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#tTest(double[], double[], double) + * @see org.apache.commons.math4.stat.inference.TTest#tTest(double[], double[], double) */ public static boolean tTest(final double[] sample1, final double[] sample2, final double alpha) @@ -217,7 +217,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#tTest(double[], double[]) + * @see org.apache.commons.math4.stat.inference.TTest#tTest(double[], double[]) */ public static double tTest(final double[] sample1, final double[] sample2) throws NullArgumentException, NumberIsTooSmallException, @@ -226,7 +226,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#tTest(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary, double) + * @see org.apache.commons.math4.stat.inference.TTest#tTest(org.apache.commons.math4.stat.descriptive.StatisticalSummary, org.apache.commons.math4.stat.descriptive.StatisticalSummary, double) */ public static boolean tTest(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2, @@ -237,7 +237,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.TTest#tTest(org.apache.commons.math3.stat.descriptive.StatisticalSummary, org.apache.commons.math3.stat.descriptive.StatisticalSummary) + * @see org.apache.commons.math4.stat.inference.TTest#tTest(org.apache.commons.math4.stat.descriptive.StatisticalSummary, org.apache.commons.math4.stat.descriptive.StatisticalSummary) */ public static double tTest(final StatisticalSummary sampleStats1, final StatisticalSummary sampleStats2) @@ -247,7 +247,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquare(double[], long[]) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquare(double[], long[]) */ public static double chiSquare(final double[] expected, final long[] observed) throws NotPositiveException, NotStrictlyPositiveException, @@ -256,7 +256,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquare(long[][]) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquare(long[][]) */ public static double chiSquare(final long[][] counts) throws NullArgumentException, NotPositiveException, @@ -265,7 +265,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTest(double[], long[], double) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquareTest(double[], long[], double) */ public static boolean chiSquareTest(final double[] expected, final long[] observed, final double alpha) @@ -275,7 +275,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTest(double[], long[]) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquareTest(double[], long[]) */ public static double chiSquareTest(final double[] expected, final long[] observed) throws NotPositiveException, NotStrictlyPositiveException, @@ -284,7 +284,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTest(long[][], double) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquareTest(long[][], double) */ public static boolean chiSquareTest(final long[][] counts, final double alpha) throws NullArgumentException, DimensionMismatchException, @@ -293,7 +293,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTest(long[][]) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquareTest(long[][]) */ public static double chiSquareTest(final long[][] counts) throws NullArgumentException, DimensionMismatchException, @@ -302,7 +302,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareDataSetsComparison(long[], long[]) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquareDataSetsComparison(long[], long[]) * * @since 1.2 */ @@ -313,7 +313,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTestDataSetsComparison(long[], long[]) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquareTestDataSetsComparison(long[], long[]) * * @since 1.2 */ @@ -325,7 +325,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.ChiSquareTest#chiSquareTestDataSetsComparison(long[], long[], double) + * @see org.apache.commons.math4.stat.inference.ChiSquareTest#chiSquareTestDataSetsComparison(long[], long[], double) * * @since 1.2 */ @@ -338,7 +338,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.OneWayAnova#anovaFValue(Collection) + * @see org.apache.commons.math4.stat.inference.OneWayAnova#anovaFValue(Collection) * * @since 1.2 */ @@ -348,7 +348,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.OneWayAnova#anovaPValue(Collection) + * @see org.apache.commons.math4.stat.inference.OneWayAnova#anovaPValue(Collection) * * @since 1.2 */ @@ -359,7 +359,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.OneWayAnova#anovaTest(Collection,double) + * @see org.apache.commons.math4.stat.inference.OneWayAnova#anovaTest(Collection,double) * * @since 1.2 */ @@ -371,7 +371,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.GTest#g(double[], long[]) + * @see org.apache.commons.math4.stat.inference.GTest#g(double[], long[]) * @since 3.1 */ public static double g(final double[] expected, final long[] observed) @@ -381,7 +381,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.GTest#gTest( double[], long[] ) + * @see org.apache.commons.math4.stat.inference.GTest#gTest( double[], long[] ) * @since 3.1 */ public static double gTest(final double[] expected, final long[] observed) @@ -391,7 +391,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.GTest#gTestIntrinsic(double[], long[] ) + * @see org.apache.commons.math4.stat.inference.GTest#gTestIntrinsic(double[], long[] ) * @since 3.1 */ public static double gTestIntrinsic(final double[] expected, final long[] observed) @@ -401,7 +401,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.GTest#gTest( double[],long[],double) + * @see org.apache.commons.math4.stat.inference.GTest#gTest( double[],long[],double) * @since 3.1 */ public static boolean gTest(final double[] expected, final long[] observed, @@ -412,7 +412,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.GTest#gDataSetsComparison(long[], long[]) + * @see org.apache.commons.math4.stat.inference.GTest#gDataSetsComparison(long[], long[]) * @since 3.1 */ public static double gDataSetsComparison(final long[] observed1, @@ -422,7 +422,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.GTest#rootLogLikelihoodRatio(long, long, long, long) + * @see org.apache.commons.math4.stat.inference.GTest#rootLogLikelihoodRatio(long, long, long, long) * @since 3.1 */ public static double rootLogLikelihoodRatio(final long k11, final long k12, final long k21, final long k22) @@ -432,7 +432,7 @@ public class TestUtils { /** - * @see org.apache.commons.math3.stat.inference.GTest#gTestDataSetsComparison(long[], long[]) + * @see org.apache.commons.math4.stat.inference.GTest#gTestDataSetsComparison(long[], long[]) * @since 3.1 */ public static double gTestDataSetsComparison(final long[] observed1, @@ -443,7 +443,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.GTest#gTestDataSetsComparison(long[],long[],double) + * @see org.apache.commons.math4.stat.inference.GTest#gTestDataSetsComparison(long[],long[],double) * @since 3.1 */ public static boolean gTestDataSetsComparison(final long[] observed1, @@ -455,7 +455,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovStatistic(RealDistribution, double[]) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovStatistic(RealDistribution, double[]) * @since 3.3 */ public static double kolmogorovSmirnovStatistic(RealDistribution dist, double[] data) @@ -464,7 +464,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(RealDistribution, double[]) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(RealDistribution, double[]) * @since 3.3 */ public static double kolmogorovSmirnovTest(RealDistribution dist, double[] data) @@ -473,7 +473,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(RealDistribution, double[], boolean) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(RealDistribution, double[], boolean) * @since 3.3 */ public static double kolmogorovSmirnovTest(RealDistribution dist, double[] data, boolean strict) @@ -482,7 +482,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(RealDistribution, double[], double) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(RealDistribution, double[], double) * @since 3.3 */ public static boolean kolmogorovSmirnovTest(RealDistribution dist, double[] data, double alpha) @@ -491,7 +491,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovStatistic(double[], double[]) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovStatistic(double[], double[]) * @since 3.3 */ public static double kolmogorovSmirnovStatistic(double[] x, double[] y) @@ -500,7 +500,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(double[], double[]) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(double[], double[]) * @since 3.3 */ public static double kolmogorovSmirnovTest(double[] x, double[] y) @@ -509,7 +509,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(double[], double[], boolean) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#kolmogorovSmirnovTest(double[], double[], boolean) * @since 3.3 */ public static double kolmogorovSmirnovTest(double[] x, double[] y, boolean strict) @@ -518,7 +518,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#exactP(double, int, int, boolean) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#exactP(double, int, int, boolean) * @since 3.3 */ public static double exactP(double d, int m, int n, boolean strict) { @@ -526,7 +526,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#approximateP(double, int, int) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#approximateP(double, int, int) * @since 3.3 */ public static double approximateP(double d, int n, int m) { @@ -534,7 +534,7 @@ public class TestUtils { } /** - * @see org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest#monteCarloP(double, int, int, boolean, int) + * @see org.apache.commons.math4.stat.inference.KolmogorovSmirnovTest#monteCarloP(double, int, int, boolean, int) * @since 3.3 */ public static double monteCarloP(double d, int n, int m, boolean strict, int iterations) { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTest.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTest.java b/src/main/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTest.java index bd4d7e2..2bd303c 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/WilcoxonSignedRankTest.java @@ -14,19 +14,19 @@ * 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.distribution.NormalDistribution; -import org.apache.commons.math3.exception.ConvergenceException; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -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.math3.stat.ranking.NaNStrategy; -import org.apache.commons.math3.stat.ranking.NaturalRanking; -import org.apache.commons.math3.stat.ranking.TiesStrategy; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.stat.inference; + +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.exception.ConvergenceException; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +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.ranking.NaNStrategy; +import org.apache.commons.math4.stat.ranking.NaturalRanking; +import org.apache.commons.math4.stat.ranking.TiesStrategy; +import org.apache.commons.math4.util.FastMath; /** * An implementation of the Wilcoxon signed-rank test. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/main/java/org/apache/commons/math4/stat/inference/package-info.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/stat/inference/package-info.java b/src/main/java/org/apache/commons/math4/stat/inference/package-info.java index a36a080..ed7b486 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/package-info.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/package-info.java @@ -19,4 +19,4 @@ * Classes providing hypothesis testing. * */ -package org.apache.commons.math3.stat.inference; +package org.apache.commons.math4.stat.inference;