Class DiscreteDistributionTest
- java.lang.Object
-
- nl.tudelft.simulation.jstats.distributions.DiscreteDistributionTest
-
public class DiscreteDistributionTest extends Object
DistributionTest tests the correct statistics of the discrete distributions, based on a tally of their values.Copyright (c) 2020-2023 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
Fields Modifier and Type Field Description (package private) StreamInterfacestreamthe random stream to use.
-
Constructor Summary
Constructors Constructor Description DiscreteDistributionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestBernoulli()Test the Bernoulli distribution.voidtestBinomial()Test the Binomial distribution.voidtestDiscreteConstant()Test the DiscreteConstant distribution.voidtestDiscreteUniform()Test the DiscreteUniform distribution.voidtestDistributionsMeanVariance()Test the distributions for the correct stats based on a tally of their values.voidtestGeometric()Test the Geometric distribution.voidtestNegBinomial()Test the Negative Binomial distribution.voidtestPoisson()Test the Poisson distribution.
-
-
-
Field Detail
-
stream
StreamInterface stream
the random stream to use.
-
-
Method Detail
-
testDistributionsMeanVariance
public void testDistributionsMeanVariance()
Test the distributions for the correct stats based on a tally of their values.
-
testBernoulli
public void testBernoulli()
Test the Bernoulli distribution.
-
testBinomial
public void testBinomial()
Test the Binomial distribution.
-
testDiscreteConstant
public void testDiscreteConstant()
Test the DiscreteConstant distribution.
-
testDiscreteUniform
public void testDiscreteUniform()
Test the DiscreteUniform distribution.
-
testGeometric
public void testGeometric()
Test the Geometric distribution.
-
testNegBinomial
public void testNegBinomial()
Test the Negative Binomial distribution.
-
testPoisson
public void testPoisson()
Test the Poisson distribution.
-
-