|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.math.stat.descriptive.UnivariateStatisticAbstractTest
org.apache.commons.math.stat.descriptive.StorelessUnivariateStatisticAbstractTest
public abstract class StorelessUnivariateStatisticAbstractTest
Test cases for StorelessUnivariateStatistic
classes.
Field Summary | |
---|---|
protected double[][] |
smallSamples
Small sample arrays |
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 | |
---|---|
StorelessUnivariateStatisticAbstractTest(java.lang.String name)
|
Method Summary | |
---|---|
abstract double |
expectedValue()
Expected value for the testArray defined in UnivariateStatisticAbstractTest |
abstract org.apache.commons.math.stat.descriptive.UnivariateStatistic |
getUnivariateStatistic()
Return a new instance of the statistic |
void |
testConsistency()
Make sure that evaluate(double[]) and inrementAll(double[]), getResult() give same results. |
void |
testEqualsAndHashCode()
|
void |
testIncrementation()
Verify that calling increment() in a loop over testArray results in correct state |
void |
testMomentSmallSamples()
|
void |
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 |
---|
protected double[][] smallSamples
Constructor Detail |
---|
public StorelessUnivariateStatisticAbstractTest(java.lang.String name)
Method Detail |
---|
public abstract org.apache.commons.math.stat.descriptive.UnivariateStatistic getUnivariateStatistic()
getUnivariateStatistic
in class UnivariateStatisticAbstractTest
public abstract double expectedValue()
expectedValue
in class UnivariateStatisticAbstractTest
public void testIncrementation() throws java.lang.Exception
java.lang.Exception
public void testSerialization() throws java.lang.Exception
java.lang.Exception
public void testEqualsAndHashCode()
public void testMomentSmallSamples()
public void testConsistency()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |