Class Dist
- 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-2023 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StreamInterfacestreamstream is the random number generator from which to draw.
-
Constructor Summary
Constructors Constructor Description Dist(StreamInterface stream)Constructs a new Distribution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamInterfacegetStream()Return the random number stream.voidsetStream(StreamInterface stream)Replace the random number stream.
-
-
-
Field Detail
-
stream
protected StreamInterface stream
stream is the random number generator from which to draw.
-
-
Constructor Detail
-
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 Detail
-
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
-
-