org.apache.commons.math3.distribution
Class PoissonDistributionTest

java.lang.Object
  extended by org.apache.commons.math3.distribution.IntegerDistributionAbstractTest
      extended by org.apache.commons.math3.distribution.PoissonDistributionTest

public class PoissonDistributionTest
extends IntegerDistributionAbstractTest

PoissonDistributionTest

Version:
$Id: PoissonDistributionTest.java 1370224 2012-08-07 12:43:41Z sebb $

Constructor Summary
PoissonDistributionTest()
          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.
 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 testCumulativeProbabilitySpecial()
          JIRA: MATH-282
 void testDegenerateInverseCumulativeProbability()
          Test the degenerate cases of a 0.0 and 1.0 inverse cumulative probability.
 void testLargeMeanCumulativeProbability()
           
 void testLargeMeanInverseCumulativeProbability()
           
 void testMean()
           
 void testMoments()
           
 void testNegativeMean()
           
 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 org.apache.commons.math3.distribution.IntegerDistributionAbstractTest
getCumulativeTestPoints, getCumulativeTestValues, getDensityTestPoints, getDensityTestValues, getDistribution, getInverseCumulativeTestPoints, getInverseCumulativeTestValues, getTolerance, setCumulativeTestPoints, setCumulativeTestValues, setDensityTestPoints, setDensityTestValues, setDistribution, setInverseCumulativeTestPoints, setInverseCumulativeTestValues, setTolerance, setUp, tearDown, testConsistencyAtSupportBounds, testCumulativeProbabilities, testDensities, testIllegalArguments, testInverseCumulativeProbabilities, testSampling, verifyCumulativeProbabilities, verifyDensities, verifyInverseCumulativeProbabilities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoissonDistributionTest

public PoissonDistributionTest()
Constructor.

Method Detail

makeDistribution

public IntegerDistribution makeDistribution()
Creates the default discrete distribution instance to use in tests.

Specified by:
makeDistribution in class IntegerDistributionAbstractTest

makeDensityTestPoints

public int[] makeDensityTestPoints()
Creates the default probability density test input values.

Specified by:
makeDensityTestPoints in class IntegerDistributionAbstractTest

makeDensityTestValues

public double[] makeDensityTestValues()
Creates the default probability density test expected values. These and all other test values are generated by R, version 1.8.1

Specified by:
makeDensityTestValues in class IntegerDistributionAbstractTest

makeCumulativeTestPoints

public int[] makeCumulativeTestPoints()
Creates the default cumulative probability density test input values.

Specified by:
makeCumulativeTestPoints in class IntegerDistributionAbstractTest

makeCumulativeTestValues

public double[] makeCumulativeTestValues()
Creates the default cumulative probability density test expected values.

Specified by:
makeCumulativeTestValues in class IntegerDistributionAbstractTest

makeInverseCumulativeTestPoints

public double[] makeInverseCumulativeTestPoints()
Creates the default inverse cumulative probability test input values.

Specified by:
makeInverseCumulativeTestPoints in class IntegerDistributionAbstractTest

makeInverseCumulativeTestValues

public int[] makeInverseCumulativeTestValues()
Creates the default inverse cumulative probability density test expected values.

Specified by:
makeInverseCumulativeTestValues in class IntegerDistributionAbstractTest

testNormalApproximateProbability

public 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)


testDegenerateInverseCumulativeProbability

public void testDegenerateInverseCumulativeProbability()
Test the degenerate cases of a 0.0 and 1.0 inverse cumulative probability.


testNegativeMean

public void testNegativeMean()

testMean

public void testMean()

testLargeMeanCumulativeProbability

public void testLargeMeanCumulativeProbability()

testCumulativeProbabilitySpecial

public void testCumulativeProbabilitySpecial()
JIRA: MATH-282


testLargeMeanInverseCumulativeProbability

public void testLargeMeanInverseCumulativeProbability()

testMoments

public void testMoments()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.