|
SSJ V. 1.2.5. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.randvar.RandomVariateGen
umontreal.iro.lecuyer.randvar.ChiGen
public class ChiGen
This class implements random variate generators for the chi distribution. It has ν > 0 degrees of freedom and its density function is
GammaGen.
No local copy of the parameter ν is maintained in this class. The (non-static) nextDouble method simply calls inverseF on the distribution (slow).
| Constructor Summary | |
|---|---|
ChiGen(RandomStream s,
ChiDist dist)
Create a new generator for the distribution dist, using stream s. |
|
| Method Summary | |
|---|---|
double |
nextDouble()
Generates a random number from the continuous distribution contained in this object. |
static double |
nextDouble(RandomStream s,
int nu)
Generates a random variate from the chi distribution with ν = nu degrees of freedom, using stream s. |
| Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
|---|
getDistribution, getStream, nextArrayOfDouble, setStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChiGen(RandomStream s,
ChiDist dist)
| Method Detail |
|---|
public double nextDouble()
RandomVariateGeninverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.
nextDouble in class RandomVariateGen
public static double nextDouble(RandomStream s,
int nu)
|
SSJ V. 1.2.5. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||