public class LaplaceGen extends RandomVariateGen
The (non-static) nextDouble method simply calls inverseF on the distribution.
| Constructor and Description |
|---|
LaplaceGen(RandomStream s)
Creates a Laplace random variate generator with parameters
μ = 0 and β = 1, using stream s.
|
LaplaceGen(RandomStream s,
double mu,
double beta)
Creates a Laplace random variate generator with parameters
μ = mu and β = beta, using stream s.
|
LaplaceGen(RandomStream s,
LaplaceDist dist)
Creates a new generator for the Laplace distribution dist
and stream s.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getBeta()
Returns the parameter β.
|
double |
getMu()
Returns the parameter μ.
|
static double |
nextDouble(RandomStream s,
double mu,
double beta)
Generates a new variate from the Laplace distribution with parameters
μ = mu and β = beta, using stream s.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic LaplaceGen(RandomStream s, double mu, double beta)
public LaplaceGen(RandomStream s)
public LaplaceGen(RandomStream s, LaplaceDist dist)
public static double nextDouble(RandomStream s, double mu, double beta)
public double getMu()
public double getBeta()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.