Package jasima.core.random.continuous
Class DblBeta
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.random.continuous.DblDistribution
-
- jasima.core.random.continuous.DblBeta
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DblBeta extends DblDistribution
Implements a number stream with values following a Beta distribution. A beta distribution is characterized by the two positive shape parametersalphaandbeta.- Author:
- Torsten Hildebrandt
- See Also:
- Beta distribution (Wikipedia), Beta distribution (MathWorld), Serialized Form
-
-
Field Summary
-
Fields inherited from class jasima.core.random.continuous.DblSequence
rndGen
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAlpha()doublegetBeta()voidsetAlpha(double alpha)Sets the parameter value for the distribution's shape parameteralpha.voidsetBeta(double beta)Sets the shape parameterbetaof the distribution.protected voidsetDistribution(org.apache.commons.math3.distribution.RealDistribution distribution)Sets the continuous distribution to use.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
-
getAlpha
public double getAlpha()
-
setAlpha
public void setAlpha(double alpha) throws org.apache.commons.math3.exception.NotStrictlyPositiveExceptionSets the parameter value for the distribution's shape parameteralpha.- Parameters:
alpha- The alpha value to use.- Throws:
org.apache.commons.math3.exception.NotStrictlyPositiveException- Ifalphawas<=0.
-
getBeta
public double getBeta()
-
setBeta
public void setBeta(double beta) throws org.apache.commons.math3.exception.NotStrictlyPositiveExceptionSets the shape parameterbetaof the distribution.- Parameters:
beta- Thebetaparameter value to use.- Throws:
org.apache.commons.math3.exception.NotStrictlyPositiveException- Ifbetawas<=0.
-
-