Class DistContinuous
java.lang.Object
nl.tudelft.simulation.jstats.distributions.Dist
nl.tudelft.simulation.jstats.distributions.DistContinuous
- Direct Known Subclasses:
DistBeta,DistConstant,DistEmpiricalDiscreteDouble,DistEmpiricalInterpolated,DistErlang,DistExponential,DistGamma,DistNormal,DistNormalTrunc,DistPearson5,DistPearson6,DistTriangular,DistUniform,DistWeibull
The Continuous distribution. For more information on this distribution see
https://mathworld.wolfram.com/ContinuousDistribution.html
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 Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDistContinuous(StreamInterface stream) constructs a new continuous distribution. -
Method Summary
Modifier and TypeMethodDescriptionabstract doubledraw()draws the next stream value according to the probability of this this distribution.abstract doublegetProbabilityDensity(double x) returns the probability density value of a value x.
-
Constructor Details
-
DistContinuous
constructs a new continuous distribution.- Parameters:
stream- the stream
-
-
Method Details
-
draw
public abstract double draw()draws the next stream value according to the probability of this this distribution.- Returns:
- the next double value drawn.
-
getProbabilityDensity
public abstract double getProbabilityDensity(double x) returns the probability density value of a value x.- Parameters:
x- the value for which the density function needs to be calculated- Returns:
- the probability density for value x
-