org.apache.commons.math3.distribution
Class GammaDistributionTest

java.lang.Object
  extended by org.apache.commons.math3.distribution.RealDistributionAbstractTest
      extended by org.apache.commons.math3.distribution.GammaDistributionTest

public class GammaDistributionTest
extends RealDistributionAbstractTest

Test cases for GammaDistribution. Extends ContinuousDistributionAbstractTest. See class javadoc for ContinuousDistributionAbstractTest for details.

Version:
$Id: GammaDistributionTest.java 1454719 2013-03-09 14:34:05Z luc $

Constructor Summary
GammaDistributionTest()
           
 
Method Summary
static double density(double x, double shape, double scale)
           
static double logGamma(double x)
           
 double[] makeCumulativeTestPoints()
          Creates the default cumulative probability distribution test input values
 double[] makeCumulativeTestValues()
          Creates the default cumulative probability density test expected values
 double[] makeDensityTestValues()
          Creates the default probability density test expected values
 GammaDistribution makeDistribution()
          Creates the default continuous distribution instance to use in tests.
 void setUp()
          Setup sets all test instance data to default values
 void testDensity()
           
 void testInverseCumulativeProbabilityExtremes()
           
 void testMath753Shape1()
           
 void testMath753Shape10()
           
 void testMath753Shape100()
           
 void testMath753Shape1000()
           
 void testMath753Shape142()
           
 void testMath753Shape8()
           
 void testMoments()
           
 void testParameterAccessors()
           
 void testPreconditions()
           
 void testProbabilities()
           
 void testValues()
           
 
Methods inherited from class org.apache.commons.math3.distribution.RealDistributionAbstractTest
getCumulativeTestPoints, getCumulativeTestValues, getDensityTestValues, getDistribution, getInverseCumulativeTestPoints, getInverseCumulativeTestValues, getTolerance, makeInverseCumulativeTestPoints, makeInverseCumulativeTestValues, setCumulativeTestPoints, setCumulativeTestValues, setDensityTestValues, setDistribution, setInverseCumulativeTestPoints, setInverseCumulativeTestValues, setTolerance, tearDown, testConsistency, testCumulativeProbabilities, testDensities, testDensityIntegrals, testDistributionClone, testIllegalArguments, testInverseCumulativeProbabilities, testIsSupportLowerBoundInclusive, testIsSupportUpperBoundInclusive, testSampling, verifyCumulativeProbabilities, verifyDensities, verifyInverseCumulativeProbabilities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GammaDistributionTest

public GammaDistributionTest()
Method Detail

makeDistribution

public GammaDistribution makeDistribution()
Creates the default continuous distribution instance to use in tests.

Specified by:
makeDistribution in class RealDistributionAbstractTest

makeCumulativeTestPoints

public double[] makeCumulativeTestPoints()
Creates the default cumulative probability distribution test input values

Specified by:
makeCumulativeTestPoints in class RealDistributionAbstractTest

makeCumulativeTestValues

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

Specified by:
makeCumulativeTestValues in class RealDistributionAbstractTest

makeDensityTestValues

public double[] makeDensityTestValues()
Creates the default probability density test expected values

Specified by:
makeDensityTestValues in class RealDistributionAbstractTest

setUp

public void setUp()
Description copied from class: RealDistributionAbstractTest
Setup sets all test instance data to default values

Overrides:
setUp in class RealDistributionAbstractTest

testParameterAccessors

public void testParameterAccessors()

testPreconditions

public void testPreconditions()

testProbabilities

public void testProbabilities()

testValues

public void testValues()

testDensity

public void testDensity()

testInverseCumulativeProbabilityExtremes

public void testInverseCumulativeProbabilityExtremes()

testMoments

public void testMoments()

logGamma

public static double logGamma(double x)

density

public static double density(double x,
                             double shape,
                             double scale)

testMath753Shape1

public void testMath753Shape1()
                       throws IOException
Throws:
IOException

testMath753Shape8

public void testMath753Shape8()
                       throws IOException
Throws:
IOException

testMath753Shape10

public void testMath753Shape10()
                        throws IOException
Throws:
IOException

testMath753Shape100

public void testMath753Shape100()
                         throws IOException
Throws:
IOException

testMath753Shape142

public void testMath753Shape142()
                         throws IOException
Throws:
IOException

testMath753Shape1000

public void testMath753Shape1000()
                          throws IOException
Throws:
IOException


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