25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
47public class ChiGen extends RandomVariateGen {
48 protected int nu = -1;
65 setParams(dist.getNu());
75 throw new IllegalArgumentException(
"nu <= 0");
86 protected void setParams(
int nu) {
88 throw new IllegalArgumentException(
"nu <= 0");
Extends the class ContinuousDistribution for the chi distribution.
double inverseF(double u)
Returns the inverse distribution function .
static double nextDouble(RandomStream s, int nu)
Generates a random variate from the chi distribution with  nu degrees of freedom,...
ChiGen(RandomStream s, int nu)
Creates a chi random variate generator with nu degrees of freedom, using stream s.
int getNu()
Returns the value of for this object.
ChiGen(RandomStream s, ChiDist dist)
Create a new generator for the distribution dist, using stream s.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...