java.lang.Object
nl.tudelft.simulation.jstats.distributions.Dist
Direct Known Subclasses:
DistContinuous, DistContinuousSimulationTime, DistContinuousUnit, DistDiscrete

public abstract class Dist extends Object
The Distribution class forms the basis for all statistical distributions.

Copyright (c) 2002-2025 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:
Peter Jacobs , Alexander Verbraeck
  • Field Details

    • stream

      protected StreamInterface stream
      stream is the random number generator from which to draw.
  • Constructor Details

    • Dist

      public Dist(StreamInterface stream)
      Constructs a new Distribution.
      Parameters:
      stream - the stream for this mathematical distribution.
      Throws:
      NullPointerException - when stream is null
  • Method Details

    • getStream

      public StreamInterface getStream()
      Return the random number stream.
      Returns:
      the random number stream
    • setStream

      public void setStream(StreamInterface stream)
      Replace the random number stream.
      Parameters:
      stream - the new random number stream
      Throws:
      NullPointerException - when stream is null