|
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.BetaGen
umontreal.iro.lecuyer.randvar.BetaStratifiedRejectionGen
public class BetaStratifiedRejectionGen
BetaStratifiedRejectionGen
This class implements Beta random variate generators using the stratified rejection/patchwork rejection method. This method draws one uniform from the main stream and uses the auxiliary stream for any additional uniform variates that might be needed.
Constructor Summary | |
---|---|
BetaStratifiedRejectionGen(RandomStream s,
BetaDist dist)
. |
|
BetaStratifiedRejectionGen(RandomStream s,
double alpha,
double beta)
. |
|
BetaStratifiedRejectionGen(RandomStream s,
double alpha,
double beta,
double a,
double b)
. |
|
BetaStratifiedRejectionGen(RandomStream s,
RandomStream aux,
BetaDist dist)
. |
|
BetaStratifiedRejectionGen(RandomStream s,
RandomStream aux,
double alpha,
double beta)
. |
|
BetaStratifiedRejectionGen(RandomStream s,
RandomStream aux,
double alpha,
double beta,
double a,
double b)
[tabb32] |
Method Summary | |
---|---|
RandomStream |
getAuxStream()
. |
double |
nextDouble()
Generates a random number from the continuous distribution contained in this object. |
static double |
nextDouble(RandomStream s,
double alpha,
double beta,
double a,
double b)
|
Methods inherited from class umontreal.iro.lecuyer.randvar.BetaGen |
---|
getA, getAlpha, getB, getBeta |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
getDistribution, getStream, nextArrayOfDouble, setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BetaStratifiedRejectionGen(RandomStream s, RandomStream aux, double alpha, double beta)
public BetaStratifiedRejectionGen(RandomStream s, double alpha, double beta)
public BetaStratifiedRejectionGen(RandomStream s, RandomStream aux, double alpha, double beta, double a, double b)
public BetaStratifiedRejectionGen(RandomStream s, double alpha, double beta, double a, double b)
public BetaStratifiedRejectionGen(RandomStream s, RandomStream aux, BetaDist dist)
public BetaStratifiedRejectionGen(RandomStream s, BetaDist dist)
Method Detail |
---|
public RandomStream getAuxStream()
public double nextDouble()
RandomVariateGen
inverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.
nextDouble
in class RandomVariateGen
public static double nextDouble(RandomStream s, double alpha, double beta, double a, double b)
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |