|
||||||||||
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.RetryTestCase
org.apache.commons.math.random.RandomDataTest
public class RandomDataTest
Test cases for the RandomData class.
Field Summary | |
---|---|
protected double[] |
expected
|
protected int |
largeSampleSize
|
protected org.apache.commons.math.random.RandomDataImpl |
randomData
|
protected long |
smallSampleSize
|
protected org.apache.commons.math.stat.inference.ChiSquareTestImpl |
testStatistic
|
Constructor Summary | |
---|---|
RandomDataTest(String name)
|
Method Summary | |
---|---|
static junit.framework.Test |
suite()
|
void |
testConfig()
test reseeding, algorithm/provider games |
void |
testNextExponential()
test failure modes and distribution of nextExponential() |
void |
testNextGaussian()
test failure modes and distribution of nextGaussian() |
void |
testNextHex()
test dispersion and failute modes for nextHex() |
void |
testNextInt()
test dispersion and failure modes for nextInt() |
void |
testNextIntExtremeValues()
|
void |
testNextLong()
test dispersion and failure modes for nextLong() |
void |
testNextLongExtremeValues()
|
void |
testNextPermutation()
tests for nextPermutation |
void |
testNextPoisson()
Make sure that empirical distribution of random Poisson(4)'s has P(X <= 5) close to actual cumulative Poisson probablity and that nextPoisson fails when mean is non-positive TODO: replace with statistical test, adding test stat to TestStatistic |
void |
testNextPoissonLargeMean()
|
void |
testNextSample()
tests for nextSample() sampling from Collection |
void |
testNextSecureHex()
test dispersion and failute modes for nextHex() |
void |
testNextSecureInt()
test dispersion and failure modes for nextSecureInt() |
void |
testNextSecureLong()
test dispersion and failure modes for nextSecureLong() |
void |
testNextUniform()
test failure modes and dispersion of nextUniform() |
void |
testNextUniformExclusiveEndpoints()
test exclusive endpoints of nextUniform |
Methods inherited from class org.apache.commons.math.RetryTestCase |
---|
runTest |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, setName, setUp, tearDown, 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 |
Field Detail |
---|
protected long smallSampleSize
protected double[] expected
protected int largeSampleSize
protected org.apache.commons.math.random.RandomDataImpl randomData
protected org.apache.commons.math.stat.inference.ChiSquareTestImpl testStatistic
Constructor Detail |
---|
public RandomDataTest(String name)
Method Detail |
---|
public static junit.framework.Test suite()
public void testNextIntExtremeValues()
public void testNextLongExtremeValues()
public void testNextInt()
public void testNextLong()
public void testNextSecureLong()
public void testNextSecureInt()
public void testNextPoisson()
public void testNextPoissonLargeMean()
public void testNextHex()
public void testNextSecureHex()
public void testNextUniform()
public void testNextUniformExclusiveEndpoints()
public void testNextGaussian()
public void testNextExponential()
public void testConfig()
public void testNextSample()
public void testNextPermutation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |