Class Dist
java.lang.Object
nl.tudelft.simulation.jstats.distributions.Dist
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DistContinuous
,DistContinuousSimulationTime
,DistContinuousUnit
,DistDiscrete
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 Summary
Modifier and TypeFieldDescriptionprotected StreamInterface
stream is the random number generator from which to draw. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the random number stream.void
setStream
(StreamInterface stream) Replace the random number stream.
-
Field Details
-
stream
stream is the random number generator from which to draw.
-
-
Constructor Details
-
Dist
Constructs a new Distribution.- Parameters:
stream
- StreamInterface; the stream for this mathematical distribution.- Throws:
NullPointerException
- when stream is null
-
-
Method Details
-
getStream
Return the random number stream.- Returns:
- StreamInterface; the random number stream
-
setStream
Replace the random number stream.- Parameters:
stream
- StreamInterface; the new random number stream- Throws:
NullPointerException
- when stream is null
-