Package jasima.core.random.continuous
Class DblTDist
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.random.continuous.DblDistribution
-
- jasima.core.random.continuous.DblTDist
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DblTDist extends DblDistribution
Implements a stream of numbers following a Student's t-distribution. The distribution has a single shape parameter:degreesOfFreedom.- Author:
- Torsten Hildebrandt
- See Also:
- Student's t-distribution (Wikipedia), Student 's t-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 doublegetDegreesOfFreedom()voidsetDegreesOfFreedom(double degreesOfFreedom)Sets the degrees of freedom for this 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
-
getDegreesOfFreedom
public double getDegreesOfFreedom()
-
setDegreesOfFreedom
public void setDegreesOfFreedom(double degreesOfFreedom) throws org.apache.commons.math3.exception.NotStrictlyPositiveExceptionSets the degrees of freedom for this distribution.- Parameters:
degreesOfFreedom- The degrees of freedom to use.- Throws:
org.apache.commons.math3.exception.NotStrictlyPositiveException- If the parameter value was<=0.0.
-
-