SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ChiSquareNoncentralGen Class Reference

This class implements random variate generators for the noncentral chi square distribution with \(\nu> 0\) degrees of freedom and noncentrality parameter \(\lambda> 0\). More...

Inheritance diagram for ChiSquareNoncentralGen:
[legend]
Collaboration diagram for ChiSquareNoncentralGen:
[legend]

Public Member Functions

 ChiSquareNoncentralGen (RandomStream s, double nu, double lambda)
 Creates a noncentral chi square random variate generator with nu \(=\nu>0\) degrees of freedom and noncentrality parameter lambda \(= \lambda>0\), using stream s.
 
 ChiSquareNoncentralGen (RandomStream s, ChiSquareNoncentralDist dist)
 Create a new generator for the distribution dist and stream s.
 
double getNu ()
 Returns the value of \(\nu\) of this object.
 
double getLambda ()
 Returns the value of \(\lambda\) for this object.
 
- Public Member Functions inherited from RandomVariateGen
 RandomVariateGen (RandomStream s, Distribution dist)
 Creates a new random variate generator from the distribution dist, using stream s. More...
 
double nextDouble ()
 Generates a random number from the continuous distribution contained in this object. More...
 
void nextArrayOfDouble (double[] v, int start, int n)
 Generates n random numbers from the continuous distribution contained in this object. More...
 
double [] nextArrayOfDouble (int n)
 Generates n random numbers from the continuous distribution contained in this object, and returns them in a new array of size n. More...
 
RandomStream getStream ()
 Returns the umontreal.ssj.rng.RandomStream used by this generator. More...
 
void setStream (RandomStream stream)
 Sets the umontreal.ssj.rng.RandomStream used by this generator to stream.
 
Distribution getDistribution ()
 Returns the umontreal.ssj.probdist.Distribution used by this generator. More...
 
String toString ()
 Returns a String containing information about the current generator.
 

Static Public Member Functions

static double nextDouble (RandomStream s, double nu, double lambda)
 Generates a new variate from the noncentral chi square distribution with nu = \(\nu\) degrees of freedom and noncentrality parameter lambda \(=\lambda\), using stream s.
 

Protected Member Functions

void setParams (double nu, double lambda)
 Sets the parameters \(\nu=\) nu and \(\lambda= \) lambda of this object.
 

Protected Attributes

double nu = -1.0
 
double lambda = -1.0
 
- Protected Attributes inherited from RandomVariateGen
RandomStream stream
 
Distribution dist
 

Detailed Description

This class implements random variate generators for the noncentral chi square distribution with \(\nu> 0\) degrees of freedom and noncentrality parameter \(\lambda> 0\).

See the definition in umontreal.ssj.probdist.ChiSquareNoncentralDist.


The documentation for this class was generated from the following file: