org.apache.commons.math.stat.descriptive.moment
Class SecondMomentTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest
              extended by org.apache.commons.math.stat.descriptive.StorelessUnivariateStatisticAbstractTest
                  extended by org.apache.commons.math.stat.descriptive.moment.SecondMomentTest
All Implemented Interfaces:
junit.framework.Test

public class SecondMomentTest
extends StorelessUnivariateStatisticAbstractTest

Test cases for the SecondMoment class.

Version:
$Revision: 762087 $ $Date: 2009-04-05 10:20:18 -0400 (Sun, 05 Apr 2009) $

Field Summary
protected  org.apache.commons.math.stat.descriptive.moment.SecondMoment stat
          descriptive statistic.
 
Fields inherited from class org.apache.commons.math.stat.descriptive.StorelessUnivariateStatisticAbstractTest
smallSamples
 
Fields inherited from class org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest
fourthMoment, geoMean, kurt, max, mean, median, min, percentile5, percentile95, product, secondMoment, skew, std, sum, sumLog, sumSq, testArray, thirdMoment, tolerance, var
 
Constructor Summary
SecondMomentTest(String name)
           
 
Method Summary
 double expectedValue()
          Expected value for the testArray defined in UnivariateStatisticAbstractTest
 org.apache.commons.math.stat.descriptive.UnivariateStatistic getUnivariateStatistic()
          Return a new instance of the statistic
 
Methods inherited from class org.apache.commons.math.stat.descriptive.StorelessUnivariateStatisticAbstractTest
testConsistency, testCopyConsistency, testEqualsAndHashCode, testIncrementation, testMomentSmallSamples, testSerial, testSerialization
 
Methods inherited from class org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest
getTolerance, testCopy, testEvaluation
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stat

protected org.apache.commons.math.stat.descriptive.moment.SecondMoment stat
descriptive statistic.

Constructor Detail

SecondMomentTest

public SecondMomentTest(String name)
Parameters:
name -
Method Detail

getUnivariateStatistic

public org.apache.commons.math.stat.descriptive.UnivariateStatistic getUnivariateStatistic()
Description copied from class: StorelessUnivariateStatisticAbstractTest
Return a new instance of the statistic

Specified by:
getUnivariateStatistic in class StorelessUnivariateStatisticAbstractTest
See Also:
UnivariateStatisticAbstractTest.getUnivariateStatistic()

expectedValue

public double expectedValue()
Description copied from class: StorelessUnivariateStatisticAbstractTest
Expected value for the testArray defined in UnivariateStatisticAbstractTest

Specified by:
expectedValue in class StorelessUnivariateStatisticAbstractTest
See Also:
UnivariateStatisticAbstractTest.expectedValue()


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.