|
||||||||||
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.AggregateSummaryStatisticsTest
public class AggregateSummaryStatisticsTest
Test cases for AggregateSummaryStatistics
Constructor Summary | |
---|---|
AggregateSummaryStatisticsTest()
|
Method Summary | |
---|---|
protected static void |
assertEquals(org.apache.commons.math.stat.descriptive.StatisticalSummary expected,
org.apache.commons.math.stat.descriptive.StatisticalSummary observed,
double delta)
Verifies that a StatisticalSummary and a StatisticalSummaryValues are equal up to delta, with NaNs, infinities returned in the same spots. |
static junit.framework.Test |
suite()
Creates and returns a Test representing all the test cases in this
class |
void |
testAggregate()
Test aggregate function by randomly generating a dataset of 10-100 values from [-100, 100], dividing it into 2-5 partitions, computing stats for each partition and comparing the result of aggregate(...) applied to the collection of per-partition SummaryStatistics with a single SummaryStatistics computed over the full sample. |
void |
testAggregateDegenerate()
|
void |
testAggregateSpecialValues()
|
void |
testAggregation()
Tests the standard aggregation behavior |
void |
testAggregationConsistency()
Verify that aggregating over a partition gives the same results as direct computation. |
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 |
Constructor Detail |
---|
public AggregateSummaryStatisticsTest()
Method Detail |
---|
public static junit.framework.Test suite()
Test
representing all the test cases in this
class
Test
representing all the test cases in this classpublic void testAggregation()
public void testAggregationConsistency() throws Exception
Exception
public void testAggregate() throws Exception
Exception
public void testAggregateDegenerate() throws Exception
Exception
public void testAggregateSpecialValues() throws Exception
Exception
protected static void assertEquals(org.apache.commons.math.stat.descriptive.StatisticalSummary expected, org.apache.commons.math.stat.descriptive.StatisticalSummary observed, double delta)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |