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 inChiSquareNoncentralDist.
-
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetLambda()Returns the value of λ for this object.doublegetNu()Returns the value of ν of this object.static doublenextDouble(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, toString
-
-
-
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG