|
||||||||||
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.PoissonDistributionTest
public class PoissonDistributionTest
PoissonDistributionTest
Constructor Summary | |
---|---|
PoissonDistributionTest(String name)
Constructor. |
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 |
testDegenerateInverseCumulativeProbability()
Test the degenerate cases of a 0.0 and 1.0 inverse cumulative probability. |
void |
testLargeMeanCumulativeProbability()
|
void |
testLargeMeanInverseCumulativeProbability()
|
void |
testMean()
|
void |
testNormalApproximateProbability()
Test the normal approximation of the Poisson distribution by calculating P(90 ≤ X ≤ 110) for X = Po(100) and P(9900 ≤ X ≤ 10200) for X = Po(10000) |
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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PoissonDistributionTest(String name)
name
- Method Detail |
---|
public org.apache.commons.math.distribution.IntegerDistribution makeDistribution()
makeDistribution
in class IntegerDistributionAbstractTest
public int[] makeDensityTestPoints()
makeDensityTestPoints
in class IntegerDistributionAbstractTest
public double[] makeDensityTestValues()
makeDensityTestValues
in class IntegerDistributionAbstractTest
public int[] makeCumulativeTestPoints()
makeCumulativeTestPoints
in class IntegerDistributionAbstractTest
public double[] makeCumulativeTestValues()
makeCumulativeTestValues
in class IntegerDistributionAbstractTest
public double[] makeInverseCumulativeTestPoints()
makeInverseCumulativeTestPoints
in class IntegerDistributionAbstractTest
public int[] makeInverseCumulativeTestValues()
makeInverseCumulativeTestValues
in class IntegerDistributionAbstractTest
public void testNormalApproximateProbability() throws Exception
Exception
public void testDegenerateInverseCumulativeProbability() throws Exception
Exception
public void testMean()
public void testLargeMeanCumulativeProbability()
public void testLargeMeanInverseCumulativeProbability()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |