|
||||||||||
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(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 |
testCopyConsistency()
Verifies that copied statistics remain equal to originals when incremented the same way. |
void |
testEqualsAndHashCode()
|
void |
testIncrementation()
Verifies that increment() and incrementAll work properly. |
void |
testMomentSmallSamples()
|
void |
testSerial()
|
void |
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 |
---|
protected double[][] smallSamples
Constructor Detail |
---|
public StorelessUnivariateStatisticAbstractTest(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 Exception
Exception
public void testSerialization() throws Exception
Exception
public void testEqualsAndHashCode()
public void testMomentSmallSamples()
public void testConsistency()
public void testCopyConsistency()
public void testSerial()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |