Class DistWeibull
java.lang.Object
nl.tudelft.simulation.jstats.distributions.Dist
nl.tudelft.simulation.jstats.distributions.DistContinuous
nl.tudelft.simulation.jstats.distributions.DistWeibull
The Weibull distribution with a shape parameter α and a scale parameter β. For more information on this
distribution see
https://mathworld.wolfram.com/WeibullDistribution.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
ConstructorsConstructorDescriptionDistWeibull(StreamInterface stream, double alpha, double beta) constructs a new Weibull distribution. -
Method Summary
Modifier and TypeMethodDescriptiondoubledraw()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.toString()
-
Constructor Details
-
DistWeibull
constructs a new Weibull distribution.- Parameters:
stream- the random number streamalpha- the shape parameter αbeta- the scale parameter β
-
-
Method Details
-
draw
public double draw()Description copied from class:DistContinuousdraws 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) Description copied from class:DistContinuousreturns the probability density value of a value x.- Specified by:
getProbabilityDensityin classDistContinuous- Parameters:
x- the value for which the density function needs to be calculated- Returns:
- the probability density for value x
-
getAlpha
public double getAlpha()Return the shape parameter α.- Returns:
- the shape parameter α
-
getBeta
public double getBeta()Return the scale parameter β.- Returns:
- the scale parameter β
-
toString
-