Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java Sun Apr 5 14:20:18 2009 @@ -46,7 +46,8 @@ public FrequencyTest(String name) { super(name); } - + + @Override public void setUp() { f = new Frequency(); }
Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/StatUtilsTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/StatUtilsTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/StatUtilsTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/StatUtilsTest.java Sun Apr 5 14:20:18 2009 @@ -45,9 +45,6 @@ super(name); } - public void setUp() { - } - public static Test suite() { TestSuite suite = new TestSuite(StatUtilsTest.class); suite.setName("StatUtil Tests"); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java Sun Apr 5 14:20:18 2009 @@ -42,7 +42,8 @@ private SummaryStatistics summaries; private Map<String, Double> certifiedValues; - + + @Override protected void setUp() throws Exception { descriptives = new DescriptiveStatistics(); summaries = new SummaryStatistics(); @@ -96,7 +97,8 @@ protected double getMaximumAbsoluteError() { return 1.0e-5; } - + + @Override protected void tearDown() throws Exception { descriptives.clear(); descriptives = null; Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LewTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LewTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LewTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LewTest.java Sun Apr 5 14:20:18 2009 @@ -22,6 +22,7 @@ */ public class LewTest extends CertifiedDataAbstractTest { + @Override protected String getResourceName() { return "org/apache/commons/math/stat/data/Lew.txt"; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LotteryTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LotteryTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LotteryTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/data/LotteryTest.java Sun Apr 5 14:20:18 2009 @@ -22,6 +22,7 @@ */ public class LotteryTest extends CertifiedDataAbstractTest { + @Override protected String getResourceName() { return "org/apache/commons/math/stat/data/Lottery.txt"; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/DescriptiveStatisticsTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/DescriptiveStatisticsTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/DescriptiveStatisticsTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/DescriptiveStatisticsTest.java Sun Apr 5 14:20:18 2009 @@ -148,13 +148,16 @@ * Always returns currently set quantile */ static class subPercentile extends Percentile { + @Override public double evaluate(double[] values, int begin, int length) { return getQuantile(); } + @Override public double evaluate(double[] values) { return getQuantile(); } private static final long serialVersionUID = 8040701391045914979L; + @Override public Percentile copy() { subPercentile result = new subPercentile(); return result; Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java Sun Apr 5 14:20:18 2009 @@ -69,9 +69,8 @@ this.transformer = transformer; } - /** - * @see org.apache.commons.math.stat.descriptive.DescriptiveStatistics#getValues() - */ + /** {...@inheritdoc} */ + @Override public double[] getValues() { int length = list.size(); @@ -96,9 +95,8 @@ return copiedArray; } - /** - * @see org.apache.commons.math.stat.descriptive.DescriptiveStatistics#getElement(int) - */ + /** {...@inheritdoc} */ + @Override public double getElement(int index) { double value = Double.NaN; @@ -121,9 +119,8 @@ return value; } - /** - * @see org.apache.commons.math.stat.descriptive.DescriptiveStatistics#getN() - */ + /** {...@inheritdoc} */ + @Override public long getN() { int n = 0; @@ -139,9 +136,8 @@ return n; } - /** - * @see org.apache.commons.math.stat.descriptive.DescriptiveStatistics#addValue(double) - */ + /** {...@inheritdoc} */ + @Override public void addValue(double v) { list.add(Double.valueOf(v)); } @@ -159,6 +155,7 @@ * <p> * <strong>N.B.: </strong> This method has the side effect of clearing the underlying list. */ + @Override public void clear() { list.clear(); } @@ -168,6 +165,7 @@ * @param stat the statistic to apply * @return the computed value of the statistic. */ + @Override public double apply(UnivariateStatistic stat) { double[] v = this.getValues(); @@ -193,9 +191,8 @@ this.transformer = transformer; } - /** - * @see org.apache.commons.math.stat.descriptive.DescriptiveStatistics#setWindowSize(int) - */ + /** {...@inheritdoc} */ + @Override public synchronized void setWindowSize(int windowSize) { this.windowSize = windowSize; //Discard elements from the front of the list if the windowSize is less than @@ -206,9 +203,8 @@ } } - /** - * @see org.apache.commons.math.stat.descriptive.DescriptiveStatistics#getWindowSize - */ + /** {...@inheritdoc} */ + @Override public synchronized int getWindowSize() { return windowSize; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImplTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImplTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImplTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/ListUnivariateImplTest.java Sun Apr 5 14:20:18 2009 @@ -51,9 +51,6 @@ super(name); } - public void setUp() { - } - public static Test suite() { TestSuite suite = new TestSuite(ListUnivariateImplTest.class); suite.setName("Frequency Tests"); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MixedListUnivariateImplTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MixedListUnivariateImplTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MixedListUnivariateImplTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MixedListUnivariateImplTest.java Sun Apr 5 14:20:18 2009 @@ -58,9 +58,6 @@ } - public void setUp() { - } - public static Test suite() { TestSuite suite = new TestSuite(MixedListUnivariateImplTest.class); suite.setName("Mixed List Tests"); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StatisticalSummaryValuesTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StatisticalSummaryValuesTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StatisticalSummaryValuesTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StatisticalSummaryValuesTest.java Sun Apr 5 14:20:18 2009 @@ -35,9 +35,6 @@ super(name); } - public void setUp() { - } - public static Test suite() { TestSuite suite = new TestSuite(StatisticalSummaryValuesTest.class); suite.setName("StatisticalSummaryValues Tests"); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java Sun Apr 5 14:20:18 2009 @@ -34,9 +34,11 @@ protected double[][] smallSamples = {{}, {1}, {1,2}, {1,2,3}, {1,2,3,4}}; /** Return a new instance of the statistic */ + @Override public abstract UnivariateStatistic getUnivariateStatistic(); /**Expected value for the testArray defined in UnivariateStatisticAbstractTest */ + @Override public abstract double expectedValue(); /** Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatisticsTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatisticsTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatisticsTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatisticsTest.java Sun Apr 5 14:20:18 2009 @@ -33,6 +33,7 @@ return suite; } + @Override protected SummaryStatistics createSummaryStatistics() { return new SynchronizedSummaryStatistics(); } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FirstMomentTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FirstMomentTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FirstMomentTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FirstMomentTest.java Sun Apr 5 14:20:18 2009 @@ -38,6 +38,7 @@ /** * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new FirstMoment(); } @@ -45,6 +46,7 @@ /** * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() */ + @Override public double expectedValue() { return this.mean; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FourthMomentTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FourthMomentTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FourthMomentTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/FourthMomentTest.java Sun Apr 5 14:20:18 2009 @@ -38,6 +38,7 @@ /** * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new FourthMoment(); } @@ -45,6 +46,7 @@ /** * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() */ + @Override public double expectedValue() { return this.fourthMoment; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/GeometricMeanTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/GeometricMeanTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/GeometricMeanTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/GeometricMeanTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new GeometricMean(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.geoMean; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/KurtosisTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/KurtosisTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/KurtosisTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/KurtosisTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Kurtosis(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.kurt; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/MeanTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/MeanTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/MeanTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/MeanTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Mean(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.mean; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SecondMomentTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SecondMomentTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SecondMomentTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SecondMomentTest.java Sun Apr 5 14:20:18 2009 @@ -38,6 +38,7 @@ /** * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new SecondMoment(); } @@ -45,6 +46,7 @@ /** * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() */ + @Override public double expectedValue() { return this.secondMoment; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SkewnessTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SkewnessTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SkewnessTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/SkewnessTest.java Sun Apr 5 14:20:18 2009 @@ -38,9 +38,10 @@ super(name); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Skewness(); } @@ -51,9 +52,10 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.skew; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/StandardDeviationTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/StandardDeviationTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/StandardDeviationTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/StandardDeviationTest.java Sun Apr 5 14:20:18 2009 @@ -38,9 +38,10 @@ super(name); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new StandardDeviation(); } @@ -51,9 +52,10 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.std; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/ThirdMomentTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/ThirdMomentTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/ThirdMomentTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/ThirdMomentTest.java Sun Apr 5 14:20:18 2009 @@ -38,6 +38,7 @@ /** * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new ThirdMoment(); } @@ -45,6 +46,7 @@ /** * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() */ + @Override public double expectedValue() { return this.thirdMoment; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VarianceTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VarianceTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VarianceTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VarianceTest.java Sun Apr 5 14:20:18 2009 @@ -38,9 +38,10 @@ super(name); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Variance(); } @@ -51,9 +52,10 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.var; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialCovarianceTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialCovarianceTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialCovarianceTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialCovarianceTest.java Sun Apr 5 14:20:18 2009 @@ -78,6 +78,7 @@ } + @Override public void setUp() { points = new double[][] { { 1.2, 2.3, 4.5}, @@ -88,6 +89,7 @@ }; } + @Override public void tearDown() { points = null; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialMeanTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialMeanTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialMeanTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/moment/VectorialMeanTest.java Sun Apr 5 14:20:18 2009 @@ -70,6 +70,7 @@ } + @Override public void setUp() { points = new double[][] { { 1.2, 2.3, 4.5}, @@ -80,6 +81,7 @@ }; } + @Override public void tearDown() { points = null; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MaxTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MaxTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MaxTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MaxTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Max(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.max; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MedianTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MedianTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MedianTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MedianTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Median(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.median; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MinTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MinTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MinTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/MinTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Min(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.min; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/PercentileTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/PercentileTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/PercentileTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/rank/PercentileTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Percentile(95.0); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.percentile95; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/ProductTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/ProductTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/ProductTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/ProductTest.java Sun Apr 5 14:20:18 2009 @@ -43,20 +43,26 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Product(); } + /** + * {...@inheritdoc} + */ + @Override public double getTolerance() { return 10E8; //sic -- big absolute error due to only 15 digits of accuracy in double } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.product; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumLogTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new SumOfLogs(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.sumLog; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumSqTest.java Sun Apr 5 14:20:18 2009 @@ -44,16 +44,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new SumOfSquares(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.sumSq; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/summary/SumTest.java Sun Apr 5 14:20:18 2009 @@ -43,16 +43,18 @@ return suite; } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#getUnivariateStatistic() + /** + * {...@inheritdoc} */ + @Override public UnivariateStatistic getUnivariateStatistic() { return new Sum(); } - /* (non-Javadoc) - * @see org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest#expectedValue() + /** + * {...@inheritdoc} */ + @Override public double expectedValue() { return this.sum; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareFactoryTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareFactoryTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareFactoryTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareFactoryTest.java Sun Apr 5 14:20:18 2009 @@ -29,8 +29,9 @@ public ChiSquareFactoryTest(String name) { super(name); } - - public void setUp() { + + @Override + public void setUp() throws Exception { super.setUp(); testStatistic = TestUtils.getUnknownDistributionChiSquareTest(); } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareTestTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareTestTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareTestTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/ChiSquareTestTest.java Sun Apr 5 14:20:18 2009 @@ -34,9 +34,6 @@ super(name); } - public void setUp() { - } - public static Test suite() { TestSuite suite = new TestSuite(ChiSquareTestTest.class); suite.setName("TestStatistic Tests"); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/OneWayAnovaTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/OneWayAnovaTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/OneWayAnovaTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/OneWayAnovaTest.java Sun Apr 5 14:20:18 2009 @@ -46,9 +46,6 @@ super(name); } - public void setUp() { - } - public static Test suite() { TestSuite suite = new TestSuite(OneWayAnovaTest.class); suite.setName("TestStatistic Tests"); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestFactoryTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestFactoryTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestFactoryTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestFactoryTest.java Sun Apr 5 14:20:18 2009 @@ -29,7 +29,8 @@ public TTestFactoryTest(String name) { super(name); } - + + @Override public void setUp() { super.setUp(); testStatistic = TestUtils.getTTest(); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TTestTest.java Sun Apr 5 14:20:18 2009 @@ -40,6 +40,7 @@ super(name); } + @Override public void setUp() { tooShortStats = new SummaryStatistics(); tooShortStats.addValue(0d); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TestUtilsTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TestUtilsTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TestUtilsTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/inference/TestUtilsTest.java Sun Apr 5 14:20:18 2009 @@ -35,9 +35,6 @@ super(name); } - public void setUp() { - } - public static Test suite() { TestSuite suite = new TestSuite(TestUtilsTest.class); suite.setName("TestUtils Tests"); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/GLSMultipleLinearRegressionTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/GLSMultipleLinearRegressionTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/GLSMultipleLinearRegressionTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/GLSMultipleLinearRegressionTest.java Sun Apr 5 14:20:18 2009 @@ -26,6 +26,7 @@ private double[][] omega; @Before + @Override public void setUp(){ y = new double[]{11.0, 12.0, 13.0, 14.0, 15.0, 16.0}; x = new double[6][]; @@ -92,16 +93,19 @@ createRegression().newSampleData(y, x, omega); } + @Override protected GLSMultipleLinearRegression createRegression() { GLSMultipleLinearRegression regression = new GLSMultipleLinearRegression(); regression.newSampleData(y, x, omega); return regression; } + @Override protected int getNumberOfRegressors() { return x[0].length; } + @Override protected int getSampleSize() { return y.length; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/OLSMultipleLinearRegressionTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/OLSMultipleLinearRegressionTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/OLSMultipleLinearRegressionTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/OLSMultipleLinearRegressionTest.java Sun Apr 5 14:20:18 2009 @@ -30,6 +30,7 @@ private double[][] x; @Before + @Override public void setUp(){ y = new double[]{11.0, 12.0, 13.0, 14.0, 15.0, 16.0}; x = new double[6][]; @@ -42,16 +43,19 @@ super.setUp(); } + @Override protected OLSMultipleLinearRegression createRegression() { OLSMultipleLinearRegression regression = new OLSMultipleLinearRegression(); regression.newSampleData(y, x); return regression; } + @Override protected int getNumberOfRegressors() { return x[0].length; } + @Override protected int getSampleSize() { return y.length; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/SimpleRegressionTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/SimpleRegressionTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/SimpleRegressionTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/regression/SimpleRegressionTest.java Sun Apr 5 14:20:18 2009 @@ -82,9 +82,6 @@ super(name); } - public void setUp() { - } - public static Test suite() { TestSuite suite = new TestSuite(SimpleRegressionTest.class); suite.setName("BivariateRegression Tests"); Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java Sun Apr 5 14:20:18 2009 @@ -36,10 +36,12 @@ ContinuedFraction cf = new ContinuedFraction() { private static final long serialVersionUID = 4696264881688589546L; + @Override public double getA(int n, double x) { return 1.0; } + @Override public double getB(int n, double x) { return 1.0; } Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/util/ResizableDoubleArrayTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/util/ResizableDoubleArrayTest.java?rev=762087&r1=762086&r2=762087&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/org/apache/commons/math/util/ResizableDoubleArrayTest.java (original) +++ commons/proper/math/trunk/src/test/org/apache/commons/math/util/ResizableDoubleArrayTest.java Sun Apr 5 14:20:18 2009 @@ -29,12 +29,14 @@ public ResizableDoubleArrayTest(String name) { super( name ); } - + + @Override protected void tearDown() throws Exception { da = null; ra = null; } + @Override protected void setUp() throws Exception { da = new ResizableDoubleArray(); ra = new ResizableDoubleArray(); @@ -174,14 +176,16 @@ testDa.addElement(1d); assertEquals(4, testDa.getInternalLength()); } - + + @Override public void testAdd1000() { super.testAdd1000(); assertEquals("Internal Storage length should be 1024 if we started out with initial capacity of " + "16 and an expansion factor of 2.0", 1024, ((ResizableDoubleArray) da).getInternalLength()); } - + + @Override public void testAddElementRolling() { super.testAddElementRolling();
