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-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 Details

    • stream

      nl.tudelft.simulation.jstats.streams.StreamInterface stream
      the 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.