public class PowerGen extends RandomVariateGen
| Constructor and Description |
|---|
PowerGen(RandomStream s,
double c)
Creates a Power random variate generator with parameters
a = 0, b = 1 and c = c, using stream s.
|
PowerGen(RandomStream s,
double a,
double b,
double c)
Creates a Power random variate generator with parameters
a = a, b = b and c = c,
using stream s.
|
PowerGen(RandomStream s,
PowerDist dist)
Creates a new generator for the power distribution dist
and stream s.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getA()
Returns the parameter a.
|
double |
getB()
Returns the parameter b.
|
double |
getC()
Returns the parameter c.
|
static double |
nextDouble(RandomStream s,
double a,
double b,
double c)
Uses inversion to generate a new variate from the power
distribution with parameters a = a, b = b, and
c = c, using stream s.
|
void |
setParams(double a,
double b,
double c)
Sets the parameters a, b and c for this object.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic PowerGen(RandomStream s, double a, double b, double c)
public PowerGen(RandomStream s, double c)
public PowerGen(RandomStream s, PowerDist dist)
public static double nextDouble(RandomStream s, double a, double b, double c)
public double getA()
public double getB()
public double getC()
public void setParams(double a,
double b,
double c)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.