|
||||||||||
| 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.distribution.IntegerDistributionAbstractTest
org.apache.commons.math.distribution.HypergeometricDistributionTest
public class HypergeometricDistributionTest
Test cases for HyperGeometriclDistribution. Extends IntegerDistributionAbstractTest. See class javadoc for IntegerDistributionAbstractTest for details.
| Constructor Summary | |
|---|---|
HypergeometricDistributionTest(java.lang.String name)
Constructor for ChiSquareDistributionTest. |
|
| Method Summary | |
|---|---|
int[] |
makeCumulativeTestPoints()
Creates the default cumulative probability density test input values |
double[] |
makeCumulativeTestValues()
Creates the default cumulative probability density test expected values |
int[] |
makeDensityTestPoints()
Creates the default probability density test input values |
double[] |
makeDensityTestValues()
Creates the default probability density test expected values |
org.apache.commons.math.distribution.IntegerDistribution |
makeDistribution()
Creates the default discrete distribution instance to use in tests. |
double[] |
makeInverseCumulativeTestPoints()
Creates the default inverse cumulative probability test input values |
int[] |
makeInverseCumulativeTestValues()
Creates the default inverse cumulative probability density test expected values |
void |
testDegenerateFullSample()
Verify that if sampleSize = populationSize, mass is concentrated on numberOfSuccesses |
void |
testDegenerateNoFailures()
Verify that if there are no failures, mass is concentrated on sampleSize |
void |
testDegenerateNoSuccesses()
Verify that if there are no successes, mass is concentrated on 0 |
void |
testLargeValues()
|
void |
testMoreLargeValues()
|
void |
testPopulationSize()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
| Constructor Detail |
|---|
public HypergeometricDistributionTest(java.lang.String name)
name - | Method Detail |
|---|
public org.apache.commons.math.distribution.IntegerDistribution makeDistribution()
makeDistribution in class IntegerDistributionAbstractTestpublic int[] makeDensityTestPoints()
makeDensityTestPoints in class IntegerDistributionAbstractTestpublic double[] makeDensityTestValues()
makeDensityTestValues in class IntegerDistributionAbstractTestpublic int[] makeCumulativeTestPoints()
makeCumulativeTestPoints in class IntegerDistributionAbstractTestpublic double[] makeCumulativeTestValues()
makeCumulativeTestValues in class IntegerDistributionAbstractTestpublic double[] makeInverseCumulativeTestPoints()
makeInverseCumulativeTestPoints in class IntegerDistributionAbstractTestpublic int[] makeInverseCumulativeTestValues()
makeInverseCumulativeTestValues in class IntegerDistributionAbstractTest
public void testDegenerateNoFailures()
throws java.lang.Exception
java.lang.Exception
public void testDegenerateNoSuccesses()
throws java.lang.Exception
java.lang.Exception
public void testDegenerateFullSample()
throws java.lang.Exception
java.lang.Exceptionpublic void testPopulationSize()
public void testLargeValues()
public void testMoreLargeValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||