25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
42 protected double nu = -1.0;
43 protected double lambda = -1.0;
62 setParams(dist.getNu(), dist.getLambda());
92 protected void setParams(
double nu,
double lambda) {
94 throw new IllegalArgumentException(
"nu <= 0");
96 throw new IllegalArgumentException(
"lambda < 0");
Extends the class ContinuousDistribution for the noncentral chi-square distribution with degrees of ...
double inverseF(double u)
Returns the inverse distribution function .
static double nextDouble(RandomStream s, double nu, double lambda)
Generates a new variate from the noncentral chi square distribution with nu = degrees of freedom and...
void setParams(double nu, double lambda)
Sets the parameters nu and lambda of this object.
double getLambda()
Returns the value of for this object.
ChiSquareNoncentralGen(RandomStream s, ChiSquareNoncentralDist dist)
Create a new generator for the distribution dist and stream s.
ChiSquareNoncentralGen(RandomStream s, double nu, double lambda)
Creates a noncentral chi square random variate generator with nu.
double getNu()
Returns the value of of this object.
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,...