org.apache.commons.math3.distribution
Class HypergeometricDistributionTest

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

public class HypergeometricDistributionTest
extends IntegerDistributionAbstractTest

Test cases for HyperGeometriclDistribution. Extends IntegerDistributionAbstractTest. See class javadoc for IntegerDistributionAbstractTest for details.

Version:
$Id: HypergeometricDistributionTest.java 1364028 2012-07-21 00:42:49Z erans $

Constructor Summary
HypergeometricDistributionTest()
           
 
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 testAccessors()
           
 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 testMath644()
           
 void testMoments()
           
 void testMoreLargeValues()
           
 void testPreconditions()
           
 
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

HypergeometricDistributionTest

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

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

testDegenerateNoFailures

public void testDegenerateNoFailures()
Verify that if there are no failures, mass is concentrated on sampleSize


testDegenerateNoSuccesses

public void testDegenerateNoSuccesses()
Verify that if there are no successes, mass is concentrated on 0


testDegenerateFullSample

public void testDegenerateFullSample()
Verify that if sampleSize = populationSize, mass is concentrated on numberOfSuccesses


testPreconditions

public void testPreconditions()

testAccessors

public void testAccessors()

testLargeValues

public void testLargeValues()

testMoreLargeValues

public void testMoreLargeValues()

testMoments

public void testMoments()

testMath644

public void testMath644()


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