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

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

Copyright (c) 2002-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.

Author:
Peter Jacobs , Alexander Verbraeck
See Also:
  • 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 - StreamInterface; the stream for this mathematical distribution.
      Throws:
      NullPointerException - when stream is null
  • Method Details

    • getStream

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

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