|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.randvar.RandomVariateGen umontreal.iro.lecuyer.randvar.UnuranContinuous
public class UnuranContinuous
This class permits one to create continuous univariate generators using UNURAN via its string API.
Constructor Summary | |
---|---|
UnuranContinuous(RandomStream s,
RandomStream aux,
String genStr)
Constructs a new continuous random number generator using the UNURAN generator specification string genStr, main stream s, and auxiliary stream aux. |
|
UnuranContinuous(RandomStream s,
String genStr)
Same as UnuranContinuous (s, s, genStr). |
Method Summary | |
---|---|
RandomStream |
getAuxStream()
Returns the auxiliary random number stream. |
Distribution |
getDistribution()
Returns the Distribution used by this generator. |
RandomStream |
getStream()
Returns the RandomStream used by this generator. |
void |
nextArrayOfDouble(double[] v,
int start,
int n)
Generates n random numbers from the continuous distribution contained in this object. |
double |
nextDouble()
Generates a random number from the continuous distribution contained in this object. |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnuranContinuous(RandomStream s, String genStr)
UnuranContinuous
(s, s, genStr).
public UnuranContinuous(RandomStream s, RandomStream aux, String genStr)
Method Detail |
---|
public double nextDouble()
RandomVariateGen
inverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.
nextDouble
in class RandomVariateGen
public void nextArrayOfDouble(double[] v, int start, int n)
RandomVariateGen
nextDouble()
n
times, but one can override it in subclasses for better efficiency.
nextArrayOfDouble
in class RandomVariateGen
v
- array in which the variates will be storedstart
- starting index, in v, of the new variatesn
- number of variates to generatepublic Distribution getDistribution()
RandomVariateGen
Distribution
used by this generator.
getDistribution
in class RandomVariateGen
public RandomStream getStream()
RandomVariateGen
RandomStream
used by this generator.
getStream
in class RandomVariateGen
public RandomStream getAuxStream()
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |