SSJ
V. labo.

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

ChiSquareNoncentralGen

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 umontreal.iro.lecuyer.probdistChiSquareNoncentralDist.


Constructor Summary
ChiSquareNoncentralGen(RandomStream s, ChiSquareNoncentralDist dist)
          .
ChiSquareNoncentralGen(RandomStream s, double nu, double lambda)
          .
 
Method Summary
 double getLambda()
          .
 double getNu()
          .
static double nextDouble(RandomStream s, double nu, double lambda)
          .
 
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)
. \begin{tabb}Creates a \emph{noncentral chi square} random variate generator
 wit...
 ...ty parameter
 \texttt{lambda} $= \lambda>0$,
 using stream \texttt{s}.
 \end{tabb}


ChiSquareNoncentralGen

public ChiSquareNoncentralGen(RandomStream s,
                              ChiSquareNoncentralDist dist)
. \begin{tabb}Create a new generator for the distribution \texttt{dist}
 and stream \texttt{s}.
 \end{tabb}

Method Detail

nextDouble

public static double nextDouble(RandomStream s,
                                double nu,
                                double lambda)
. \begin{tabb}Generates a new variate from the noncentral chi square
 distribution ...
 ...ality
 parameter \texttt{lambda} $=\lambda$,
 using stream \texttt{s}.
 \end{tabb}


getNu

public double getNu()
. \begin{tabb}Returns the value of $\nu$\ of this object.
 \end{tabb}


getLambda

public double getLambda()
. \begin{tabb}
 Returns the value of $\lambda$\ for this object.
 \end{tabb}

 


SSJ
V. labo.

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