SSJ
V. 2.6.2.

umontreal.iro.lecuyer.randvar
Class ChiSquareNoncentralGen

java.lang.Object
  extended by umontreal.iro.lecuyer.randvar.RandomVariateGen
      extended by umontreal.iro.lecuyer.randvar.ChiSquareNoncentralGen
Direct Known Subclasses:
ChiSquareNoncentralGamGen, ChiSquareNoncentralPoisGen

public class ChiSquareNoncentralGen
extends RandomVariateGen

This class implements random variate generators for the noncentral chi square distribution with ν > 0 degrees of freedom and noncentrality parameter λ > 0. See the definition in ChiSquareNoncentralDist.


Constructor Summary
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 = ν > 0 degrees of freedom and noncentrality parameter lambda = λ > 0, using stream s.
 
Method Summary
 double getLambda()
          Returns the value of λ for this object.
 double getNu()
          Returns the value of ν of this object.
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 noncentrality parameter lambda = λ, using stream s.
 
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChiSquareNoncentralGen

public ChiSquareNoncentralGen(RandomStream s,
                              double nu,
                              double lambda)
Creates a noncentral chi square random variate generator with nu = ν > 0 degrees of freedom and noncentrality parameter lambda = λ > 0, using stream s.


ChiSquareNoncentralGen

public ChiSquareNoncentralGen(RandomStream s,
                              ChiSquareNoncentralDist dist)
Create a new generator for the distribution dist and stream s.

Method Detail

nextDouble

public 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 noncentrality parameter lambda = λ, using stream s.


getNu

public double getNu()
Returns the value of ν of this object.


getLambda

public double getLambda()
Returns the value of λ for this object.


SSJ
V. 2.6.2.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.