Class DistWeibull
- java.lang.Object
-
- nl.tudelft.simulation.jstats.distributions.Dist
-
- nl.tudelft.simulation.jstats.distributions.DistContinuous
-
- nl.tudelft.simulation.jstats.distributions.DistWeibull
-
- All Implemented Interfaces:
Serializable
public class DistWeibull extends DistContinuous
The Weibull distribution with a shape parameter α and a scale parameter β. For more information on this distribution see https://mathworld.wolfram.com/WeibullDistribution.htmlCopyright (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
-
-
Constructor Summary
Constructors Constructor Description DistWeibull(StreamInterface stream, double alpha, double beta)constructs a new Weibull distribution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledraw()draws the next stream value according to the probability of this this distribution.doublegetAlpha()Return the shape parameter α.doublegetBeta()Return the scale parameter β.doublegetProbabilityDensity(double x)returns the probability density value of a value x.StringtoString()
-
-
-
Constructor Detail
-
DistWeibull
public DistWeibull(StreamInterface stream, double alpha, double beta)
constructs a new Weibull distribution.- Parameters:
stream- StreamInterface; the random number streamalpha- double; the shape parameter αbeta- double; the scale parameter β
-
-
Method Detail
-
draw
public double draw()
draws the next stream value according to the probability of this this distribution.- Specified by:
drawin classDistContinuous- Returns:
- the next double value drawn.
-
getProbabilityDensity
public double getProbabilityDensity(double x)
returns the probability density value of a value x.- Specified by:
getProbabilityDensityin classDistContinuous- Parameters:
x- double; the value for which the density function needs to be calculated- Returns:
- double; the probability density for value x
-
getAlpha
public double getAlpha()
Return the shape parameter α.- Returns:
- double; the shape parameter α
-
getBeta
public double getBeta()
Return the scale parameter β.- Returns:
- double; the scale parameter β
-
-