Overview | Package | Class | Tree | Deprecated | Index | Help
| SSJ V. 2.1.1.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## umontreal.iro.lecuyer.randvar
Class ChiSquareNoncentralGen

    java.lang.Object
      umontreal.iro.lecuyer.randvar.RandomVariateGen
          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 ν degrees of freedom and noncentrality parameter λ. 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 ν > 0 degrees of freedom and noncentrality parameter λ > 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 ν degrees of freedom and noncentrality parameter λ, using stream `s`.

Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen
`getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ChiSquareNoncentralGen

    public ChiSquareNoncentralGen(RandomStream s,
                                  double nu,
                                  double lambda)

  Creates a noncentral chi square random variate generator with ν > 0 degrees of freedom and noncentrality parameter λ > 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 ν degrees of freedom and noncentrality parameter λ, 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| SSJ V. 2.1.1.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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