|
SSJ V. labo. |
||||||||
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.UnuranDiscreteInt
public class UnuranDiscreteInt
This class permits one to create a discrete univariate generator using UNURAN via its string API.
Constructor Summary | |
---|---|
UnuranDiscreteInt(RandomStream s,
RandomStream aux,
String genStr)
Constructs a new discrete random number generator using the UNURAN generator specification string genStr, main stream s, and auxiliary stream aux. |
|
UnuranDiscreteInt(RandomStream s,
String genStr)
Same as UnuranDiscreteInt (s, s, genStr). |
Method Summary | |
---|---|
RandomStream |
getAuxStream()
Returns the auxiliary random number stream. |
DiscreteDistributionInt |
getDistribution()
. |
RandomStream |
getStream()
Returns the RandomStream used by this generator. |
void |
nextArrayOfInt(int[] v,
int start,
int n)
. |
int |
nextInt()
. |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
nextArrayOfDouble, nextDouble, setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnuranDiscreteInt(RandomStream s, String genStr)
UnuranDiscreteInt
(s, s, genStr).
public UnuranDiscreteInt(RandomStream s, RandomStream aux, String genStr)
Method Detail |
---|
public int nextInt()
RandomVariateGenInt
nextInt
in class RandomVariateGenInt
public void nextArrayOfInt(int[] v, int start, int n)
RandomVariateGenInt
nextArrayOfInt
in class RandomVariateGenInt
public DiscreteDistributionInt getDistribution()
RandomVariateGenInt
getDistribution
in class RandomVariateGenInt
public RandomStream getStream()
RandomVariateGen
RandomStream
used by this generator.
getStream
in class RandomVariateGen
public RandomStream getAuxStream()
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |