diff --git a/src/test/org/apache/commons/math/stat/univariate/moment/FirstMomentTest.java b/src/test/org/apache/commons/math/stat/univariate/moment/FirstMomentTest.java index 9b69606d7..3e8471005 100644 --- a/src/test/org/apache/commons/math/stat/univariate/moment/FirstMomentTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/moment/FirstMomentTest.java @@ -20,7 +20,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.1 $ $Date: 2004/04/27 16:42:33 $ + * @version $Revision: 1.2 $ $Date: 2004/06/17 21:37:05 $ */ public class FirstMomentTest extends StorelessUnivariateStatisticAbstractTest{ @@ -38,11 +38,7 @@ public class FirstMomentTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new FirstMoment(); - - return stat; + return new FirstMoment(); } /** diff --git a/src/test/org/apache/commons/math/stat/univariate/moment/GeometricMeanTest.java b/src/test/org/apache/commons/math/stat/univariate/moment/GeometricMeanTest.java index ed10c1143..bad3cb3de 100644 --- a/src/test/org/apache/commons/math/stat/univariate/moment/GeometricMeanTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/moment/GeometricMeanTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.9 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.10 $ $Date: 2004/06/17 21:37:05 $ */ public class GeometricMeanTest extends StorelessUnivariateStatisticAbstractTest{ @@ -46,11 +46,7 @@ public class GeometricMeanTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new GeometricMean(); - - return stat; + return new GeometricMean(); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/moment/KurtosisTest.java b/src/test/org/apache/commons/math/stat/univariate/moment/KurtosisTest.java index 685dc206e..1668f1fdc 100644 --- a/src/test/org/apache/commons/math/stat/univariate/moment/KurtosisTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/moment/KurtosisTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class KurtosisTest extends StorelessUnivariateStatisticAbstractTest{ @@ -46,11 +46,7 @@ public class KurtosisTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Kurtosis(); - - return stat; + return new Kurtosis(); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/moment/MeanTest.java b/src/test/org/apache/commons/math/stat/univariate/moment/MeanTest.java index ebf0bf271..2649c2372 100644 --- a/src/test/org/apache/commons/math/stat/univariate/moment/MeanTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/moment/MeanTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class MeanTest extends StorelessUnivariateStatisticAbstractTest{ @@ -46,11 +46,7 @@ public class MeanTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Mean(); - - return stat; + return new Mean(); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/moment/SkewnessTest.java b/src/test/org/apache/commons/math/stat/univariate/moment/SkewnessTest.java index d9417e98e..70df7622b 100644 --- a/src/test/org/apache/commons/math/stat/univariate/moment/SkewnessTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/moment/SkewnessTest.java @@ -24,7 +24,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. * - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class SkewnessTest extends StorelessUnivariateStatisticAbstractTest{ @@ -41,11 +41,7 @@ public class SkewnessTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Skewness(); - - return stat; + return new Skewness(); } public static Test suite() { diff --git a/src/test/org/apache/commons/math/stat/univariate/moment/StandardDeviationTest.java b/src/test/org/apache/commons/math/stat/univariate/moment/StandardDeviationTest.java index 2f61067ba..c71daf582 100644 --- a/src/test/org/apache/commons/math/stat/univariate/moment/StandardDeviationTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/moment/StandardDeviationTest.java @@ -24,7 +24,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. * - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class StandardDeviationTest extends StorelessUnivariateStatisticAbstractTest{ @@ -41,11 +41,7 @@ public class StandardDeviationTest extends StorelessUnivariateStatisticAbstractT * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new StandardDeviation(); - - return stat; + return new StandardDeviation(); } public static Test suite() { diff --git a/src/test/org/apache/commons/math/stat/univariate/moment/VarianceTest.java b/src/test/org/apache/commons/math/stat/univariate/moment/VarianceTest.java index 6940031ad..18c6e785c 100644 --- a/src/test/org/apache/commons/math/stat/univariate/moment/VarianceTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/moment/VarianceTest.java @@ -24,7 +24,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. * - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class VarianceTest extends StorelessUnivariateStatisticAbstractTest{ @@ -41,11 +41,7 @@ public class VarianceTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Variance(); - - return stat; + return new Variance(); } public static Test suite() { diff --git a/src/test/org/apache/commons/math/stat/univariate/rank/MaxTest.java b/src/test/org/apache/commons/math/stat/univariate/rank/MaxTest.java index f94007844..f5b62a3ba 100644 --- a/src/test/org/apache/commons/math/stat/univariate/rank/MaxTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/rank/MaxTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class MaxTest extends StorelessUnivariateStatisticAbstractTest{ @@ -46,11 +46,7 @@ public class MaxTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Max(); - - return stat; + return new Max(); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/rank/MedianTest.java b/src/test/org/apache/commons/math/stat/univariate/rank/MedianTest.java index c9491d848..682fbde6a 100644 --- a/src/test/org/apache/commons/math/stat/univariate/rank/MedianTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/rank/MedianTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.9 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.10 $ $Date: 2004/06/17 21:37:05 $ */ public class MedianTest extends UnivariateStatisticAbstractTest{ @@ -45,12 +45,8 @@ public class MedianTest extends UnivariateStatisticAbstractTest{ /* (non-Javadoc) * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ - public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Median(); - - return stat; + public UnivariateStatistic getUnivariateStatistic() { + return new Median(); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/rank/MinTest.java b/src/test/org/apache/commons/math/stat/univariate/rank/MinTest.java index 2604d6e1a..cd77a0d0c 100644 --- a/src/test/org/apache/commons/math/stat/univariate/rank/MinTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/rank/MinTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class MinTest extends StorelessUnivariateStatisticAbstractTest{ @@ -46,11 +46,7 @@ public class MinTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Min(); - - return stat; + return new Min(); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/rank/PercentileTest.java b/src/test/org/apache/commons/math/stat/univariate/rank/PercentileTest.java index 1d751c62b..136cb751f 100644 --- a/src/test/org/apache/commons/math/stat/univariate/rank/PercentileTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/rank/PercentileTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.12 $ $Date: 2004/03/21 04:26:54 $ + * @version $Revision: 1.13 $ $Date: 2004/06/17 21:37:05 $ */ public class PercentileTest extends UnivariateStatisticAbstractTest{ @@ -45,11 +45,8 @@ public class PercentileTest extends UnivariateStatisticAbstractTest{ /* (non-Javadoc) * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ - public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Percentile(95.0); - return stat; + public UnivariateStatistic getUnivariateStatistic() { + return new Percentile(95.0); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/summary/ProductTest.java b/src/test/org/apache/commons/math/stat/univariate/summary/ProductTest.java index e499d5e4a..4c4affcb3 100644 --- a/src/test/org/apache/commons/math/stat/univariate/summary/ProductTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/summary/ProductTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.11 $ $Date: 2004/03/21 04:29:20 $ + * @version $Revision: 1.12 $ $Date: 2004/06/17 21:37:05 $ */ public class ProductTest extends StorelessUnivariateStatisticAbstractTest{ @@ -46,11 +46,7 @@ public class ProductTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Product(); - - return stat; + return new Product(); } public double getTolerance() { diff --git a/src/test/org/apache/commons/math/stat/univariate/summary/SumLogTest.java b/src/test/org/apache/commons/math/stat/univariate/summary/SumLogTest.java index 56afaa542..eb5f6a0ea 100644 --- a/src/test/org/apache/commons/math/stat/univariate/summary/SumLogTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/summary/SumLogTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class SumLogTest extends StorelessUnivariateStatisticAbstractTest{ @@ -45,12 +45,8 @@ public class SumLogTest extends StorelessUnivariateStatisticAbstractTest{ /* (non-Javadoc) * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ - public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new SumOfLogs(); - - return stat; + public UnivariateStatistic getUnivariateStatistic() { + return new SumOfLogs(); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/summary/SumSqTest.java b/src/test/org/apache/commons/math/stat/univariate/summary/SumSqTest.java index c31993d87..61ccd31f3 100644 --- a/src/test/org/apache/commons/math/stat/univariate/summary/SumSqTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/summary/SumSqTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class SumSqTest extends StorelessUnivariateStatisticAbstractTest{ @@ -46,11 +46,7 @@ public class SumSqTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new SumOfSquares(); - - return stat; + return new SumOfSquares(); } /* (non-Javadoc) diff --git a/src/test/org/apache/commons/math/stat/univariate/summary/SumTest.java b/src/test/org/apache/commons/math/stat/univariate/summary/SumTest.java index e8a0fa4be..42e348689 100644 --- a/src/test/org/apache/commons/math/stat/univariate/summary/SumTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/summary/SumTest.java @@ -23,7 +23,7 @@ import org.apache.commons.math.stat.univariate.UnivariateStatistic; /** * Test cases for the {@link UnivariateStatistic} class. - * @version $Revision: 1.10 $ $Date: 2004/02/21 21:35:18 $ + * @version $Revision: 1.11 $ $Date: 2004/06/17 21:37:05 $ */ public class SumTest extends StorelessUnivariateStatisticAbstractTest{ @@ -46,11 +46,7 @@ public class SumTest extends StorelessUnivariateStatisticAbstractTest{ * @see org.apache.commons.math.stat.univariate.UnivariateStatisticAbstractTest#getUnivariateStatistic() */ public UnivariateStatistic getUnivariateStatistic() { - - if(stat == null) - stat = new Sum(); - - return stat; + return new Sum(); } /* (non-Javadoc)