http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/stat/correlation/StorelessBivariateCovariance.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/stat/correlation/StorelessBivariateCovariance.java b/src/main/java/org/apache/commons/math3/stat/correlation/StorelessBivariateCovariance.java index 20722a6..1a798d2 100644 --- a/src/main/java/org/apache/commons/math3/stat/correlation/StorelessBivariateCovariance.java +++ b/src/main/java/org/apache/commons/math3/stat/correlation/StorelessBivariateCovariance.java @@ -56,7 +56,7 @@ class StorelessBivariateCovariance { * Create an empty {@link StorelessBivariateCovariance} instance with * bias correction. */ - public StorelessBivariateCovariance() { + StorelessBivariateCovariance() { this(true); } @@ -67,7 +67,7 @@ class StorelessBivariateCovariance { * for bias, i.e. n-1 in the denominator, otherwise there is no bias correction, * i.e. n in the denominator. */ - public StorelessBivariateCovariance(final boolean biasCorrection) { + StorelessBivariateCovariance(final boolean biasCorrection) { meanX = meanY = 0.0; n = 0; covarianceNumerator = 0.0;
http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.java b/src/main/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.java index b1ccce5..6ab3c33 100644 --- a/src/main/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.java @@ -372,7 +372,7 @@ public class AggregateSummaryStatistics implements StatisticalSummary, * @param aggregateStatistics a {@code SummaryStatistics} into which * values added to this statistics object should be aggregated */ - public AggregatingSummaryStatistics(SummaryStatistics aggregateStatistics) { + AggregatingSummaryStatistics(SummaryStatistics aggregateStatistics) { this.aggregateStatistics = aggregateStatistics; } http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java index 5f2b95a..c153724 100644 --- a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FirstMoment.java @@ -77,7 +77,7 @@ class FirstMoment extends AbstractStorelessUnivariateStatistic /** * Create a FirstMoment instance */ - public FirstMoment() { + FirstMoment() { n = 0; m1 = Double.NaN; dev = Double.NaN; @@ -91,7 +91,7 @@ class FirstMoment extends AbstractStorelessUnivariateStatistic * @param original the {@code FirstMoment} instance to copy * @throws NullArgumentException if original is null */ - public FirstMoment(FirstMoment original) throws NullArgumentException { + FirstMoment(FirstMoment original) throws NullArgumentException { super(); copy(original, this); } http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FourthMoment.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FourthMoment.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FourthMoment.java index cf9d8ef..0c199d8 100644 --- a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FourthMoment.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/FourthMoment.java @@ -65,7 +65,7 @@ class FourthMoment extends ThirdMoment implements Serializable{ /** * Create a FourthMoment instance */ - public FourthMoment() { + FourthMoment() { super(); m4 = Double.NaN; } @@ -77,7 +77,7 @@ class FourthMoment extends ThirdMoment implements Serializable{ * @param original the {@code FourthMoment} instance to copy * @throws NullArgumentException if original is null */ - public FourthMoment(FourthMoment original) throws NullArgumentException { + FourthMoment(FourthMoment original) throws NullArgumentException { super(); copy(original, this); } http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/stat/descriptive/moment/ThirdMoment.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/ThirdMoment.java b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/ThirdMoment.java index 2c5331d..43a9ca1 100644 --- a/src/main/java/org/apache/commons/math3/stat/descriptive/moment/ThirdMoment.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/moment/ThirdMoment.java @@ -66,7 +66,7 @@ class ThirdMoment extends SecondMoment implements Serializable { /** * Create a FourthMoment instance */ - public ThirdMoment() { + ThirdMoment() { super(); m3 = Double.NaN; nDevSq = Double.NaN; @@ -79,7 +79,7 @@ class ThirdMoment extends SecondMoment implements Serializable { * @param original the {@code ThirdMoment} instance to copy * @throws NullArgumentException if orginal is null */ - public ThirdMoment(ThirdMoment original) throws NullArgumentException { + ThirdMoment(ThirdMoment original) throws NullArgumentException { copy(original, this); } http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/stat/descriptive/rank/PSquarePercentile.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/stat/descriptive/rank/PSquarePercentile.java b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/PSquarePercentile.java index 3c82195..1a51d3b 100644 --- a/src/main/java/org/apache/commons/math3/stat/descriptive/rank/PSquarePercentile.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/PSquarePercentile.java @@ -899,7 +899,7 @@ public class PSquarePercentile extends AbstractStorelessUnivariateStatistic * * @param fixedCapacity the capacity to be fixed for this list */ - public FixedCapacityList(final int fixedCapacity) { + FixedCapacityList(final int fixedCapacity) { super(fixedCapacity); this.capacity = fixedCapacity; } http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Percentile.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Percentile.java b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Percentile.java index 69628f2..5f528c2 100644 --- a/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Percentile.java +++ b/src/main/java/org/apache/commons/math3/stat/descriptive/rank/Percentile.java @@ -710,7 +710,7 @@ public class Percentile extends AbstractUnivariateStatistic implements Serializa * </ol> * */ - public static enum EstimationType { + public enum EstimationType { /** * This is the default type used in the {@link Percentile}.This method * has the following formulae for index and estimates<br> @@ -969,7 +969,7 @@ public class Percentile extends AbstractUnivariateStatistic implements Serializa * * @param type name of estimation type as per wikipedia */ - private EstimationType(final String type) { + EstimationType(final String type) { this.name = type; } http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java b/src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java index feaa510..6107c46 100644 --- a/src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java +++ b/src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java @@ -437,7 +437,7 @@ public class NaturalRanking implements RankingAlgorithm { * @param value the value of the pair * @param position the original position */ - public IntDoublePair(double value, int position) { + IntDoublePair(double value, int position) { this.value = value; this.position = position; } http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/transform/FastFourierTransformer.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/transform/FastFourierTransformer.java b/src/main/java/org/apache/commons/math3/transform/FastFourierTransformer.java index ca62c19..d40b9ac 100644 --- a/src/main/java/org/apache/commons/math3/transform/FastFourierTransformer.java +++ b/src/main/java/org/apache/commons/math3/transform/FastFourierTransformer.java @@ -516,8 +516,7 @@ public class FastFourierTransformer implements Serializable { * @param multiDimensionalComplexArray array containing the matrix * elements */ - public MultiDimensionalComplexMatrix( - Object multiDimensionalComplexArray) { + MultiDimensionalComplexMatrix(Object multiDimensionalComplexArray) { this.multiDimensionalComplexArray = multiDimensionalComplexArray; http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/util/Combinations.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/util/Combinations.java b/src/main/java/org/apache/commons/math3/util/Combinations.java index f0a0fc3..c7c9c3b 100644 --- a/src/main/java/org/apache/commons/math3/util/Combinations.java +++ b/src/main/java/org/apache/commons/math3/util/Combinations.java @@ -44,7 +44,7 @@ public class Combinations implements Iterable<int[]> { * Describes the type of iteration performed by the * {@link #iterator() iterator}. */ - private static enum IterationOrder { + private enum IterationOrder { /** Lexicographic order. */ LEXICOGRAPHIC } @@ -203,7 +203,7 @@ public class Combinations implements Iterable<int[]> { * @param n size of the set from which subsets are enumerated * @param k size of the subsets to enumerate */ - public LexicographicIterator(int n, int k) { + LexicographicIterator(int n, int k) { this.k = k; c = new int[k + 3]; if (k == 0 || k >= n) { @@ -297,7 +297,7 @@ public class Combinations implements Iterable<int[]> { * Create a singleton iterator providing the given array. * @param singleton array returned by the iterator */ - public SingletonIterator(final int[] singleton) { + SingletonIterator(final int[] singleton) { this.singleton = singleton; } /** @return True until next is called the first time, then false */ @@ -336,8 +336,7 @@ public class Combinations implements Iterable<int[]> { * @param n Size of the set from which subsets are selected. * @param k Size of the subsets to be enumerated. */ - public LexicographicComparator(int n, - int k) { + LexicographicComparator(int n, int k) { this.n = n; this.k = k; } http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/util/FastMath.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/util/FastMath.java b/src/main/java/org/apache/commons/math3/util/FastMath.java index 27d8ee5..25419d1 100644 --- a/src/main/java/org/apache/commons/math3/util/FastMath.java +++ b/src/main/java/org/apache/commons/math3/util/FastMath.java @@ -1654,7 +1654,7 @@ public class FastMath { /** Simple constructor. * @param x number to split */ - public Split(final double x) { + Split(final double x) { full = x; high = Double.longBitsToDouble(Double.doubleToRawLongBits(x) & ((-1L) << 27)); low = x - high; @@ -1664,7 +1664,7 @@ public class FastMath { * @param high high order bits * @param low low order bits */ - public Split(final double high, final double low) { + Split(final double high, final double low) { this(high == 0.0 ? (low == 0.0 && Double.doubleToRawLongBits(high) == Long.MIN_VALUE /* negative zero */ ? -0.0 : low) : high + low, high, low); } @@ -1673,7 +1673,7 @@ public class FastMath { * @param high high order bits * @param low low order bits */ - public Split(final double full, final double high, final double low) { + Split(final double full, final double high, final double low) { this.full = full; this.high = high; this.low = low; http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/util/MathArrays.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/util/MathArrays.java b/src/main/java/org/apache/commons/math3/util/MathArrays.java index 45f9273..9bb01b4 100644 --- a/src/main/java/org/apache/commons/math3/util/MathArrays.java +++ b/src/main/java/org/apache/commons/math3/util/MathArrays.java @@ -312,7 +312,7 @@ public class MathArrays { /** * Specification of ordering direction. */ - public static enum OrderDirection { + public enum OrderDirection { /** Constant for increasing direction. */ INCREASING, /** Constant for decreasing direction. */ @@ -757,7 +757,7 @@ public class MathArrays { * @param key Key. * @param value Value. */ - public PairDoubleInteger(double key, int value) { + PairDoubleInteger(double key, int value) { this.key = key; this.value = value; } @@ -1555,7 +1555,7 @@ public class MathArrays { * Specification for indicating that some operation applies * before or after a given index. */ - public static enum Position { + public enum Position { /** Designates the beginning of the array (near index 0). */ HEAD, /** Designates the end of the array. */ http://git-wip-us.apache.org/repos/asf/commons-math/blob/2114da38/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java b/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java index dae2b3b..d49f6a8 100644 --- a/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java +++ b/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java @@ -149,7 +149,7 @@ public class ResizableDoubleArray implements DoubleArray, Serializable { * Specification of expansion algorithm. * @since 3.1 */ - public static enum ExpansionMode { + public enum ExpansionMode { /** Multiplicative expansion mode. */ MULTIPLICATIVE, /** Additive expansion mode. */
