public class ChiSquareNoncentralPoisGen extends ChiSquareNoncentralGen
To generate the Poisson variates, one
uses tabulated inversion for
λ < 10, and the acceptance complement
method for
λ >= 10, as in
(see class PoissonTIACGen).
To generate the gamma variates, one
uses acceptance-rejection for α < 1, and acceptance-complement
for
α >= 1, as proposed in
(see class GammaAcceptanceRejectionGen).
| Constructor and Description |
|---|
ChiSquareNoncentralPoisGen(RandomStream stream,
double nu,
double lambda)
Creates a noncentral chi square random variate generator
with ν = nu degrees of freedom and noncentrality parameter
λ = lambda using stream stream, as described above.
|
| Modifier and Type | Method and Description |
|---|---|
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 using
stream stream, as described above.
|
getLambda, getNugetDistribution, getStream, nextArrayOfDouble, setStreampublic ChiSquareNoncentralPoisGen(RandomStream stream, double nu, double lambda)
public double nextDouble()
RandomVariateGeninverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.nextDouble in class RandomVariateGenpublic static double nextDouble(RandomStream stream, double nu, double lambda)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.