| |
|
| org.apache.commons.math.RetryTestCase org.apache.commons.math.random.EmpiricalDistributionTest
EmpiricalDistributionTest | final public class EmpiricalDistributionTest extends RetryTestCase (Code) | | Test cases for the EmpiricalDistribution class
version: $Revision: 348772 $ $Date: 2005-11-24 10:26:34 -0700 (Thu, 24 Nov 2005) $ |
Method Summary | |
public void | setUp() | public static Test | suite() | public void | testBinIndexOverflow() | public void | testDoubleLoad() Test EmpiricalDistrbution.load(double[]) using data taken from
sample data file.
Check that the sampleCount, mu and sigma match data in
the sample data file. | public void | testGridTooFat() | public void | testGridTooFine() | public void | testLoad() Test EmpiricalDistrbution.load() using sample data file.
Check that the sampleCount, mu and sigma match data in
the sample data file. | public void | testNexFail() Make sure exception thrown if digest getNext is attempted
before loading empiricalDistribution. | public void | testNext() Generate 1000 random values and make sure they look OK.
Note that there is a non-zero (but very small) probability that
these tests will fail even if the code is working as designed. | public void | testSerialization() |
dataArray | protected double[] dataArray(Code) | | |
EmpiricalDistributionTest | public EmpiricalDistributionTest(String name)(Code) | | |
suite | public static Test suite()(Code) | | |
testBinIndexOverflow | public void testBinIndexOverflow() throws Exception(Code) | | Test bin index overflow problem (BZ 36450)
|
testDoubleLoad | public void testDoubleLoad() throws Exception(Code) | | Test EmpiricalDistrbution.load(double[]) using data taken from
sample data file.
Check that the sampleCount, mu and sigma match data in
the sample data file.
|
testGridTooFat | public void testGridTooFat() throws Exception(Code) | | How about too fat?
|
testGridTooFine | public void testGridTooFine() throws Exception(Code) | | Make sure we can handle a grid size that is too fine
|
testLoad | public void testLoad() throws Exception(Code) | | Test EmpiricalDistrbution.load() using sample data file.
Check that the sampleCount, mu and sigma match data in
the sample data file.
|
testNexFail | public void testNexFail()(Code) | | Make sure exception thrown if digest getNext is attempted
before loading empiricalDistribution.
|
testNext | public void testNext() throws Exception(Code) | | Generate 1000 random values and make sure they look OK.
Note that there is a non-zero (but very small) probability that
these tests will fail even if the code is working as designed.
|
testSerialization | public void testSerialization()(Code) | | |
|
|
|