Class DiscreteDistributionTest
java.lang.Object
nl.tudelft.simulation.jstats.distributions.DiscreteDistributionTest
DistributionTest tests the correct statistics of the discrete distributions, based on a tally of their values.
Copyright (c) 2020-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.
- Author:
- Alexander Verbraeck
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the Bernoulli distribution.void
Test the Binomial distribution.void
Test the DiscreteConstant distribution.void
Test the DiscreteUniform distribution.void
Test the distributions for the correct stats based on a tally of their values.void
Test the Geometric distribution.void
Test the Negative Binomial distribution.void
Test the Poisson distribution.
-
Field Details
-
stream
StreamInterface streamthe random stream to use.
-
-
Constructor Details
-
DiscreteDistributionTest
public DiscreteDistributionTest()
-
-
Method Details
-
testDistributionsMeanVariance
@Test public void testDistributionsMeanVariance()Test the distributions for the correct stats based on a tally of their values. -
testBernoulli
@Test public void testBernoulli()Test the Bernoulli distribution. -
testBinomial
@Test public void testBinomial()Test the Binomial distribution. -
testDiscreteConstant
@Test public void testDiscreteConstant()Test the DiscreteConstant distribution. -
testDiscreteUniform
@Test public void testDiscreteUniform()Test the DiscreteUniform distribution. -
testGeometric
@Test public void testGeometric()Test the Geometric distribution. -
testNegBinomial
@Test public void testNegBinomial()Test the Negative Binomial distribution. -
testPoisson
@Test public void testPoisson()Test the Poisson distribution.
-