org.apache.commons.math3.stat.descriptive
Class StorelessUnivariateStatisticAbstractTest

java.lang.Object
  extended by org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest
      extended by org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatisticAbstractTest
Direct Known Subclasses:
FirstMomentTest, FourthMomentTest, GeometricMeanTest, KurtosisTest, MaxTest, MeanTest, MinTest, ProductTest, SecondMomentTest, SkewnessTest, StandardDeviationTest, SumLogTest, SumSqTest, SumTest, ThirdMomentTest, VarianceTest

public abstract class StorelessUnivariateStatisticAbstractTest
extends UnivariateStatisticAbstractTest

Test cases for StorelessUnivariateStatistic classes.

Version:
$Id: StorelessUnivariateStatisticAbstractTest.java 1364030 2012-07-21 01:10:04Z erans $

Field Summary
protected  double[][] smallSamples
          Small sample arrays
 
Fields inherited from class org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest
fourthMoment, geoMean, identicalWeightsArray, kurt, max, mean, median, min, percentile5, percentile95, product, secondMoment, skew, std, sum, sumLog, sumSq, testArray, testWeightsArray, thirdMoment, tolerance, unitWeightsArray, var, weightedMean, weightedProduct, weightedStd, weightedSum, weightedVar
 
Constructor Summary
StorelessUnivariateStatisticAbstractTest()
           
 
Method Summary
protected  void checkClearValue(StorelessUnivariateStatistic statistic)
           
abstract  double expectedValue()
          Expected value for the testArray defined in UnivariateStatisticAbstractTest
abstract  UnivariateStatistic getUnivariateStatistic()
          Return a new instance of the statistic
 void testConsistency()
          Make sure that evaluate(double[]) and inrementAll(double[]), getResult() give same results.
 void testCopyConsistency()
          Verifies that copied statistics remain equal to originals when incremented the same way.
 void testEqualsAndHashCode()
           
 void testIncrementation()
          Verifies that increment() and incrementAll work properly.
 void testMomentSmallSamples()
           
 void testSerial()
           
 void testSerialization()
           
 
Methods inherited from class org.apache.commons.math3.stat.descriptive.UnivariateStatisticAbstractTest
getTolerance, testCopy, testEvaluateArraySegment, testEvaluateArraySegmentWeighted, testEvaluation, testWeightedConsistency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smallSamples

protected double[][] smallSamples
Small sample arrays

Constructor Detail

StorelessUnivariateStatisticAbstractTest

public StorelessUnivariateStatisticAbstractTest()
Method Detail

getUnivariateStatistic

public abstract UnivariateStatistic getUnivariateStatistic()
Return a new instance of the statistic

Specified by:
getUnivariateStatistic in class UnivariateStatisticAbstractTest

expectedValue

public abstract double expectedValue()
Expected value for the testArray defined in UnivariateStatisticAbstractTest

Specified by:
expectedValue in class UnivariateStatisticAbstractTest

testIncrementation

public void testIncrementation()
Verifies that increment() and incrementAll work properly.


checkClearValue

protected void checkClearValue(StorelessUnivariateStatistic statistic)

testSerialization

public void testSerialization()

testEqualsAndHashCode

public void testEqualsAndHashCode()

testMomentSmallSamples

public void testMomentSmallSamples()

testConsistency

public void testConsistency()
Make sure that evaluate(double[]) and inrementAll(double[]), getResult() give same results.


testCopyConsistency

public void testCopyConsistency()
Verifies that copied statistics remain equal to originals when incremented the same way.


testSerial

public void testSerial()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.