26package umontreal.ssj.randvar;
28import umontreal.ssj.rng.*;
58 private double racLam = -1.0;
69 racLam = Math.sqrt(lambda);
73 return gamGen(stream, nu, racLam);
82 double racLam = Math.sqrt(lambda);
83 return gamGen(stream, nu, racLam);
88 private static double gamGen(
RandomStream s,
double nu,
double racLam) {
double nextDouble()
Generates a random number from the continuous distribution contained in this object.
static double nextDouble(RandomStream stream, double nu, double lambda)
Generates a variate from the noncentral chi square distribution with parameters  nu and  lambda usi...
ChiSquareNoncentralGamGen(RandomStream stream, double nu, double lambda)
Creates a noncentral chi square random variate generator with with.
void setParams(double nu, double lambda)
Sets the parameters nu and lambda of this object.
ChiSquareNoncentralGen(RandomStream s, double nu, double lambda)
Creates a noncentral chi square random variate generator with nu.
This class implements gamma random variate generators using a method that combines acceptance-rejecti...
static double nextDouble(RandomStream s, RandomStream aux, double alpha, double lambda)
Generates a new gamma variate with parameters  alpha and  lambda, using main stream s and auxilia...
This class implements normal random variate generators using the acceptance-complement ratio method r...
double nextDouble()
Generates a random number from the continuous distribution contained in this object.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...