org.apache.commons.math.stat.descriptive
Class UnivariateStatisticAbstractTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
MedianTest, PercentileTest, StorelessUnivariateStatisticAbstractTest

public abstract class UnivariateStatisticAbstractTest
extends junit.framework.TestCase

Test cases for the UnivariateStatistic class.

Version:
$Revision: 720030 $ $Date: 2008-11-23 13:47:50 -0500 (Sun, 23 Nov 2008) $

Field Summary
protected  double fourthMoment
           
protected  double geoMean
           
protected  double kurt
           
protected  double max
           
protected  double mean
           
protected  double median
           
protected  double min
           
protected  double percentile5
           
protected  double percentile95
           
protected  double product
           
protected  double secondMoment
           
protected  double skew
           
protected  double std
           
protected  double sum
           
protected  double sumLog
           
protected  double sumSq
           
protected  double[] testArray
           
protected  double thirdMoment
           
protected  double tolerance
           
protected  double var
           
 
Constructor Summary
UnivariateStatisticAbstractTest(String name)
           
 
Method Summary
abstract  double expectedValue()
           
 double getTolerance()
           
abstract  org.apache.commons.math.stat.descriptive.UnivariateStatistic getUnivariateStatistic()
           
 void testCopy()
           
 void 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

mean

protected double mean

geoMean

protected double geoMean

var

protected double var

std

protected double std

skew

protected double skew

kurt

protected double kurt

min

protected double min

max

protected double max

median

protected double median

percentile5

protected double percentile5

percentile95

protected double percentile95

product

protected double product

sumLog

protected double sumLog

sumSq

protected double sumSq

sum

protected double sum

secondMoment

protected double secondMoment

thirdMoment

protected double thirdMoment

fourthMoment

protected double fourthMoment

tolerance

protected double tolerance

testArray

protected double[] testArray
Constructor Detail

UnivariateStatisticAbstractTest

public UnivariateStatisticAbstractTest(String name)
Method Detail

getUnivariateStatistic

public abstract org.apache.commons.math.stat.descriptive.UnivariateStatistic getUnivariateStatistic()

expectedValue

public abstract double expectedValue()

getTolerance

public double getTolerance()

testEvaluation

public void testEvaluation()
                    throws Exception
Throws:
Exception

testCopy

public void testCopy()
              throws Exception
Throws:
Exception


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