public class BetaStratifiedRejectionGen extends BetaGen
| Constructor and Description |
|---|
BetaStratifiedRejectionGen(RandomStream s,
BetaDist dist)
Same as
BetaStratifiedRejectionGen(s, s, dist). |
BetaStratifiedRejectionGen(RandomStream s,
double alpha,
double beta)
Creates a beta random variate generator with parameters α =
alpha and β = beta, over the interval (0, 1),
using stream s.
|
BetaStratifiedRejectionGen(RandomStream s,
double alpha,
double beta,
double a,
double b)
Creates a beta random variate generator with parameters α =
alpha and β = beta, over the interval
(a, b), using stream s.
|
BetaStratifiedRejectionGen(RandomStream s,
RandomStream aux,
BetaDist dist)
Creates a new generator for the distribution dist,
using the given stream s and auxiliary stream aux.
|
BetaStratifiedRejectionGen(RandomStream s,
RandomStream aux,
double alpha,
double beta)
Creates a beta random variate generator with parameters α =
alpha and β = beta, over the interval (0, 1),
using main stream s and auxiliary stream aux.
|
BetaStratifiedRejectionGen(RandomStream s,
RandomStream aux,
double alpha,
double beta,
double a,
double b)
Creates a beta random variate generator with parameters α =
alpha and β = beta, over the interval
(a, b),
using main stream s and auxiliary stream aux.
|
| Modifier and Type | Method and Description |
|---|---|
RandomStream |
getAuxStream()
Returns the auxiliary stream associated with this object.
|
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) |
getDistribution, getStream, nextArrayOfDouble, setStreampublic 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)
BetaStratifiedRejectionGen(s, s, dist).
The auxiliary stream used will be the same as the main stream.public RandomStream getAuxStream()
public double nextDouble()
RandomVariateGeninverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.nextDouble in class RandomVariateGenpublic static double nextDouble(RandomStream s, double alpha, double beta, double a, double b)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.