|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.randvar.RandomVariateGen umontreal.iro.lecuyer.randvar.StudentNoncentralGen
public class StudentNoncentralGen
This class implements random variate generators for the noncentral Student-t distribution with n > 0 degrees of freedom and noncentrality parameter δ. If X is distributed according to a normal distribution with mean δ and variance 1, and Y (statistically independent of X) is distributed according to a chi-square distribution with n degrees of freedom, then
Constructor Summary | |
---|---|
StudentNoncentralGen(NormalGen ngen,
ChiSquareGen cgen)
Creates a noncentral-t random variate generator using normal generator ngen and chi-square generator cgen. |
Method Summary | |
---|---|
double |
nextDouble()
Generates a random number from the continuous distribution contained in this object. |
void |
setChiSquareGen(ChiSquareGen cgen)
Sets the chi-square generator to cgen. |
void |
setNormalGen(NormalGen ngen)
Sets the normal generator to ngen. |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
getDistribution, getStream, nextArrayOfDouble, setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StudentNoncentralGen(NormalGen ngen, ChiSquareGen cgen)
Method Detail |
---|
public double nextDouble()
RandomVariateGen
inverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.
nextDouble
in class RandomVariateGen
public void setNormalGen(NormalGen ngen)
public void setChiSquareGen(ChiSquareGen cgen)
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |