org.apache.commons.math.stat.descriptive.rank
Class PercentileTest

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

public class PercentileTest
extends UnivariateStatisticAbstractTest

Test cases for the UnivariateStatistic 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.rank.Percentile stat
           
 
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
PercentileTest(String name)
           
 
Method Summary
 double expectedValue()
          
 org.apache.commons.math.stat.descriptive.UnivariateStatistic getUnivariateStatistic()
          
static junit.framework.Test suite()
           
 void test5()
           
 void testHighPercentile()
           
 void testNISTExample()
           
 void testNullEmpty()
           
 void testPercentile()
           
 void testSetQuantile()
           
 void testSingleton()
           
 void testSpecialValues()
           
 
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.rank.Percentile stat
Constructor Detail

PercentileTest

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

suite

public static junit.framework.Test suite()

getUnivariateStatistic

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

Specified by:
getUnivariateStatistic in class UnivariateStatisticAbstractTest

expectedValue

public double expectedValue()

Specified by:
expectedValue in class UnivariateStatisticAbstractTest

testHighPercentile

public void testHighPercentile()

testPercentile

public void testPercentile()

testNISTExample

public void testNISTExample()

test5

public void test5()

testNullEmpty

public void testNullEmpty()

testSingleton

public void testSingleton()

testSpecialValues

public void testSpecialValues()

testSetQuantile

public void testSetQuantile()


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