Class DistPearson6
java.lang.Object
nl.tudelft.simulation.jstats.distributions.Dist
nl.tudelft.simulation.jstats.distributions.DistContinuous
nl.tudelft.simulation.jstats.distributions.DistPearson6
The Pearson6 distribution. For more information on this distribution see
https://mathworld.wolfram.com/Pearson6Distribution.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
ConstructorsConstructorDescriptionDistPearson6(StreamInterface stream, double alpha1, double alpha2, double beta) constructs a new Pearson6 distribution. -
Method Summary
Modifier and TypeMethodDescriptiondoubledraw()draws the next stream value according to the probability of this this distribution.doubleReturn the first shape parameter α1.doubleReturn the second shape parameter α2.doublegetBeta()Return the scale parameter β.doublegetProbabilityDensity(double x) returns the probability density value of a value x.voidsetStream(StreamInterface stream) Replace the random number stream.toString()
-
Constructor Details
-
DistPearson6
constructs a new Pearson6 distribution.- Parameters:
stream- the random number streamalpha1- the first shape parameteralpha2- the second shape parameterbeta- the scale parameter- Throws:
IllegalArgumentException- when alpha1 <= 0 or alpha2 <= 0 or beta <= 0
-
-
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
-
getAlpha1
public double getAlpha1()Return the first shape parameter α1.- Returns:
- the first shape parameter α1
-
getAlpha2
public double getAlpha2()Return the second shape parameter α2.- Returns:
- the second shape parameter α2
-
getBeta
public double getBeta()Return the scale parameter β.- Returns:
- the scale parameter β
-
setStream
Description copied from class:DistReplace the random number stream. -
toString
-