25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
52 double x = normgen.nextDouble();
53 double y = chigen.nextDouble();
54 return x / Math.sqrt(y / n);
72 throw new IllegalArgumentException(
" variance of normal must be 1");
This class implements random variate generators with the chi square distribution with degrees of fre...
int getN()
Returns the value of for this object.
This class implements methods for generating random variates from the normal distribution .
double getSigma()
Returns the parameter of this object.
double nextDouble()
Generates a random number from the continuous distribution contained in this object.
void setNormalGen(NormalGen ngen)
Sets the normal generator to ngen.
void setChiSquareGen(ChiSquareGen cgen)
Sets the chi-square generator to cgen.
StudentNoncentralGen(NormalGen ngen, ChiSquareGen cgen)
Creates a noncentral-t random variate generator using normal generator ngen and chi-square generator ...