|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.randvar.RandomVariateGen
umontreal.iro.lecuyer.randvar.RandomVariateGenInt
public class RandomVariateGenInt
RandomVariateGenInt
This is the base class for all generators of discrete random variates over the set of integers. Similar to RandomVariateGen, except that the generators produce integers, via the nextInt method, instead of real numbers.
Constructor Summary | |
---|---|
RandomVariateGenInt(RandomStream s,
DiscreteDistributionInt dist)
. |
Method Summary | |
---|---|
DiscreteDistributionInt |
getDistribution()
. |
void |
nextArrayOfInt(int[] v,
int start,
int n)
. |
int |
nextInt()
. |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
getStream, nextArrayOfDouble, nextDouble, setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RandomVariateGenInt(RandomStream s, DiscreteDistributionInt dist)
Method Detail |
---|
public int nextInt()
public void nextArrayOfInt(int[] v, int start, int n)
public DiscreteDistributionInt getDistribution()
getDistribution
in class RandomVariateGen
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |