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

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.StandardDeviationTest
All Implemented Interfaces:
junit.framework.Test

public class StandardDeviationTest
extends StorelessUnivariateStatisticAbstractTest

Test cases for the UnivariateStatistic class.

Version:
$Revision: 480442 $ $Date: 2006-11-29 00:21:22 -0700 (Wed, 29 Nov 2006) $

Field Summary
protected  org.apache.commons.math.stat.descriptive.moment.StandardDeviation stat
           
 
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
StandardDeviationTest(java.lang.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
protected  double populationStandardDeviation(double[] v)
          Definitional formula for population standard deviation
static junit.framework.Test suite()
           
 void testNaN()
          Make sure Double.NaN is returned iff n = 0
 void testPopulation()
          Test population version of variance
 
Methods inherited from class org.apache.commons.math.stat.descriptive.StorelessUnivariateStatisticAbstractTest
testConsistency, testEqualsAndHashCode, testIncrementation, testMomentSmallSamples, testSerialization
 
Methods inherited from class org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest
getTolerance, 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
 
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.StandardDeviation stat
Constructor Detail

StandardDeviationTest

public StandardDeviationTest(java.lang.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

suite

public static junit.framework.Test suite()

expectedValue

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

Specified by:
expectedValue in class StorelessUnivariateStatisticAbstractTest

testNaN

public void testNaN()
Make sure Double.NaN is returned iff n = 0


testPopulation

public void testPopulation()
Test population version of variance


populationStandardDeviation

protected double populationStandardDeviation(double[] v)
Definitional formula for population standard deviation



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