| 
SSJ  V. 2.6.  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.randvar.RandomVariateGen
umontreal.iro.lecuyer.randvar.GammaGen
public class GammaGen
This class implements random variate generators for the gamma distribution. Its parameters are α > 0 and λ > 0. Its density function is
The (non-static) nextDouble method simply calls inverseF on the distribution.
| Constructor Summary | |
|---|---|
GammaGen(RandomStream s,
         double alpha)
Creates a gamma random variate generator with parameters α = alpha and λ = 1, using stream s.  | 
|
GammaGen(RandomStream s,
         double alpha,
         double lambda)
Creates a gamma random variate generator with parameters α = alpha and λ = lambda, using stream s.  | 
|
GammaGen(RandomStream s,
         GammaDist dist)
Creates a new generator object for the gamma distribution dist and stream s.  | 
|
| Method Summary | |
|---|---|
 double | 
getAlpha()
Returns the parameter α of this object.  | 
 double | 
getLambda()
Returns the parameter λ of this object.  | 
static double | 
nextDouble(RandomStream s,
           double alpha,
           double lambda)
Generates a new gamma random variate with parameters α = alpha and λ = 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 | 
|---|
public GammaGen(RandomStream s,
                double alpha,
                double lambda)
public GammaGen(RandomStream s,
                double alpha)
public GammaGen(RandomStream s,
                GammaDist dist)
| Method Detail | 
|---|
public static double nextDouble(RandomStream s,
                                double alpha,
                                double lambda)
public double getAlpha()
public double getLambda()
  | 
SSJ  V. 2.6.  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||