Package jasima.core.random.continuous
Class DblWeibull
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.random.continuous.DblDistribution
-
- jasima.core.random.continuous.DblWeibull
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DblWeibull extends DblDistribution
This class implements a number stream of real values following a Weibull distribution. A Weilbull distribution is characterized by a shape parameter and a scale parameter.- Author:
- Torsten Hildebrandt
- See Also:
- Weibull distribution (Wikipedia), Weibull distribution (MathWorld), Serialized Form
-
-
Field Summary
-
Fields inherited from class jasima.core.random.continuous.DblSequence
rndGen
-
-
Constructor Summary
Constructors Constructor Description DblWeibull()DblWeibull(double shape, double scale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetScale()doublegetShape()protected voidsetDistribution(org.apache.commons.math3.distribution.RealDistribution distribution)Sets the continuous distribution to use.voidsetScale(double scale)Sets the scale parameter for this distribution.voidsetShape(double shape)Sets the shape parameter for this distribution.StringtoString()-
Methods inherited from class jasima.core.random.continuous.DblDistribution
getDistribution, getNumericalMean, getValueRange, nextDbl
-
Methods inherited from class jasima.core.random.continuous.DblSequence
clone, createStreamDefFromStream, getName, getRndGen, init, max, min, setName, setRndGen
-
-
-
-
Method Detail
-
setDistribution
protected void setDistribution(org.apache.commons.math3.distribution.RealDistribution distribution)
Description copied from class:DblDistributionSets the continuous distribution to use.- Overrides:
setDistributionin classDblDistribution
-
toString
public String toString()
- Overrides:
toStringin classDblDistribution
-
getShape
public double getShape()
-
setShape
public void setShape(double shape) throws org.apache.commons.math3.exception.NotStrictlyPositiveExceptionSets the shape parameter for this distribution.- Parameters:
shape- The shape parameter to use.- Throws:
org.apache.commons.math3.exception.NotStrictlyPositiveException- If the parameter value was<=0.0.
-
getScale
public double getScale()
-
setScale
public void setScale(double scale)
Sets the scale parameter for this distribution.- Parameters:
scale- The scale parameter to use.- Throws:
org.apache.commons.math3.exception.NotStrictlyPositiveException- If the parameter value was<=0.0.
-
-