|
SSJ V. 1.2.5. |
||||||||
| 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.RandomVariateGenInt
umontreal.iro.lecuyer.randvar.LogarithmicGen
public class LogarithmicGen
This class implements random variate generators for the (discrete) logarithmic distribution. Its mass function is
for x = 1, 2,…,
A local copy of the parameter θ is maintained in this class.
| Constructor Summary | |
|---|---|
LogarithmicGen(RandomStream s,
LogarithmicDist dist)
Creates a new generator with distribution dist and stream s, with default value θ0 = 0.96. |
|
LogarithmicGen(RandomStream s,
LogarithmicDist dist,
double theta0)
Creates a new generator with distribution dist and stream s, with θ0 = |
|
| Method Summary | |
|---|---|
int |
nextInt()
Generates a random number (an integer) from the discrete distribution contained in this object. |
static int |
nextInt(RandomStream s,
double theta)
Uses stream s to generate a new variate from the logarithmic distribution with parameter θ = theta. |
| Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGenInt |
|---|
nextArrayOfInt |
| 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 |
|---|
public LogarithmicGen(RandomStream s,
LogarithmicDist dist)
public LogarithmicGen(RandomStream s,
LogarithmicDist dist,
double theta0)
| Method Detail |
|---|
public int nextInt()
RandomVariateGenInt
nextInt in class RandomVariateGenInt
public static int nextInt(RandomStream s,
double theta)
|
SSJ V. 1.2.5. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||